Sunday, July 3, 2011

Setting up gvim

I know this post is not directly related to anything embedded or hardware modeling, but I share it here anyway.

I use gvim as my editor most of the times. I was searching for a place where we can easily understand on how to configure gvim. One of the best link I found is this:
http://lglinux.blogspot.com/2007/09/vim-configuration.html

Here are my settings:
" enable the line numbers
set nu

" indenting
set smartindent

"expand tabs
set tabstop=2
set shiftwidth=2
set expandtab
set incsearch


"set the font n size

if has('gui_running')
  set guifont=Lucida_Console:h10
endif



Some very good tips on using gvim are here:
http://www.rayninfo.co.uk/vimtips.html