diff options
author | Cody Hiar <cody@hiar.ca> | 2021-11-20 13:10:51 -0700 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2021-11-20 13:10:51 -0700 |
commit | 877dcf76cb71c84f6bd665aa8b0f3d5f7f89ddff (patch) | |
tree | 9853d9549206e44c9be4e5152ab2dfa1e9e8a3ad | |
parent | 14ced6b533d2ba9fef79711400eeffdb8983ff17 (diff) |
Add command for saving quickly
-rw-r--r-- | init.lua | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -123,6 +123,7 @@ vim.api.nvim_set_keymap('n', '<c-w>t', "<cmd>tabnew<cr>", { noremap = true }) vim.api.nvim_set_keymap('n', '<c-w><c-f>', '<c-w>f<c-w>T', { noremap = true }) vim.api.nvim_set_keymap('n', '<c-w><c-]>', '<c-w>v<c-]><c-w>T', { noremap = true }) vim.api.nvim_set_keymap('n', '<c-w><c-t>', '<c-w>v<c-w>T', { noremap = true }) +vim.api.nvim_set_keymap('n', '<c-w><c-w>', '<cmd>w<cr>', { noremap = true }) vim.api.nvim_set_keymap('n', '<leader>ee', '<cmd>e!<cr>', { noremap = true }) vim.api.nvim_set_keymap('n', '<expr> k', [[(v:count > 1 ? "m'" . v:count : '') . 'k']], { noremap = true }) vim.api.nvim_set_keymap('n', '<expr> j', [[(v:count > 1 ? "m'" . v:count : '') . 'j']], { noremap = true }) |