diff options
author | Guangxiong Lin <[email protected]> | 2023-10-12 12:17:20 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2023-10-12 12:17:20 +0800 |
commit | 1c5ef09a4902b817e8ce21026f862e2e31481dcc (patch) | |
tree | d94c47f539cabf5be1aa4cd2916d8eac36dc9aa2 | |
parent | 19ce78ae9c21b2946d2295b759741d81b7c63b4c (diff) | |
download | dotfiles-1c5ef09a4902b817e8ce21026f862e2e31481dcc.tar.gz dotfiles-1c5ef09a4902b817e8ce21026f862e2e31481dcc.tar.bz2 dotfiles-1c5ef09a4902b817e8ce21026f862e2e31481dcc.zip |
Map only local buffer for ledger files
-rw-r--r-- | .vim/after/plugin/ledger.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.vim/after/plugin/ledger.vim b/.vim/after/plugin/ledger.vim index 13d4d98..6dea35b 100644 --- a/.vim/after/plugin/ledger.vim +++ b/.vim/after/plugin/ledger.vim @@ -15,8 +15,8 @@ let g:ledger_main = expand('$HOME/Sync/ledgers/main.journal') function! s:ledger_keymap() abort noremap { ?^\d<CR> noremap } /^\d<CR> - inoremap <silent> <Tab> <C-r>=ledger#autocomplete_and_align()<CR> - vnoremap <silent> <Tab> :LedgerAlign<CR> + inoremap <silent> <buffer> <Tab> <C-r>=ledger#autocomplete_and_align()<CR> + vnoremap <silent> <buffer> <Tab> :LedgerAlign<CR> endfunction au FileType ledger call s:ledger_keymap() |