.vimrc 配置说明

| |
| April 10, 2008 16:15 | root | Via 本站原创
"VIM工作在与VI不兼容模式下
"set nocompatible
set nocp

"不备份文件
set nobackup

" use mouse everywhere
set mouse=a   (再用secure时后要是选择了拖动自动复制,最好不要改选项)

" wrap lines
set wrap

"显示行号
"set nu

"设置匹配模式,类似当输入一个左括号时会匹配相应的那个右括号
set showmatch

"去除vim的GUI版本中的toolbar
set guioptions-=T

"VIM的状态栏标尺
"set ruler
set ru

"检测文件的类型
filetype on

"记录历史的行数
set history=1000

"背景使用黑色
set background=dark

"查找时高亮显示关键字
set hls

"查找时自动找到第一个单词
set incsearch

#设置配色方案
colorscheme murphy


"设置TAB的宽度为4个空格
"set ts=4
set tabstop=4

"行间交错的宽度为4个空格
set shiftwidth=4

"语法高亮度显示
syntax on

"使用自动对齐
"set autoindent
set ai

"智能的选择对齐方式
"set smartindent
set si

"which tags files CTRL-] will search
set tags=./tags,./../tags,./../../tags,./**/tags

"支持C/C++的缩进
set cin

"方便使用taglist
nmap <F8> : Tlist <CR>

"方便使用A.vim插件
nmap <F7> :A<CR>

"方便执行python程序
map <F12> :!python.exe %<CR>

"把tab展开为空格
set expandtab

if(has("gui_running"))
     " 图形界面下的设置
else
    " 字符界面下的设置
endif
WEB相关 | 评论(0) | 引用(0) | 阅读(179)
发表评论
 网址
 电邮
  密码 游客无需密码
 昵称  *  [注册]
               

 
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我