Vim usage
配置:在Ubuntu11.10默认是vim.tiny,不能语法高亮,所以安装vim:
sudo apt-get install vim
配置自动缩进,在vim下:version查看vimrc的位置,vimrc文件中添加
set autoindent
Normal mode:
3x # to delete three characterCtrl+r # and u to undoZZ # write and exit vim
Ex mode:
:!bash # enter bash shell, exit to back to vi:20 # jump to 20 line:set all # list all settings:set # list the settings different from default:set ai# set autoindent
http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html
页:
[1]