Search code examples
vimscriptingkeymapping

change vim keybindings for particular file type


I want to change some key bindings for .adb files, this is for ada. So how do I do it just for this and not for any other filetype. Also How would I disable some default features for this filetype?


Solution

  • Create a ada.vim plugin in ~/.vim/ftplugin/ada.vim and add your .ada specific key bindings there.

    You would also need to have filetype plugin on or filetype plugin indent on in your .vimrc