X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=vim%2F.vimrc;h=65870e15898dbb90e865f205f409cbd3e267f61d;hb=6c0ffd80a12d37701fe70d8378c2dcb4816ad9be;hp=dd8c250cb8477ba8bf45fc980a440b5bb74ba018;hpb=8b6c945696a9ecc99cd51b70a54045b34a159982;p=dotfiles.git diff --git a/vim/.vimrc b/vim/.vimrc index dd8c250..65870e1 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -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 @@ -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 +nmap ]ob :set textwidth=0 +" }}} + " Often typos {{{ map q: : command! W w @@ -161,7 +166,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