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
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
" }}}
" }}}
" Fugitive {{{
-let g:fugitive_git_executable = "LANG=en.UTF-8 git"
nmap <F7> "cyiw:execute "Gvsplit " . @c<CR>zR
nmap <F9> :diffupdate<CR>:syntax off<CR>:syntax on<CR>
" }}}
" *-lists indentation and formatting {{{
set comments-=mb:*
set formatlistpat=^\\s*\\*\ \\s*
-set formatoptions+=n
+set formatoptions+=onj
" }}}
" Spelling {{{
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<CR>
+nmap ]ob :set textwidth=0<CR>
" }}}
" Often typos {{{
nmap <silent> <Home> :registers<CR>
nmap <leader>' yiwciw"<C-r>""<ESC>
nmap <leader>h1 yypVr=o
-nmap <leader>72 :set textwidth=72
nmap <leader>sc 024i-<ESC>a >8 <ESC>24a-<ESC>
nmap <leader><C-]> :vertical wincmd ]<CR>
nnoremap <C-P> <C-I>