Monday, October 14, 2013

Tip: Vi(Vim) setting

When you use Vim in Cygwin, it might look ugly.
Its basic setting is not user friendly setting.

This is tip to change it easier to use.

Step 1. Go to your Home. 
(If you do not know where your home is, just press 'cd' on the command line)

Step 2. Create/Open .vimrc file (You can check if you have it with 'ls -a' command)

Step 3. Copy those setting below

set nobackup
set nocompatible
set hlsearch
set ignorecase
set softtabstop=2
set ts=2
set shiftwidth=2
set expandtab
set ruler
set incsearch
set scrolloff=20
set sidescrolloff=20
set wrap
set backspace=2
colorscheme desert
syntax on
hi WarningMsg ctermfg=15 ctermbg=12 guifg=White guibg=Red gui=NONE


Step 4. Save your .vimrc file (Type ':wq' in the command mode)



Now vi/vim becomes easier to code.


I will explain about those settings in the next post.

No comments:

Post a Comment