diff options
author | Yigit Sever | 2021-10-31 17:32:46 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-31 17:32:46 +0300 |
commit | 668d0be41fc65932faf9a3be92aad4ed07724881 (patch) | |
tree | cd659066c5108340592c813e69da3632cc4abf83 /.config/nvim/lua/mappings.lua | |
parent | 7d02d49ee5dd8c43b72cd50cd00a6e9de79f74ed (diff) | |
download | dotfiles-668d0be41fc65932faf9a3be92aad4ed07724881.tar.gz dotfiles-668d0be41fc65932faf9a3be92aad4ed07724881.tar.bz2 dotfiles-668d0be41fc65932faf9a3be92aad4ed07724881.zip |
nvim: fix ' mapping
Diffstat (limited to '.config/nvim/lua/mappings.lua')
-rw-r--r-- | .config/nvim/lua/mappings.lua | 6 |
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>') | |||
39 | map('n', '#', ':keepjumps normal! mi#`i<CR> ') | 39 | map('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 |
42 | map('c', 'w!!', 'execute "silent! write !sudo tee % >/dev/null" <bar> edit!') | 42 | map('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) |
45 | map('n', 'Q', 'gq') | 45 | map('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) |
55 | map('n', 'Y', 'y$') | 55 | map('n', 'Y', 'y$', { noremap = false }) |
56 | 56 | ||
57 | -- jump to buffer | 57 | -- jump to buffer |
58 | map('n', '<Leader>b', ':ls<cr>:b<space>') | 58 | map('n', '<Leader>b', ':ls<cr>:b<space>') |
@@ -111,7 +111,7 @@ plugmap('n', '<F3>', ':TagbarToggle<CR>') | |||
111 | plugmap('n', '`', '<Plug>Sneak_s') | 111 | plugmap('n', '`', '<Plug>Sneak_s') |
112 | plugmap('n', '`', '<Plug>Sneak_s') | 112 | plugmap('n', '`', '<Plug>Sneak_s') |
113 | plugmap('n', '<Leader>`', '<Plug>Sneak_S') | 113 | plugmap('n', '<Leader>`', '<Plug>Sneak_S') |
114 | plugmap('n', "'", '`') | 114 | map('n', "'", '`') |
115 | 115 | ||
116 | -- use the special yoink paste that rotates | 116 | -- use the special yoink paste that rotates |
117 | plugmap('n', 'p', '<Plug>(YoinkPaste_p)') | 117 | plugmap('n', 'p', '<Plug>(YoinkPaste_p)') |