Add gutter
Change-Id: If38c9c22d52dc55553f160bcee86ddd38722b772
This commit is contained in:
5
.vimrc
5
.vimrc
@@ -19,6 +19,7 @@ if filereadable(expand(vundle_dir) . "/README.md")
|
|||||||
Plugin 'rhysd/vim-clang-format'
|
Plugin 'rhysd/vim-clang-format'
|
||||||
" Plugin 'shougo/neocomplete'
|
" Plugin 'shougo/neocomplete'
|
||||||
Plugin 'godlygeek/tabular'
|
Plugin 'godlygeek/tabular'
|
||||||
|
Plugin 'airblade/vim-gitgutter'
|
||||||
|
|
||||||
call vundle#end() " required
|
call vundle#end() " required
|
||||||
else
|
else
|
||||||
@@ -27,6 +28,7 @@ else
|
|||||||
command CloneVundle execute "!git clone " . vundle_repo . " " . vundle_dir
|
command CloneVundle execute "!git clone " . vundle_repo . " " . vundle_dir
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
set updatetime=100 " Default is 4s, but reduce it to make things more real time, like git gutter
|
||||||
highlight Search ctermbg=5
|
highlight Search ctermbg=5
|
||||||
|
|
||||||
filetype plugin indent on " required
|
filetype plugin indent on " required
|
||||||
@@ -66,6 +68,9 @@ augroup numbertoggle
|
|||||||
autocmd BufLeave,FocusLost,InsertEnter * set nornu
|
autocmd BufLeave,FocusLost,InsertEnter * set nornu
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
" Copy to the end of line
|
||||||
|
noremap Y y$
|
||||||
|
|
||||||
" define upper case versions of :w and :q
|
" define upper case versions of :w and :q
|
||||||
command! -bang -range=% -complete=file -nargs=* W <line1>,<line2>write<bang> <args>
|
command! -bang -range=% -complete=file -nargs=* W <line1>,<line2>write<bang> <args>
|
||||||
command! -bang Q quit<bang>
|
command! -bang Q quit<bang>
|
||||||
|
|||||||
Reference in New Issue
Block a user