From: Sergey Matveev Date: Mon, 23 Dec 2019 11:42:58 +0000 (+0300) Subject: Unimpaired like textwidth switching X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=a20f37a39501c6cb94943a18a7f0e81c97dd6189 Unimpaired like textwidth switching --- diff --git a/vim/.vimrc b/vim/.vimrc index 9fff372..65870e1 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -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