From 2c382f4be48cc52840eb3fe21106039cc045a7a4 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 13:46:19 +1200 Subject: Use :map then :sunmap to abbreviate nox mappings --- vim/vimrc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index a8c216dc..29e2a80c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -429,12 +429,10 @@ onoremap _ :normal! `[v`] onoremap % :normal! 1GVG " \{ and \} move to lines with non-space chars before current column -nmap { (VerticalRegionUp) -nmap } (VerticalRegionDown) -omap { (VerticalRegionUp) -omap } (VerticalRegionDown) -xmap { (VerticalRegionUp) -xmap } (VerticalRegionDown) +map { (VerticalRegionUp) +sunmap { +map } (VerticalRegionDown) +sunmap } " \/ types :vimgrep for me ready to enter a search pattern nnoremap / :vimgrep /\c/j ** -- cgit v1.2.3