mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-22 06:44:09 -05:00
added some cut and paste shortcuts during input
This commit is contained in:
parent
d101b03cbc
commit
b06a94ef02
1 changed files with 6 additions and 0 deletions
|
@ -142,6 +142,9 @@
|
||||||
" <Ctrl-c> | (V) -> copy selection
|
" <Ctrl-c> | (V) -> copy selection
|
||||||
" <Ctrl-x> | (N) -> cut character
|
" <Ctrl-x> | (N) -> cut character
|
||||||
" <Ctrl-x> | (V) -> cut selection
|
" <Ctrl-x> | (V) -> cut selection
|
||||||
|
" <Ctrl-W> | (I) -> cut previous word during input
|
||||||
|
" <Ctrl-D> | (I) -> cut line before cursor during input
|
||||||
|
" <Ctrl-Y> | (I) -> paste what's been cut during input
|
||||||
"
|
"
|
||||||
" (completion)
|
" (completion)
|
||||||
" <Ctrl-m>, | (A) -> enter after emmet 'word' (ie: html:5)
|
" <Ctrl-m>, | (A) -> enter after emmet 'word' (ie: html:5)
|
||||||
|
@ -521,6 +524,9 @@
|
||||||
vnoremap <C-c> y
|
vnoremap <C-c> y
|
||||||
nnoremap <C-x> x
|
nnoremap <C-x> x
|
||||||
vnoremap <C-x> x
|
vnoremap <C-x> x
|
||||||
|
inoremap <silent> <C-W> <C-\><C-O>db
|
||||||
|
inoremap <silent> <C-D> <C-\><C-O>d0
|
||||||
|
inoremap <silent> <C-Y> <C-R>"
|
||||||
|
|
||||||
"remap ctrl-u and ctrl-w to safer alternatives
|
"remap ctrl-u and ctrl-w to safer alternatives
|
||||||
inoremap <C-u> <C-g>u<C-u>
|
inoremap <C-u> <C-g>u<C-u>
|
||||||
|
|
Loading…
Reference in a new issue