vimrc: add C-S save; add wrap-para (wp) and copy-word (cw)
This commit is contained in:
10
vimrc
10
vimrc
@@ -182,8 +182,14 @@ iab KREN_EMERG KERN_EMERG
|
|||||||
map <C-K>e :read
|
map <C-K>e :read
|
||||||
" List current buffers
|
" List current buffers
|
||||||
map <C-L> :buffers<CR>
|
map <C-L> :buffers<CR>
|
||||||
" Reformat selected text
|
" Reformat selected text; normal mode only so we don't accidentally wrap a
|
||||||
" map <C-W> gq
|
" 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
|
" Needed because PuTTY doesn't seem to send the usual ctrl-up/down sequences
|
||||||
map <ESC>[A <C-Up>
|
map <ESC>[A <C-Up>
|
||||||
|
|||||||
Reference in New Issue
Block a user