Created
October 14, 2017 04:37
-
-
Save chakhsu/0bea6c4bb120878eabc345ffb73e8b1e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "-------------Vundle的配置文件----------------- | |
| set nocompatible " 去除VI一致性,必须 | |
| filetype off " 必须 | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " 让vundle管理插件版本,必须 | |
| Plugin 'VundleVim/Vundle.vim' | |
| " 代码源在 github 上的 | |
| Plugin 'mattn/emmet-vim' " Zencoding 的替代 | |
| Plugin 'gregsexton/MatchTag' | |
| Plugin 'moll/vim-node' | |
| Plugin 'othree/html5.vim' | |
| Plugin 'kien/ctrlp.vim' | |
| Plugin 'vim-scripts/vimwiki' | |
| Plugin 'pangloss/vim-javascript' | |
| Plugin 'guileen/vim-node-dict' | |
| Plugin 'scrooloose/nerdtree' | |
| " Don't forget to install ack http://beyondgrep.com/install/ | |
| Plugin 'mileszs/ack.vim' | |
| " vim自动补全的插件 | |
| " Plugin 'Valloric/YouCompleteMe' | |
| " 你的所有插件需要在下面这行之前 | |
| call vundle#end() " 必须 | |
| filetype plugin indent on " 必须 加载vim自带和插件相应的语法和文件类型相关脚本 | |
| " 忽视插件改变缩进,可以使用以下替代: | |
| "filetype plugin on | |
| " | |
| " 简要帮助文档 | |
| " :PluginList - 列出所有已配置的插件 | |
| " :PluginInstall - 安装插件,追加 `!` 用以更新或使用 :PluginUpdate | |
| " :PluginSearch foo - 搜索 foo ; 追加 `!` 清除本地缓存 | |
| " :PluginClean - 清除未使用插件,需要确认; 追加 `!` 自动批准移除未使用插件 | |
| " | |
| " 查阅 :h vundle 获取更多细节和wiki以及FAQ | |
| " 将你自己对非插件片段放在这行之后 | |
| "-------------个人配置文件----------------- | |
| colorscheme desert " 适合Ruby开发的蓝色主题 | |
| set guifont=Monaco " 适合Ruby开发的字体 && 字号 | |
| set tabstop=2 " 设置tab键的宽度 | |
| "set shiftwidth=2 " 换行时行间交错使用4个空格 | |
| set autoindent " 自动对齐 | |
| set expandtab " 设置Tab为空格 | |
| set backspace=2 " 设置退格键可用 | |
| set cindent shiftwidth=2 " 自动缩进4空格 | |
| set smartindent " 智能自动缩进 | |
| set ai! " 设置自动缩进 | |
| set nu! " 显示行号 | |
| set mouse=a " 启用鼠标 | |
| set ruler " 右下角显示光标位置的状态行 | |
| set incsearch " 查找book时,当输入/b时会自动找到 | |
| set hlsearch " 开启高亮显示结果 | |
| set incsearch " 开启实时搜索功能 | |
| set wrapscan " 搜索到文件两端时重新搜索 | |
| set nocompatible " 关闭兼容模式 | |
| set vb t_vb= " 关闭提示音 | |
| "set hidden " 允许在有未保存的修改时切换缓冲区 | |
| set list " 显示Tab符,使用一高亮竖线代替 | |
| set listchars=tab:\|\ , | |
| syntax enable " 打开语法高亮 | |
| syntax on " 开启文件类型侦测 | |
| filetype indent on " 针对不同的文件类型采用不同的缩进格式 | |
| filetype plugin on " 针对不同的文件类型加载对应的插件 | |
| filetype plugin indent on " 用自动补全,必须有 | |
| au FileType javascript set dictionary+=$HOME/.vim/bundle/vim-node-dict/dict/node.dict | |
| au FileType javascript set tabstop=4 | |
| au FileType javascript set cindent shiftwidth=4 " 自动缩进4空格 | |
| "emmet的配置 | |
| let g:user_emmet_expandabbr_key = '<s-tab>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment