Last active
September 5, 2019 15:26
-
-
Save zlei1/643ae26dbcf1e1eafab25fff72af6a76 to your computer and use it in GitHub Desktop.
This file contains 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 | |
filetype on | |
syntax on | |
set re=1 | |
set ttyfast | |
set lazyredraw | |
" 设置主题 | |
colorscheme molokai | |
" 高亮搜寻 | |
set hlsearch | |
" 设置所有的Tab和缩进为2个空格 tabstop | |
set ts=2 | |
" 设定<<和>>命令移动时的宽度为2 shiftwidth | |
set sw=2 | |
" 使用空格来替换Tab | |
set expandtab | |
" 缩进,自动缩进(继承前一行的缩进) | |
set autoindent | |
set foldmethod=indent | |
set foldlevelstart=99 | |
" 显示行号 | |
set number | |
"搜索忽略大小写 | |
set ignorecase | |
" 通过使用: commands命令,告诉我们文件的哪一行被改变过 | |
set report=0 | |
" 高亮显示匹配的括号([{和}]) | |
set showmatch | |
" 文件类型自动检测,代码智能补全 | |
set completeopt=longest,preview,menu | |
" 共享剪切板 | |
" set clipboard+=unnamed | |
" 总是显示状态栏 | |
set laststatus=2 | |
" 高亮显示当前行 | |
set cursorline | |
hi cursorline guibg=#00ff00 | |
hi CursorColumn guibg=#00ff00 | |
" 是否显示隐藏文件 | |
let NERDTreeShowHidden=1 | |
" 显示书签列表 | |
let NERDTreeShowBookmarks=1 | |
" indentLine | |
let g:indentLine_char = '¦' | |
let g:indentLine_enabled = 1 | |
" wakatime | |
let g:wakatime_PythonBinary = '/usr/bin/python' " (Default: 'python') | |
" syntastic | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
" ag search | |
if executable('ag') | |
let g:ackprg = 'ag --vimgrep' | |
endif | |
" NERDTree | |
map <C-n> :NERDTreeToggle<CR> | |
nmap <Leader>] :NERDTreeFind<CR> | |
" tagbar | |
nmap <F9> :TagbarToggle<CR> | |
" let g:tagbar_autofocus = 1 | |
" ==== 系统剪切板复制粘贴 ==== | |
" v 模式下复制内容到系统剪切板 | |
vmap <Leader>c "+yy | |
" n 模式下复制一行到系统剪切板 | |
nmap <Leader>c "+yy | |
" EasyAlign | |
xmap ga <Plug>(EasyAlign) | |
nmap ga <Plug>(EasyAlign) | |
" tab 标签页切换快捷键 | |
nmap <Leader>1 1gt | |
nmap <Leader>2 2gt | |
nmap <Leader>3 3gt | |
nmap <Leader>4 4gt | |
nmap <Leader>5 5gt | |
nmap <Leader>6 6gt | |
nmap <Leader>7 7gt | |
nmap <Leader>8 8gt | |
nmap <Leader>9 8gt | |
nmap <Leader>0 :tablast<CR> | |
" marks | |
nmap <Leader>m :marks<CR> | |
inoremap jj <Esc> | |
" MarkdownPreview | |
cabbrev mdp MarkdownPreview | |
cabbrev mdps MarkdownPreviewStop | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
" A tree explorer plugin for vim. | |
Plugin 'scrooloose/nerdtree' | |
" NERDTree and tabs together in Vim, painlessly | |
Plugin 'jistr/vim-nerdtree-tabs' | |
" A plugin of NERDTree showing git status | |
Plugin 'Xuyuanp/nerdtree-git-plugin' | |
" A Vim plugin which shows a git diff in the gutter (sign column) and stages/undoes (partial) hunks. | |
Plugin 'airblade/vim-gitgutter' | |
" Vim plugin for intensely orgasmic commenting | |
Plugin 'scrooloose/nerdcommenter' | |
" Lean & mean status/tabline for vim that's light as air. | |
Plugin 'vim-airline/vim-airline' | |
" A collection of themes for vim-airline | |
Plugin 'vim-airline/vim-airline-themes' | |
" A vim plugin to display the indention levels with thin vertical lines | |
Plugin 'Yggdroot/indentLine' | |
" Vim plugin for the Perl module / CLI script 'ack' | |
Plugin 'mileszs/ack.vim' | |
" one colorscheme pack to rule them all! | |
Plugin 'flazz/vim-colorschemes' | |
" Go development plugin for Vim | |
Plugin 'fatih/vim-go' | |
" Vim/Ruby Configuration Files | |
Plugin 'vim-ruby/vim-ruby' | |
" Syntax Highlight for Vue.js components | |
Plugin 'posva/vim-vue' | |
" CoffeeScript support for vim | |
Plugin 'kchmck/vim-coffee-script' | |
" Vim plugin for automatic time tracking and metrics generated from your programming activity | |
Plugin 'wakatime/vim-wakatime' | |
" Syntax checking hacks for vim | |
Plugin 'scrooloose/syntastic' | |
" Vim plugin that displays tags in a window | |
Plugin 'majutsushi/tagbar' | |
" A code-completion engine for Vim | |
" Plugin 'Valloric/YouCompleteMe' | |
" mathjax support for markdown-preview.vim plugin | |
Plugin 'iamcco/mathjax-support-for-mkdp' | |
Plugin 'iamcco/markdown-preview.vim' | |
" Underlines the word under the cursor | |
Plugin 'vim-cursorword' | |
" Vim motions on speed! | |
Plugin 'easymotion/vim-easymotion' | |
" A Vim alignment plugin | |
Plugin 'junegunn/vim-easy-align' | |
" Plugin to toggle, display and navigate marks | |
Plugin 'kshenoy/vim-signature' | |
" A vim plugin for highlighting and navigating through different words in a buffer. | |
Plugin 'lfv89/vim-interestingwords' | |
" Vim client for TabNine | |
Plugin 'zxqfl/tabnine-vim' | |
" fugitive.vim: A Git wrapper so awesome | |
Plugin 'tpope/vim-fugitive' | |
" Fast file navigation for VIM | |
Plugin 'wincent/command-t' | |
" A parser for a condensed HTML format | |
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} | |
call vundle#end() | |
filetype plugin indent on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment