Files
dots/.vim/after/plugin/wiki.vim
2023-04-29 17:45:05 +02:00

6 lines
219 B
VimL

" " Change local buffer to directory of current file after the plugin has loaded
autocmd VimEnter * lcd %:p:h
" " Override wiki index mapping to also cd into the wiki
nm <leader>ww <Plug>(wiki-index) \| :lcd %:p:h<cr>