1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
| " Vim-Plug {{{ call plug#begin('~/.vim/plugged') Plug 'junegunn/vim-easy-align' Plug 'valloric/youcompleteme' Plug 'altercation/vim-colors-solarized' Plug 'https://github.com/junegunn/vim-github-dashboard.git' Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets' Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} Plug 'tpope/vim-fireplace', {'for': 'clojure'} Plug 'rdnetto/YCM-Generator', {'branch': 'stable'} Plug 'fatih/vim-go', {'tag': '*'} Plug 'nsf/gocode', {'tag': 'v.20150303', 'rtp':'vim'} call plug#end() " }}}
" General {{{ set nocompatible set nobackup set noswapfile set history=1024 set autochdir set whichwrap=b,s,<,>,[,] set nobomb set backspace=indent,eol,start whichwrap+=<,>,[,] set clipboard+=unnamed " Vim的默认寄存器和系统剪贴板共享 set winaltkeys=no " }}}
" GUI {{{ "colorscheme tomorrow-night set cursorline set hlsearch set incsearch set number set splitbelow set splitright "set guifont=Inconsolata:h20 " }}}
" Format {{{ set autoindent set smartindent set tabstop=4 set expandtab set softtabstop=4 "set foldmethod=indent set shiftwidth=4 set ls=2 syntax on " }}}
" Keymap {{{ let mapleader=","
" 标签操作 map <leader>tn :tabnew<cr> map <leader>tc :tabclose<cr> map <leader>th :tabp<cr> map <leader>tl :tabn<cr>
" 移动分割窗口 nmap <C-j> <C-w>j nmap <C-k> <C-w>k nmap <C-h> <C-w>h nmap <C-l> <C-w>l
" }}} set completeopt-=preview
|