Last active
May 18, 2016 16:47
-
-
Save jchenn/56e1edfc0fec8f3e5b42 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
| " 插件配置 | |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'gmarik/Vundle.vim' " 插件管理器 | |
| Plugin 'scrooloose/nerdtree' " 文件树 | |
| Plugin 'szw/vim-ctrlspace' " 多标签 | |
| Plugin 'kien/ctrlp.vim' " 按文件名模糊查找 | |
| Plugin 'vim-scripts/vim-autoprefixer' " 自动补全浏览器前缀 | |
| Plugin 'Raimondi/delimitMate' " 自动补全括号和引号 | |
| Plugin 'bling/vim-airline' " 状态栏 | |
| Plugin 'Lokaltog/vim-easymotion' | |
| Plugin 'Valloric/YouCompleteMe' " 代码提示 | |
| Plugin 'scrooloose/syntastic' " JavaScript语法检查 | |
| Plugin 'marijnh/tern_for_vim' " JavaScript代码提示 | |
| Plugin 'vim-scripts/Emmet.vim' " Emmet | |
| " 语法高亮 | |
| Plugin 'jelera/vim-javascript-syntax' " JavaScript | |
| Plugin 'hail2u/vim-css3-syntax' " CSS3 | |
| Plugin 'kchmck/vim-coffee-script' " CoffeeScript | |
| Plugin 'digitaltoad/vim-jade' " Jade | |
| Plugin 'othree/html5.vim' " HTML5 | |
| Plugin 'leafgarland/typescript-vim' " TypeScript | |
| Plugin 'plasticboy/vim-markdown' " Markdown | |
| " 配色 | |
| Plugin 'altercation/vim-colors-solarized' | |
| " 不知道有什么用 | |
| Plugin 'Valloric/ListToggle' | |
| call vundle#end() | |
| " 配色 | |
| set background=dark | |
| colorscheme solarized | |
| syntax on | |
| filetype plugin indent on | |
| set autoindent | |
| set smartindent | |
| " TAB | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set softtabstop=4 | |
| set expandtab | |
| " set smarttab " 设置后会导致右括号无法对齐 | |
| " 设置一些文件的tab宽度为2 | |
| autocmd filetype jade setlocal ts=2 sw=2 sts=2 | |
| set ruler " 显示光标所在位置 | |
| set number " 显示行号 | |
| set showmatch " 括号匹配 | |
| set showcmd " 在状态栏显示命令 | |
| set hidden | |
| set completeopt-=preview " 关闭函数说明 | |
| set autoread " 外部修改后自动更新文件 | |
| " 修改切换窗口的快捷键 | |
| map <C-j> <C-W>j | |
| map <C-k> <C-W>k | |
| map <C-h> <C-W>h | |
| map <C-l> <C-W>l | |
| " 修改leader键 | |
| let mapleader = ',' | |
| " 修改进入paste模式的快捷键 | |
| set pastetoggle=<F2> | |
| " markdown设置:禁止折叠标题栏 | |
| let g:vim_markdown_folding_disabled=1 | |
| " mac下的backspace默认无法删除非insert模式生成的字符 | |
| set backspace=indent,eol,start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment