3. To get Vim installed
• on Debian/Ubuntu: $ sudo apt-get install
vim vim-gnome
• on MacOS: $ sudo port install vim vim-app
4. To compile your Vim
• some ./configure options:
• --with-features=tiny,normal,big,huge
• --enable-perlinterp
• --enable-rubyinterp
• --enable-pythoninterp
• --enable-multibyte
• --enable-gui , --enable-cscope etc ...
5. To compile your Vim
$ ./configure --prefix=/opt/local
--enable-rubyinterp
--enable-perlinterp
--with-features=huge
--enable-multibyte
--enable-cscope
--enable-mzschemeinterp
$ make
$ make install
6. Basic Editing
Normal Mode
ESC
Command Mode (start with ‘:’)
Insert Mode (i,o,a)
Visual Mode (v,V,c-v)
7. Basic Editing
1. $ vim file
2. type h,j,k,l to move around.
3. type i to insert some text
4. <ESC> to go back normal mode
5. :w to save file.
6. repeat 3-5 step
7. :wq
8. Edit your .vimrc file
$ vim ~/.vimrc
“iset nu<ESC>”
“:wq”
$ vim ~/.vimrc
10. Basic GUI Options (.gvimrc)
set langmenu=en_US.utf-8
language mes en_US.UTF-8
if has('gui_mac') && has(‘gui_running’)
set gfn=Monaco:h12
else
"set gfn=Dejavu Sans Mono 9
"set gfn=Andale Mono:h14
set gfn=Bitstream Vera Sans Mono 10
endif
set guioptions+=c “use console dialog instead
set guioptions-=e “no gui tab
set guioptions-=T “no Toolbar
set guioptions-=m “no menu
set guioptions-=r “no right-hand scrollbar
" downlaod a colorscheme you like to ~/.vim/colors/
" colors billw