4 ms·
syntax on filetype on filetype plugin on filetype indent on You do not want "filetype off" Also, check out snipMate as it gives you easy to use TextMate ty
by sigzero 16y ago
syntax on
filetype on
filetype plugin on
filetype indent on
You do not want "filetype off"
Also, check out snipMate as it gives you easy to use TextMate type snippets.
In Vim:
:h filetype
- telemachos 16y agoYou do not want "filetype off" A minor quibble: you might want "filetype off" temporarily, if you use Pathogen (which the poster does). Pathogen needs to run before the filetype plugin is turned on, and due to the way some distros work (Debian and its children, primarily, I think), this requires you to start your .vimrc this way[1]: filetype off call pathogen#runtime_append_all_bundles() call pathogen#helptags() " Later... filetype plugin indent on Since I work both with Debian and OSX, I just use that as a shared .vimrc set-up. As a general rule, though, you are right that you want it turned on normally. [1] http://www.vim.org/scripts/script.php?script_id=2332 http://www.vim.org/scripts/script.php?script_id=2332
- graywh 16y agoThis has been changed in Debian (the system vimrc no longer turns syntax or filetype on), but persists in Ubuntu.
- telemachos 16y agoI wasn't aware of the change. Thanks for letting me know.