From a20f37a39501c6cb94943a18a7f0e81c97dd6189 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 23 Dec 2019 14:42:58 +0300 Subject: [PATCH] Unimpaired like textwidth switching --- vim/.vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.44.0