Vim简单介绍:Linux/Unix下的文本编辑软件。
使用Vim coding优势:
1.无需鼠标,全键盘操作。对于coding来说,可以双手专注盲打coding,无需切换鼠标导致分散注意力。
2.支持插件,从而可以利用插件,在Linux下将Vim打造成和SourceInsight一样强大的代码阅读器。
只需要学习简单的Vim基本命令,配置常用的插件,就可以把Vim打造成属于自己的编辑利器!
效果图如下,左边是function、中间是正文、右边是文件夹路径。
vim config已上传:http://download.csdn.net/detail/u014558668/9741632
vim config 第二版版本更新:主要是增加了VCSVimDiff plugin。下载地址:http://download.csdn.net/detail/u014558668/9877297
只需要将其中的隐藏文件扔到编译网盘的根目录下,执行shell:.generate_cscope_ctags.sh 自动生成cscope&ctags,就能正常使用!
.vimrc如下
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" VIM userinterface
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
syntax enable
syntax on
set nu
set tabstop=4
set softtabstop=4
set shiftwidth=4
set textwidth=80
"Highlight search things
set hlsearch
set incsearch
"show matching bracets
set showmatch
"Always show current position
set ruler
"Ignore case when searching
"set ignorecase
"Enable filetype plugin
filetype plugin on
filetype indent on
set completeopt=longest,menu
"Set to auto read when a file is changed from the outside
set autoread
"H