diff --git a/.vim/after/plugin/wiki.vim b/.vim/after/plugin/wiki.vim new file mode 100644 index 0000000..11b8352 --- /dev/null +++ b/.vim/after/plugin/wiki.vim @@ -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 ww (wiki-index) \| :lcd %:p:h