.vimrc中配置如下:
" path指定查找的路径,详情help path
" includeexpr是尝试替换路径名中的.为/,详情help includeexpr
" suffixesadd为尝试路径后缀,详情help suffixesadd
set path=.,/usr/include,,..,../lualib,../work,
set includeexpr=substitute(...
分类:
系统相关 时间:
2015-04-23 13:30:29
阅读次数:
700
在使用vim时可以根据自身需要配置vim,配置信息放在主目录下的.vimrc文件中。vimrc文件其实就是将在vim命令模式中常用的一些命令放在文件中,会永久生效。下面的文件就是一个简单的vimrc文件:
.vimrc的配置文件编写的时候要注意:
1. vimrc文件中注释以双引号”开头
2.和shell脚本一致,对变量的赋值等号附近不能有空格。
3.命令就是在vim命令中模式模式...
分类:
系统相关 时间:
2015-04-23 11:00:49
阅读次数:
141
vundleYouCompleteMeVimwikivundle1.setup vundle$ git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim 2.配置插件,编辑主目录下的.vimrc文件,在文件...
分类:
系统相关 时间:
2015-04-20 20:47:46
阅读次数:
180
在Red Hat Linux 中vim的配置文件存放在/目录中,配置文件名为vimrc.g用户自定义的配置可以放在根目录的.vimrc文件中.1.显示行号手动显示:在vim命令行模式下输入:set nu取消显示:在vim命令行模式下输入:set nonu永久自动显示:vim ~/.vimrc打开.....
分类:
系统相关 时间:
2015-04-20 14:36:52
阅读次数:
150
#vim ~/.vimrc set smartindentset smarttabset expandtabset tabstop=4set softtabshtop=4set shiftwidth=4set backspace=2set textwidth=79"允许退格删除和tab操作"启...
分类:
编程语言 时间:
2015-04-18 19:04:55
阅读次数:
220
1. vim TAB转四个空格 vim /etc/vim/vimrc set et sta sw=4 sts=4 2. 对于已保存的文件,可以使用下面的方法进行空格和TAB的替换: TAB替换为空格: :set ts=4 :set expandtab :%retab! 空格替换为TAB: :set ts=...
分类:
系统相关 时间:
2015-04-18 11:41:31
阅读次数:
206
一、简介 spf13-vim是Vim插件与配置的一个发行版本,采用Vundle进行插件管理,可以通过下列文件进行个性化配置 ~/.vimrc.local,
~/.vimrc.bundles.local,
~/.vimrc.before.local 二、安装
下面介绍两种安装方式
方式1:执行如下命令...
分类:
系统相关 时间:
2015-04-18 11:28:47
阅读次数:
515
当你刚装完Ubuntu或者debian的时候,你会发现gedit和vim打开中文都会乱码,下面是解决方法 打开vim的配置文件,位置在/etc/vim/vimrc 在其中加入 set fileencodings=utf-8,gb2312,gbk,gb18030 set termencodin...
分类:
系统相关 时间:
2015-04-17 20:37:49
阅读次数:
160
set nocompatiblesource $VIMRUNTIME/vimrc_example.vimsource $VIMRUNTIME/mswin.vimbehave mswinset diffexpr=MyDiff()function MyDiff() let opt = '-a --bi....
分类:
系统相关 时间:
2015-04-10 14:58:21
阅读次数:
222