nvim: remove mapping : to paste selected

This commit is contained in:
thek4n 2024-01-31 14:04:00 +03:00
parent 3f530e3803
commit 6777c7a02d
2 changed files with 2 additions and 5 deletions

View File

@ -26,9 +26,6 @@ map('n', '/', ':set hlsearch<CR>/')
-- copy selection to search line
map('v', '<C-f>', '"fy:set hlsearch<CR>/<C-r>f<CR>')
-- copy selection to command line
map('v', ':', '"fy:<C-r>f<C-b>')
map('n', '<Leader>hl', create_function_tabdo('lua toggle_number_style()'),
{desc = "Toggle line number style"})

View File

@ -126,14 +126,14 @@ opt.langmap = 'ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKL
vim.api.nvim_create_autocmd("BufWinLeave", {
pattern = {"*"},
pattern = {"*.*"},
callback = function()
vim.cmd.mkview(1)
end
})
vim.api.nvim_create_autocmd("BufWinEnter", {
pattern = {"*"},
pattern = {"*.*"},
callback = function()
vim.cmd('silent! loadview 1')
end,