欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Vim usage 博客分类: tool vim语法高亮ubuntu 

程序员文章站 2024-03-20 12:21:52
...
配置:
在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