-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplugin.vim
140 lines (119 loc) · 3.82 KB
/
plugin.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
" ----------------------------------------------------
" plugin settings
" ----------------------------------------------------
" nerdtree
let g:NERDTreeShowBookmarks = 1
let g:NERDTreeChDirMode = 2
"let g:NERDTreeDirArrows=0
let NERDTreeWinSize = 25
nnoremap <silent><C-e> :NERDTreeToggle<CR>
if !argc()
autocmd vimenter * NERDTree|normal gg3j
endif
" vim-easy-align
" Start interactive EasyAlign in visual mode (e.g. vipga)
xmap ga <Plug>(EasyAlign)
" Start interactive EasyAlign for a motion/text object (e.g. gaip)
nmap ga <Plug>(EasyAlign)
" vim-edgemotion
map <C-j> <Plug>(edgemotion-j)
map <C-k> <Plug>(edgemotion-k)
" vim-endwise
let g:endwise_no_mappings = 1
autocmd FileType lua,ruby,sh,zsh,vb,vbnet,aspvbs,vim imap <buffer> <CR> <CR><Plug>DiscretionaryEnd
" open-browser.vim
let g:netrw_nogx = 1 " disable netrw's gx mapping.
nmap gx <Plug>(openbrowser-smart-search)
vmap gx <Plug>(openbrowser-smart-search)
" vim-quickrun
let g:quickrun_config = {}
"" vim-markdown
let g:quickrun_config.markdown = {
\ 'outputter': 'browser'
\ }
let g:quickrun_config.rst = {
\ 'outputter': 'message',
\ 'runner': 'vimscript',
\ 'exec': 'InstantRst'
\ }
" ----------------------------------------------------
" dein.vim (plugin manager. For Vim 7.4 or above.)
" ----------------------------------------------------
let s:dein_dir = expand('~/.vim/dein')
let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim'
if &runtimepath !~# '/dein.vim'
if !isdirectory(s:dein_repo_dir)
execute '!git clone https://github.com/Shougo/dein.vim' s:dein_repo_dir
endif
execute 'set runtimepath^=' . fnamemodify(s:dein_repo_dir, ':p')
endif
if dein#load_state(s:dein_dir)
call dein#begin(s:dein_dir)
call dein#add('thinca/vim-quickrun')
" repository size is large
" call dein#add('vim-jp/vimdoc-ja')
call dein#add('ConradIrwin/vim-bracketed-paste')
call dein#add('tyru/open-browser.vim')
call dein#add('kana/vim-operator-user')
call dein#add('tyru/operator-camelize.vim')
call dein#add('kana/vim-altr')
call dein#add('AndrewRadev/sideways.vim')
call dein#add('kana/vim-niceblock')
" buffer
call dein#add('jlanzarotta/bufexplorer')
" tree
call dein#add('scrooloose/nerdtree')
call dein#add('Xuyuanp/nerdtree-git-plugin')
" Git
call dein#add('tpope/vim-fugitive')
call dein#add('tpope/vim-rhubarb')
call dein#add('cohama/agit.vim')
call dein#add('clear-code/insert-git-log.vim')
call dein#add('kana/vim-gf-user')
call dein#add('kana/vim-gf-diff')
call dein#add('clear-code/git-diff-unified.vim')
call dein#add('airblade/vim-gitgutter')
" move
call dein#add('haya14busa/vim-edgemotion')
" comp
call dein#add('tpope/vim-endwise')
call dein#add('tpope/vim-surround')
call dein#add('mattn/emmet-vim')
call dein#add('tomtom/tcomment_vim')
call dein#add('junegunn/vim-easy-align')
" search
call dein#add('haya14busa/incsearch.vim')
" grep
call dein#add('rking/ag.vim')
call dein#add('nazo/pt.vim')
" find
call dein#add('ctrlpvim/ctrlp.vim')
" lang
call dein#add('othree/html5.vim')
call dein#add('tpope/vim-rails')
call dein#add('vim-scripts/rest.vim')
call dein#add('gu-fan/InstantRst')
call dein#add('tpope/vim-markdown')
" 上記以外のプラグインを追加する場合、
" ~/.vim/dein/dein.toml を作成して以下のように記述してください。
"
" [[plugins]]
" repo = '.../...'
"
" [[plugins]]
" repo = '.../...'
"
let s:toml_path = s:dein_dir . '/dein.toml'
if filereadable(s:toml_path)
call dein#load_toml(s:toml_path, {'lazy': 0})
end
let s:toml_lazy_path = s:dein_dir . '/dein_lazy.toml'
if filereadable(s:toml_lazy_path)
call dein#load_toml(s:toml_lazy_path, {'lazy': 1})
end
call dein#end()
call dein#save_state()
endif
if dein#check_install()
call dein#install()
endif