perlmeditation
djw
Just to get a few things out of the way:
<ul>
<li>vim is what I use - if you don't fine.</li>
<li>flames are useless, I use ar0n as a shield.</li>
<li>you may think your editor is the best and that's fine, but this is a post about vim.</li>
<li>I am not a vim expert.</li>
<li>vim rules. =)</li>
</ul>
<br>
On to The Meat (tm).
<readmore>
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.<br><br>
Here is my .vimrc (very short):<br><br>
<ul>
:abbr #b # ----------<br>
set background=dark<br>
syntax on<br>
set smartindent<br>
set softtabstop=4<br>
</ul>
<br>
line #1: sets an alias '#b' to '# ----------' for comments.<br>
line #2: sets my background to dark so my gnome terminal looks ok with the syntax on.<br>
line #3: turns syntax highlighting on.<br>
line #4: turns smartindent on (watches for left and right curly braces for automatic insertion and removal of indentation).<br>
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.
<br><br>
Anyhow, that is my config and I know its fairly sparse. Anybody else want to share?
<br><br>
<a href="http://www.perlmonks.org/index.pl?node_id=16711&lastnode_id=1072">djw</a>
</readmore>