dotfiles/nvim/.config/nvim/after/ftplugin/gitrebase.vim
Sanchayan Maity e6397864d0 nvim: after: ftplugin: Fix various key mappings
Make sure we use <buffer> to make a local mapping just for the active
buffer.
2021-05-02 19:23:57 +05:30

10 lines
373 B
VimL

" See https://github.com/neovim/neovim/blob/master/runtime/ftplugin/gitrebase.vim
nmap <buffer> <silent> <Leader>p :Pick<CR>
nmap <buffer> <silent> <Leader>s :Squash<CR>
nmap <buffer> <silent> <Leader>e :Edit<CR>
nmap <buffer> <silent> <Leader>r :Reword<CR>
nmap <buffer> <silent> <Leader>f :Fixup<CR>
nmap <buffer> <silent> <Leader>c :Cycle<CR>
setlocal bufhidden=delete