Just to get a few things out of the way:
- vim is what I use - if you don't fine.
- flames are useless, I use ar0n as a shield.
- you may think your editor is the best and that's fine, but this is a post about vim.
- I am not a vim expert.
- vim rules. =)
On to The Meat (tm).
I was playing a bit with my .vimrc file today and wondered what some of you out there had slapped together. I am no expert programmer and I don't live in this tool as much as some of you probably do. I was wondering if anybody would be willing to show some fancy tricks or part of their configs that they liked to share.
Here is my .vimrc (very short):
:abbr #b # ----------
line #1: sets an alias '#b' to '# ----------' for comments.
line #2: sets my background to dark so my gnome terminal looks ok with the syntax on.
line #3: turns syntax highlighting on.
line #4: turns smartindent on (watches for left and right curly braces for automatic insertion and removal of indentation).
line #5: mingles tabs and spaces for tabbing within your file. At my setting, if I hit tab once, it creates four spaces, if I hit it again, it creates a tab. Nice when going from one editor to another and not having too much tabs.
Anyhow, that is my config and I know its fairly sparse. Anybody else want to share?