Auto cd into wiki

This commit is contained in:
hektor committed 2023-04-29 17:45:05 +02:00
1 parent 4038483415
commit 6b252287d9
1 file changed
+5
+5
View File
@@ -0,0 +1,5 @@
" " 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>