From 286d397d24a8c845c3e9772622153f3e2cf0f241 Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Wed, 29 Jan 2020 09:12:36 +0000 Subject: [PATCH] vimrc: add C-S save; add wrap-para (wp) and copy-word (cw) --- vimrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index ab747a7..f9aeee6 100644 --- a/vimrc +++ b/vimrc @@ -182,8 +182,14 @@ iab KREN_EMERG KERN_EMERG map e :read " List current buffers map :buffers -" Reformat selected text -" map gq +" Reformat selected text; normal mode only so we don't accidentally wrap a +" paragraph by typing that string! +nmap wp 0v$gq + +nmap cw y/ + +" Save +map :w " Needed because PuTTY doesn't seem to send the usual ctrl-up/down sequences map [A