]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vimrc
Disable unneeded Vim plugins
[dotfiles.git] / vim / .vimrc
index 883546806d05a2e84b728ea427e5dac0b15d90e8..65870e15898dbb90e865f205f409cbd3e267f61d 100644 (file)
@@ -31,7 +31,7 @@ set highlight+=vr
 set cpoptions+=$
 set showcmd
 set showmatch
-set listchars=trail:·,tab:→,nbsp:% ",eol:¶
+set listchars=trail:·,tab:>→,nbsp:% ",eol:¶
 set list
 
 set cursorline
@@ -115,7 +115,7 @@ 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 {{{
@@ -128,6 +128,11 @@ 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 {{{
 map q: :
 command! W w
@@ -161,7 +166,6 @@ nmap <Tab> :buffers<CR>:buffer<Space>
 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>