nvim: Use mappings for copying entire buffer & drop textobj-entire

This commit is contained in:
Sanchayan Maity 2022-12-28 10:50:19 +05:30
parent 20b608ad08
commit 79183f7402
Signed by: sanchayanmaity
GPG Key ID: 6F6A0609C12038F3
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,8 @@ remap('n', 'q', '<Nop>', { noremap = false })
-- Use Q to execute default register.
remap('n', 'Q', '<Nop>', opts)
-- Copy to clipboard
remap('n', '<Leader>y', ':%y+<CR>', opts)
remap('n', '<Leader>Y', ':%y*<CR>', opts)
remap('v', '<Leader>y', '"+y' , opts)
remap('v', '<Leader>Y', '"*y' , opts)
remap('n', '<Leader>p', '<ESC>"+p', opts)

View File

@ -43,7 +43,6 @@ local init = function ()
'tommcdo/vim-exchange',
'chaoren/vim-wordmotion',
'kana/vim-textobj-user',
'kana/vim-textobj-entire',
'idbrii/textobj-word-column.vim',
'glts/vim-textobj-comment'
}