X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/be41ad77073a424ccf4d795cb01cf7af784f7d39..3575cadcd195bb7c4562d0e1fc1c56be0a25a1a6:/vimrc diff --git a/vimrc b/vimrc index 94c32a8..7844cbb 100644 --- a/vimrc +++ b/vimrc @@ -5,9 +5,6 @@ filetype plugin indent on -" pathogen.vim runtime path manipulation -silent! call pathogen#infect() - " moving around, searching and patterns {{{1 set incsearch " show match for partly typed search command set ignorecase " ignore case when using a search pattern @@ -18,6 +15,8 @@ set hlsearch " highlight all matches for the last used search nmap n :silent nohl " use leader-# to display the number of matches for the last search nmap # :%s:/::gn +" center cursor after search +nnoremap n nzz set nostartofline " don't move the cursor to the first non-blank char of a line set path=.,** " current + subdirectory search for :find, :grep:, ... @@ -186,6 +185,8 @@ set virtualedit=block " let cursor move past last char in mode set viminfo='100,<50,s10,h,n~/.vim/viminfo " viminfo defaults but save file in .vim " plugins {{{1 +silent! call pathogen#infect() " pathogen.vim runtime path manipulation + " airline {{{2 let g:airline_detect_whitespace=2 let g:airline_whitespace_symbol = 'Ξ'