commit 17d4d464043fe54fff43efd8c9b3f8c013bad6e4
parent beec66fea54098b73765367101cb47f3ecdd6c99
Author: Bharatvaj H <bharatvaj@yahoo.com>
Date: Mon, 2 Aug 2021 17:08:55 +0530
Update .vimrc changes from upstream
Diffstat:
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/.config/vim/vimrc b/.config/vim/vimrc
@@ -16,6 +16,7 @@ set undodir=$XDG_CACHE_HOME/vim/undo | call mkdir(&undodir, 'p')
if !has('nvim') | set viminfofile=$XDG_CACHE_HOME/vim/viminfo | endif
+" General
set number
set mouse=a
syntax on
@@ -31,14 +32,16 @@ set tabstop=4
set shiftwidth=4
set expandtab
-" Keybindings
-nnoremap <leader>t :tabnew<cr>
-
" Netrw customization
let g:netrw_banner = 0
" Plugin Management
+let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
+if empty(glob(data_dir . '/autoload/plug.vim'))
+ silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
+ autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
+endif
call plug#begin($XDG_DATA_HOME."/vim/plugged")
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
@@ -54,10 +57,12 @@ call plug#end()
" Plugin Keybindings
nmap <Leader>f :GFiles<CR>
nmap <Leader>F :Files<CR>
+nnoremap <leader>t :tabnew<cr>
-" Theming
+" Theming Begin
+" Git Gutter
highlight GitGutterAdd ctermfg=green
highlight GitGutterChange ctermfg=yellow
highlight GitGutterDelete ctermfg=red
highlight GitGutterChangeDelete ctermfg=yellow
-
+" Theming End