diff options
Diffstat (limited to '.config/nvim')
| -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)') | 
