11

I'd like to disable a plugin for certain filetypes in Vim. I'm a Vim newbie, so take it slow with me :)

I have the autocomplpop plugin, and I really like it. However, if I'm editing a LaTeX file, it shows completions for every single English language word I've already used. It's distracting! I'd like to disable it for .tex files, but I have no idea how to do so.

Thank you!

cflewis
  • 7,251
  • 7
  • 28
  • 37

1 Answers1

6

Try putting this in your .vimrc after you enabled filetype plugins.

autocmd FileType tex :AcpDisable

This should disable the auto completion for tex files.

GWW
  • 43,129
  • 11
  • 115
  • 108
  • and for the rest of the plugins ? sytastic, vdebug, snipmate ...? for instance disable vdebug plugin in python files autocmd FileType py :vdebugDisable would work? how it works? – alfonsodev Nov 22 '13 at 09:36
  • 1
    @alfonsodev, it depends. Sometimes you could set a local variable, i.e `let someplugin_loaded=1` to disable the plugin. You could refer to the plugin you want to disable for further information. – flyingfoxlee Apr 09 '14 at 07:49