如何设置Vimrc】的更多相关文章

.title { text-align: center } .todo { font-family: monospace; color: red } .done { color: green } .tag { background-color: #eee; font-family: monospace; padding: 2px; font-size: 80%; font-weight: normal } .timestamp { color: #bebebe } .timestamp-kwd…
在终端下使用vim进行编辑时,默认情况下,编辑的界面上是没有显示行号.语法高亮度显示.智能缩进 等功能的.为了更好的在vim下进行工作,需要手动设置一个配置文件:.vimrc.在启动vim时,当前用户根目录下的.vimrc文件会被自动读取,该文件可以包含一些设置甚至脚本, 所以,一般情况下把.vimrc文件创建在当前用户的根目录下比较方便,即创建的命令为:$vi ~/.vimrc #支持putty鼠标粘贴 if has('mouse') set mouse -= a endif 设置完后$:x …
转载请注明来源:https://www.cnblogs.com/hookjc/ "========================================================================= " DesCRiption: 适合自己使用的vimrc文件,for Linux/Windows, GUI/Console " windows下未测试 " Last Change: 2014年04月23日 10时55分  " &qu…
set sw=4   set ts=4   set et   set smarttab   set smartindent   set lbr   set fo+=mB   set sm   set selection=inclusive   set wildmenu   set mousemodel=popup       au FileType php setlocal dict+=~/.vim/dict/php_funclist.dict   au FileType css setloca…
set expandtab set nobackup set nosmartindent set noautoindent set ruler au BufRead,BufNewFile *.sv set filetype=systemverilog au BufRead,BufNewFile *.vh set filetype=systemverilog au BufRead,BufNewFile *.vt set filetype=systemverilog au BufRead,BufNe…
网上比较好的一篇文章:http://coolshell.cn/articles/1679.html http://coolshell.cn/articles/11312.html 1.Vim安装NERDTree插件:   先下载,官网:http://www.vim.org/scripts/script.php?script_id=1658   解压缩之后,把 plugin/NERD_tree.vim 和doc/NERD_tree.txt分别拷贝到~/.vim/plugin 和 ~/.vim/do…
macOS中Vim基本配置 Vim的初始化配置 .vimrc 存放位置 macOS 环境下 vim 的初始化配置文件为 .vimrc , 通常有两个(系统版本和用户版本),一个位于 /usr/share/vim/vimrc,是整个系统vim的默认配置:另一个位于 ~/.vimrc,是当前用户的 vim 配置,会覆盖系统配置.可进入 vim,在命令模式下键入 123 :version " 查看版本号:echo $VIM " 查看vim具体路径:echo $HOME " 用户主目…
一.设置.vimrc( windows下通常为_vimrc) 1.设置vim中tab的缩进 set ts=4  (注:ts是tabstop的缩写,设TAB宽4个空格) set expandtab (注:用4个空格代替一个TAB, 不设置的话就是一个宽为4的TAB) 二.插件 1.Vundle 插件安装器,http://github.com/VundleVim/Vundle.Vim 2.NERDTree 树形目录,https://github.com/scrooloose/nerdtree 3.N…
最近在学习使用VIM.我选择Solarized配色.相信很多人也都在用. 官网地址: http://ethanschoonover.com/solarized 看这配色:八卦乾坤,赏心悦目,高端大气上档次. 怎么用上呢? Vim 只需下载,将用于VIM的配色文件solarized.vim放在 ~/.vim/colors目录. 然后设置~/.vimrc 按 Ctrl+C 复制代码 按 Ctrl+C 复制代码 语法高亮需打开.backgroud我更喜欢dark.也可以设置成light.区别嘛还是请看…
文/嶽永鹏 最近从MS Windows 转到了Liunx,花了一段时间熟悉和学习Liunx环境.有时候,真的很是怀念MS Vistual Studio那种超级智能的开发环境,总是想在Vim拾起那些曾进熟悉的符号,因此决定把捣鼓很久的东西写下来.本文具体的实践环境为:linux centos 6.4. 本文最终可以实现的Vim功能: Centos YUM Install Vim; Installing Ctags Installing Cvim InstallingOmniCppComplete…