Thursday, January 20, 2011

VIM Config File

Finally I was able to change the vim configuration file in windows (yes it exists in windows too psss - even i didn't know :) )

To configure your configuration file open gvim (graphical vim) and type
(NOTE : Don't Type ESC OK!!)

ESC :e $MYVIMRC

it will edit your vimrc file (configuration file)

Paste the code below
-------------------------------
if has('gui_running')
  set guifont=Lucida_Console:h16
  set noerrorbells
 
  if has('autocmd')
      autocmd GUIEnter * set vb t_vb=
  endif

  set backspace=indent,eol,start
  fixdel

  syntax enable
  set number
  set autoindent
  set tabstop=4

endif


-----------------------------------
ESC :wq

and Volla!! Restart your Vim and you will see the changes.

The above code will fix :-

  1. Font Size
  2. No More Annoying Beeps (trust me you dont want to hear after some time)
  3. Shows Line Number next to each line very helpful.
  4. Fixes Your backspace key to work, (originally it doesnt work :o )
  5. A little bit of indentation to the line so the lines are more readable.

It took me a few hours to do this, hope you guys save your time. I'll keep updating the code here whenever I find more cooler configuration settings, so keep checking..

Cheers!! :)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.