2024年5月1日发(作者:)

1.系统只安装了vim-minimal,执行以下命令安装另外两个组件

yum install vim-common

yum install vim-enhanced

2.安装ctags

yum install ctags

下载linux-2.6.32.27内核源码并解压到~/arm/linux-2.6.32.27,进入该目录,生成索引

文件

ctags -R *

3.安装插件(基本上就是解压到~/.vim目录):

taglist/nerdcommenter/omnicppcomplete/echofunc/bufexplorer/winmanager

4.配置文件

" 关闭vi的键盘模式

set nocompatible

" 关闭备份

set nobackup

" 禁止生成临时文件

set noswapfile

" 允许使用鼠标定位和选择

set mouse=a set selection=exclusive set selectmode=mousekey

" 显示行号

set number

" 禁止折行

set nowrap

" 突出显示当前行

"set cursorline cursorcolumn

" 切换文件时自动保存当前改动文件

set autowrite