llvm.vim
llvm.vim copied to clipboard
Plugin changes my indentation settings
I like this plugin, but I don't think that it is quite set up correctly. The plugin/llvm.vim file gets loaded regardless of filetype, and it plays the hanky-panky with my settings (eg shiftwidth). I can fix some of this by renaming the plugin directory to pluginft. However if I edit a .ll file and then later try to edit a .c file in the same vim session, I still get my indentation settings messed with. The sets inside the pluginft/llvm.vim file should be setlocals to avoid this problem.
As a side note, the code that is given in the readme (the autocommand) should go into a ftdetect/llvm.vim file instead of making users place it it their vimrc.