summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
authorYigit Sever2021-10-31 17:32:46 +0300
committerYigit Sever2021-10-31 17:32:46 +0300
commit668d0be41fc65932faf9a3be92aad4ed07724881 (patch)
treecd659066c5108340592c813e69da3632cc4abf83 /.config/nvim
parent7d02d49ee5dd8c43b72cd50cd00a6e9de79f74ed (diff)
downloaddotfiles-668d0be41fc65932faf9a3be92aad4ed07724881.tar.gz
dotfiles-668d0be41fc65932faf9a3be92aad4ed07724881.tar.bz2
dotfiles-668d0be41fc65932faf9a3be92aad4ed07724881.zip
nvim: fix ' mapping
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/mappings.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua
index 234f051..df7e3d3 100644
--- a/.config/nvim/lua/mappings.lua
+++ b/.config/nvim/lua/mappings.lua
@@ -39,7 +39,7 @@ map('n', '*', ':keepjumps normal! mi*`i<CR>')
39map('n', '#', ':keepjumps normal! mi#`i<CR> ') 39map('n', '#', ':keepjumps normal! mi#`i<CR> ')
40 40
41-- save file as sudo on files that require root permission 41-- save file as sudo on files that require root permission
42map('c', 'w!!', 'execute "silent! write !sudo tee % >/dev/null" <bar> edit!') 42map('c', 'w!!', 'execute "silent! write !sudo tee % >/dev/null" <bar> edit!<CR>')
43 43
44-- replace ex mode with gq (format lines) 44-- replace ex mode with gq (format lines)
45map('n', 'Q', 'gq') 45map('n', 'Q', 'gq')
@@ -52,7 +52,7 @@ map('n', 'S', ':%s//g<Left><Left>')
52 52
53-- if you like "Y" to work from the cursor to the end of line (which is more 53-- if you like "Y" to work from the cursor to the end of line (which is more
54-- logical, but not Vi-compatible) 54-- logical, but not Vi-compatible)
55map('n', 'Y', 'y$') 55map('n', 'Y', 'y$', { noremap = false })
56 56
57-- jump to buffer 57-- jump to buffer
58map('n', '<Leader>b', ':ls<cr>:b<space>') 58map('n', '<Leader>b', ':ls<cr>:b<space>')
@@ -111,7 +111,7 @@ plugmap('n', '<F3>', ':TagbarToggle<CR>')
111plugmap('n', '`', '<Plug>Sneak_s') 111plugmap('n', '`', '<Plug>Sneak_s')
112plugmap('n', '`', '<Plug>Sneak_s') 112plugmap('n', '`', '<Plug>Sneak_s')
113plugmap('n', '<Leader>`', '<Plug>Sneak_S') 113plugmap('n', '<Leader>`', '<Plug>Sneak_S')
114plugmap('n', "'", '`') 114map('n', "'", '`')
115 115
116-- use the special yoink paste that rotates 116-- use the special yoink paste that rotates
117plugmap('n', 'p', '<Plug>(YoinkPaste_p)') 117plugmap('n', 'p', '<Plug>(YoinkPaste_p)')