2024-01-04 00:45:21 +01:00
|
|
|
-- Clear trailing whitespace
|
2024-06-10 13:12:26 +02:00
|
|
|
vim.keymap.set("n", "<C-w>", "<cmd>let _s=@/<Bar>:%s/\\s\\+$//e<Bar>:let @/=_s<Bar><CR>")
|
2023-07-30 04:26:25 +02:00
|
|
|
|
|
|
|
-- Use tab and shift+tab to cycle buffers
|
2024-06-10 13:12:26 +02:00
|
|
|
vim.keymap.set("n", "<tab>", "<cmd>bn<cr>")
|
|
|
|
vim.keymap.set("n", "<S-tab>", "<cmd>bp<cr>")
|
2023-07-30 04:26:25 +02:00
|
|
|
|
2024-01-04 00:45:21 +01:00
|
|
|
-- Turn spellchecker on and off
|
2024-06-10 13:12:26 +02:00
|
|
|
vim.keymap.set("n", "<leader>se", "<cmd>setlocal spell spelllang=en_us<cr>")
|
|
|
|
vim.keymap.set("n", "<leader>sq", "<cmd>setlocal nospell<cr>")
|
2023-07-30 04:26:25 +02:00
|
|
|
|
2024-06-10 13:12:26 +02:00
|
|
|
vim.keymap.set("n", "<F3>", "<cmd>set nonumber!<CR>")
|
|
|
|
vim.keymap.set("n", "<leader>fe", "<cmd>Oil<CR>")
|
2024-07-22 09:08:34 +02:00
|
|
|
|
|
|
|
vim.keymap.set("n", ']d', "<cmd>lua vim.diagnostic.goto_next()<CR>")
|
|
|
|
vim.keymap.set("n", '[d', "<cmd>lua vim.diagnostic.goto_prev()<CR>")
|