commit 979a0ed5c4dba97dcf070ca4e316f3b491cfaf84
parent 2b735cf53fec413647cb6c4247d08ccb21730843
Author: Bharatvaj H <bharatvaj@yahoo.com>
Date: Tue, 3 Aug 2021 00:44:54 +0530
Merge branch 'bharat-9052' of https://github.com/bharatvaj/dotfiles into bharat-9052
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! relativenumber!
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