Just to get a few things out of the way:
On to The Meat (tm).
- 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):
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?
djw
Here is my .vimrc (very short):
-
:abbr #b # ----------
set background=dark
syntax on
set smartindent
set softtabstop=4
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?
djw
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Vim configs (slightly OT)
by gmax (Abbot) on May 16, 2002 at 06:08 UTC | |
Re: Vim configs (slightly OT)
by andreychek (Parson) on May 16, 2002 at 01:53 UTC | |
Re: Vim configs (slightly OT)
by Juerd (Abbot) on May 15, 2002 at 22:30 UTC | |
by Aristotle (Chancellor) on May 18, 2002 at 22:48 UTC | |
by Juerd (Abbot) on May 19, 2002 at 00:35 UTC | |
Re: Vim configs (slightly OT)
by jsprat (Curate) on May 15, 2002 at 22:44 UTC | |
Re: Vim configs (slightly OT)
by dmitri (Priest) on May 15, 2002 at 22:33 UTC | |
Re: Vim configs: mine
by Aristotle (Chancellor) on May 20, 2002 at 19:33 UTC | |
Re: Vim configs (slightly OT)
by bsb (Priest) on Apr 16, 2003 at 01:19 UTC |
Back to
Meditations