How to load ropevim only when editing Python files

352 Views Asked by At

I'm using ropevim for some operations on Python files, and vimclojure for Clojure files and REPL.

VimClojure only loaded when editing Clojure files, but ropevim loaded for every file, and this addons have some same keybindigs, so for example, when editing Clojure files, <leader>rf calls ropevim's RopeRename command, but it should call vimclojure's RequireFile command.

How can I make ropevim load only when editing Python files?

Thanks.

1

There are 1 best solutions below

1
On BEST ANSWER

Add this to your .vimrc:

au FileType python source <plugin name>, and a similar one for clojure.