You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found your dotfiles when searching how to add a keybinding to adjust the width of dwm panes in vim. To be specific, I found the file .vim/custom/vimrc/plugin/keybind/dwm.vim.
But I'm curious about your directory structure. My .vimrc is messy, I have a lot of mappings in there. I would like to try using a setup inspired by yours, e.g. .vim/mappings/dwm.vim. My question is, will vim autoload these files or do you need to configure vim and tell it to load these files?
The text was updated successfully, but these errors were encountered:
You can do this by adding your directory path into runtimepath and evaluating the scripts by :runtime! command.
In my .vimrc, ~/.vim/custom is set by
setruntimepath+=~/.vim/custom
Then, the runtime scripts in some directories with reserved name like syntax or filetype under the custom directory will be loaded and evaluated automatically.
e.g.) ~/.vim/custom/syntax/foo.vim, ~/.vim/custom/colors/colorscheme.vim
As for scripts which is not in such directories, they will not be executed automatically.
So, you have to call :runtime command in order to load the remaining scripts.
Using this trick, you can achieve some extension of .vimrc. See .vimrc of mine and :help runtimepath, :help :runtime for more information.
Hi Tokoro,
I found your dotfiles when searching how to add a keybinding to adjust the width of dwm panes in vim. To be specific, I found the file .vim/custom/vimrc/plugin/keybind/dwm.vim.
But I'm curious about your directory structure. My .vimrc is messy, I have a lot of mappings in there. I would like to try using a setup inspired by yours, e.g.
.vim/mappings/dwm.vim
. My question is, will vim autoload these files or do you need to configure vim and tell it to load these files?The text was updated successfully, but these errors were encountered: