Say I have some hundred custom re-mappings with iab
for Java and some other hundred or so re-mappings for Haskell, then I'd want do divide these into different files to make it more manageable. What I'm looking for is to create something like this:
~/.
├── .vimrc
└── .vim
└── custom
├── java.vim
└── haskell.vim
Where .vimrc might look something like
import java
import haskell
Is something like this possible to do, or am I just overcomplicating things? I guess what I am trying to achive is what one does in LaTeX with the \input
command...
~/.vim/after/ftplugin/$language.vim
?after/ftplugin
?~/.vim/after/ftplugin/java.vim
, it will automatically be run whenever you open ajava
file. This seems to be what you want.