Total Hit Counter

Friday, March 22, 2013

Play with VIM editor




  • To use mouse in vim editor copy and paste following line in to /etc/vim/vimrc file.Using mouse we can move cursor like we are moving in notepad.

set mouse=a             " Enable mouse usage (all modes)



  • To make variables and system functions colorful add folowing line in to  /etc/vim/vimrc file.
syntax on



  • By default in debian we opens a file in vim editor then vim is not saving our last position of the cursor.
      To enable that write following lines in to the /etc/vim/vimrc file.

if has("autocmd")
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif



Continue.......

No comments: