vimrc: add C-S save; add wrap-para (wp) and copy-word (cw)

This commit is contained in:
2020-01-29 09:12:36 +00:00
parent 4c9fc47cee
commit 286d397d24

10
vimrc
View File

@@ -182,8 +182,14 @@ iab KREN_EMERG KERN_EMERG
map <C-K>e :read
" List current buffers
map <C-L> :buffers<CR>
" Reformat selected text
" map <C-W> gq
" Reformat selected text; normal mode only so we don't accidentally wrap a
" paragraph by typing that string!
nmap <leader>wp 0v$gq
nmap <leader>cw y/ <CR>
" Save
map <C-S> :w<CR>
" Needed because PuTTY doesn't seem to send the usual ctrl-up/down sequences
map <ESC>[A <C-Up>