nvim: keymappings: Add helpful mappings for visual block shift & buffer copy
This commit is contained in:
parent
16a797df6f
commit
0d806355ab
1 changed files with 8 additions and 0 deletions
|
@ -115,3 +115,11 @@ remap('c', '<Tab>', 'getcmdtype() =~ \'[?/]\' ? \'<C-g>\' : feedkeys(\'<Tab>\'
|
|||
remap('c', '<S-Tab>', 'getcmdtype() =~ \'[?/]\' ? \'<C-t>\' : feedkeys(\'<S-Tab>\', \'int\')[1]', { noremap = true, expr = true })
|
||||
|
||||
remap('n', '<F1>', ':call SyntaxAttr#SyntaxAttr()<CR>', { noremap = true })
|
||||
|
||||
-- After shifting a visual block, select it again
|
||||
remap('v', '<', '<gv', { noremap = true })
|
||||
remap('v', '>', '>gv', { noremap = true })
|
||||
|
||||
-- Copy whole buffer
|
||||
remap('', '<C-c><C-c>', ':norm gg0VG$cp<CR>', { noremap = false })
|
||||
remap('i', '<C-c><C-c>', ':norm jkgg0VG$cp<CR>', { noremap = false })
|
||||
|
|
Loading…
Reference in a new issue