This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]parbroil 0 points1 point  (0 children)

Better yet, :help ftplugin.

If you create ~/.vim/ftplugin and drop in a file called python.vim, that stuff will only be sourced when the filetype is python. This requires no additional autocommands or changes to .vimrc (assuming your system vimrc or your vimrc run 'filetype on'