6 ms·
Exactly. Case in point: I just found out about ending the backupdir with two slashes to include the full path in the filename by reading your .vimrc. Thanks!
by stevelosh 16y ago
Exactly.
Case in point: I just found out about ending the backupdir with two slashes to include the full path in the filename by reading your .vimrc. Thanks!
- sigzero 16y agosyntax 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.
- stevelosh 16y agoReplying to myself because I can't seem to reply to sigzero: Yeah, I definitely need to get around to reading :h filetype. I mentioned Snipmate in the article, so I know about it :)
- icey 16y agoHN has a speed-limiter in place to prevent flamefests. If you find yourself in the position of not being able to reply due to the previous comment being made too recently, you can click the "link" link and reply on the resulting page.
- stevelosh 16y agoAh, neat, I didn't know that. Thanks!
- samdk 16y agoThis is not vim-related, but the reason you couldn't reply is that HN doesn't let you reply to a comment until after a certain amount of time has passed. This amount of time depends on how deep the comment is in the tree. (I believe the restriction is there to help prevent excessively deep comment trees that are just people arguing back and forth.)