mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-12-23 00:10:23 -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-x> | (N) -> cut character
|
||||
" <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)
|
||||
" <Ctrl-m>, | (A) -> enter after emmet 'word' (ie: html:5)
|
||||
|
@ -521,6 +524,9 @@
|
|||
vnoremap <C-c> y
|
||||
nnoremap <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
|
||||
inoremap <C-u> <C-g>u<C-u>
|
||||
|
|
Loading…
Reference in a new issue