X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vimrc;h=575811106582de40cd990a0b4f2c6b458b4e85ec;hb=c32b25ce56895da8a0445f5c1f0bcb796efc3f8c;hp=883546806d05a2e84b728ea427e5dac0b15d90e8;hpb=a8e62da9c85ce1eeca4a5db5498c0518074e3026;p=dotfiles.git diff --git a/vim/.vimrc b/vim/.vimrc index 8835468..5758111 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -28,10 +28,11 @@ set backspace=indent,eol set shortmess=aoOtI set highlight-=v:Visual set highlight+=vr +set highlight+=sr set cpoptions+=$ set showcmd set showmatch -set listchars=trail:·,tab:→→,nbsp:% ",eol:¶ +set listchars=trail:·,tab:>→,nbsp:% ",eol:¶ set list set cursorline @@ -79,7 +80,7 @@ set statusline+=%3*[%c%V:0x%B] set statusline+=%4*%{LintStatus()} set statusline+=%*\ %P -function! LintStatus() " it is overrided in ftplugin/python/pylint.vim +function! LintStatus() " it is overrided in ftplugins return "" endfunction " }}} @@ -115,7 +116,7 @@ nmap :diffupdate:syntax off:syntax on " *-lists indentation and formatting {{{ set comments-=mb:* set formatlistpat=^\\s*\\*\ \\s* -set formatoptions+=n +set formatoptions+=onj " }}} " Spelling {{{ @@ -123,9 +124,9 @@ set spelllang=ru,en_gb highlight SpellBad cterm=inverse ctermfg=red ctermbg=black " }}} -" Netrw {{{ -let g:netrw_banner = 0 -let g:netrw_bufsettings = "noma nomod nowrap ro nobl" +" Unimpaired-like textwidth switching {{{ +nmap [ob :set textwidth=72 +nmap ]ob :set textwidth=0 " }}} " Often typos {{{ @@ -161,7 +162,6 @@ nmap :buffers:buffer nmap :registers nmap ' yiwciw""" nmap h1 yypVr=o -nmap 72 :set textwidth=72 nmap sc 024i-a >8 24a- nmap :vertical wincmd ] nnoremap