Vim usage

阅读更多
配置:
在Ubuntu11.10默认是vim.tiny,不能语法高亮,所以安装vim:
sudo apt-get install vim            

配置自动缩进,在vim下:version查看vimrc的位置,vimrc文件中添加
set autoindent   

Normal mode:
3x     # to delete three character
Ctrl+r # and u to undo
ZZ     # 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
  • vi-vim-tutorial-gif.zip (727.8 KB)
  • 下载次数: 1

你可能感兴趣的:(vim,语法高亮,ubuntu)