-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugins.vim
87 lines (68 loc) · 1.6 KB
/
plugins.vim
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
" set for vundle
" git clone https://github.com/gmarik/Vundle.vim
filetype off
if has("unix")
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#rc()
else
set rtp+=~/vimfiles/bundle/Vundle.vim/
call vundle#rc('$HOME/vimfiles/bundle/')
endif
" plugin {{{
" bundle settings {{{
call vundle#begin()
" Theme
Plugin 'crusoexia/vim-monokai'
" NERDTree
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'editorconfig/editorconfig-vim'
" SuperTab
Plugin 'ervandew/supertab'
Plugin 'ycm-core/YouCompleteMe'
" fzf
Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'taglist.vim'
" syntax
Plugin 'ap/vim-css-color'
Plugin 'groenewege/vim-less'
Plugin 'othree/yajs.vim'
Plugin 'mxw/vim-jsx'
Plugin 'posva/vim-vue'
Plugin 'leafgarland/typescript-vim'
"Plugin 'peitalin/vim-jsx-typescript'
call vundle#end()
" }}}
" NERDTree {{{
map <C-n> :NERDTreeTabsToggle<CR>
let g:NERDTreeDirArrows=0
" }}}
" SuperTab {{{
let g:SuperTabDefaultCompletionType = "<c-n>"
" }}}
" fzf {{{
let g:fzf_layout = { 'down': '80%' }
let g:fzf_buffers_jump = 1
let g:fzf_preview_window = ['right:70%', 'ctrl-/']
nnoremap <leader><C-o> :Files .<CR>
nnoremap <leader>g<C-o> :GFiles<CR>
nnoremap <leader>/ :Rg
nnoremap <leader><C-f> :Rg <CR>
" }}}
" taglist.vim {{{
set tags=tags;~,TAGS;~
" }}}
" vim-jsx {{{
let g:jsx_ext_required = 0
" }}}
" YouCompleteMe {{{
" let g:ycm_global_ycm_extra_conf = '~/.ycm_extra_conf.py'
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_confirm_extra_conf = 0
nnoremap <leader>jd :YcmCompleter GoTo
nnoremap <leader><F12> :YcmCompleter GoTo
" }}}
" }}}
filetype on