.vimrc: Add relative line numbers and hlsearch

This commit is contained in:
kuben
2019-07-28 12:00:50 +02:00
parent bfe90a1c45
commit 162c3a208f

12
.vimrc
View File

@@ -14,7 +14,7 @@ if filereadable(expand(vundle_dir) . "/README.md")
Plugin 'jeetsukumaran/vim-buffergator'
Plugin 'ericcurtin/CurtineIncSw.vim'
Plugin 'tpope/vim-fugitive'
" Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-surround'
Plugin 'ctrlpvim/ctrlp.vim'
" Plugin 'shougo/neocomplete'
Plugin 'godlygeek/tabular'
@@ -34,7 +34,15 @@ set shiftwidth=4 " when indenting with '>', use 4 spaces width
set expandtab " On pressing tab, insert 4 spaces
set mouse=a
set nu
set hlsearch
" Hybrid line numbers on active buffer
set nu rnu
augroup numbertoggle
autocmd!
autocmd BufEnter,FocusGained,InsertLeave * set rnu
autocmd BufLeave,FocusLost,InsertEnter * set nornu
augroup END
" define upper case versions of :w and :q
command! -bang -range=% -complete=file -nargs=* W <line1>,<line2>write<bang> <args>