码迷,mamicode.com
首页 > 系统相关 > 详细

vim 语法着色完全配置

时间:2015-12-22 16:19:50      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:

原文地址:http://blog.sina.com.cn/s/blog_878940b3010156ku.html

在终端输入:sudo vim /etc/vim/vimrc   打开配置文件。
编辑命令:
set showcmd     " Show (partial) command in status line.
set showmatch       " Show matching brackets.
set ignorecase      " Do case insensitive matching
set smartcase       " Do smart case matching
set incsearch       " Incremental search
set autowrite       " Automatically save before commands like :next and :make
set hidden             " Hide buffers when they are abandoned
set syn=cpp
set nu!
set hlsearch
map <Up> gk
map <Down> gj
set cursorline
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set nohls
set mouse=a
syntax on
保存就可以了。
如果还不行的话,就在终端输入:sudo apt-get install vim-full就可以了。

vim 语法着色完全配置

标签:

原文地址:http://www.cnblogs.com/AloneSword/p/5066827.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!