Cool Tools: VIM

One thing that I cannot live without is a text editor, namely VIM.  VIM was first released as free and extended version of the VI program found on all Unix machines.  I first cut my teeth on VI when I started my sysadmin career, and switched to VIM a couple of years later.  VIM by default works mostly like VI, but i’ts highly configurable, and has a lot of power, especially when you start working with your .vimrc.  Since starting with the editor, I’ve carried my .vimrc from machine to machine, and company to company.  I’m continually updating it, and while there’s not a ton of stuff here, I thought I’d share it in case someone gets some value:

" Ed Salisbury's .vimrc
" Last Modified: 11/17/11

" Make VIM act like VIM, not VI
set nocompatible

" Set up TABs
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set smarttab
set autoindent
set smartindent

" Set up syntax highlighting
syntax on
filetype plugin on
filetype indent on
set formatoptions=qroc
set cindent

" Misc settings
set number       " Print line numbers
set background=dark
set pastetoggle=<F2>

I’d consider these settings a starting point for doing code/web development. Of course, there are tons of more complicated .vimrc files out there, but this should be good for starters. If you’re interested as to what each of these settings do, you can type :helpin VIM and it will display the help file.

  • http://techrights.org/2011/11/20/flex-donated-to-apache/ Links 20/11/2011: GNU/Linux in Tamil Nadu, Flex Donated to Apache | Techrights

    [...] Cool Tools: VIM One thing that I cannot live without is a text editor, namely VIM. VIM was first released as free and extended version of the VI program found on all Unix machines. I first cut my teeth on VI when I started my sysadmin career, and switched to VIM a couple of years later. VIM by default works mostly like VI, but i’ts highly configurable, and has a lot of power, especially when you start working with your .vimrc. Since starting with the editor, I’ve carried my .vimrc from machine to machine, and company to company. [...]

  • http://edsalisbury.net/tools-i-cant-live-without/ Tools I Can’t Live Without | edsalisbury.net

    [...] VIM - Excellent text editor – I’m a command line guy, so I don’t even use GVIM (the one with the GUI) – I use straight VIM from the command line.  It can do so much, and I know I’ve only cracked the surface of it’s capabilities. [...]