Skip to content

Commit

Permalink
keymap: Bind <D-w> to :bd<CR> to quick close buffer, make the edi…
Browse files Browse the repository at this point in the history
…tor's behavior consistent
  • Loading branch information
kang8 committed Nov 21, 2024
1 parent de0e023 commit aeb5bbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ end, { expr = true })

-- Search within last selection
vim.keymap.set({ 'n', 'v' }, '<A-/>', '<Esc>/\\%V', { desc = 'Search within last selection' })

-- Delete the current buffer(like another editor)
vim.api.nvim_set_keymap('n', '<D-w>', ':bd<CR>', { noremap = true, silent = true, desc = 'Delete the current buffer' })

0 comments on commit aeb5bbc

Please sign in to comment.