-
Notifications
You must be signed in to change notification settings - Fork 2
/
.vimrc
3257 lines (3074 loc) · 133 KB
/
.vimrc
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
" vim: set fdm=marker sw=2 sts=2 cms="%s :
"=============================================================================
aug vimrc
au!
aug END
let s:bind = {'win': 'm', 'markj': '`', 'reg': '[@]', 'mode': '<C-q>', 'esc': '<C-o>', 'snip': 's', 'sticky': ':'}
"--------------------------------------
set encoding=utf-8
scriptencoding utf8
"BufRead時、'fileencodings'の先頭から'encoding'を試してerrが出なければそれを適用
set fileencodings=utf8,cp932,iso-2022-jp,euc-jp,default,latin
"改行コードの自動認識(新規作成されるファイルフォーマットをdosにしたい)
set fileformats=dos,unix,mac
"======================================
"環境変数
"$HOME がないとき、$VIM/TMPHOME を $HOME にする "{{{
if !exists("$HOME")
if isdirectory('/hom')
let $HOME='/hom'
else
let $HOME=$VIM. '/TMPHOME'
endif
endif
"}}}
"$PATHを追加{{{
function! s:PATH_add(path)
let $PATH .= $PATH =~ a:path ? '' : a:path. ';'
endfunction
function! s:PATH_insert(path)
let $PATH = $PATH =~ a:path ? $PATH : a:path. ';'. $PATH
endfunction
if has('vim_starting')
let $PATH .= ';'
call s:PATH_add('/bnr/cmd/MinGW/bin')
call s:PATH_add('/bnr/cmd/path')
call s:PATH_add('/bnr/cmd/PortableGit-1.7.11-preview20120620/bin')
call s:PATH_add('C:/Program Files/Java/jdk1.7.0_09/bin')
let $GOROOT = '/bnr/cmd/go'
call s:PATH_add($GOROOT.'/bin')
let $GOPATH = $HOME. '/_go'
call s:PATH_add($GOPATH.'/bin')
call s:PATH_add('/bnr/cmd/MercurialCmdPortable/App/Mercurial')
call s:PATH_insert(expand('~/Dropbox/vimfiles/neobundle/vim-themis/bin'))
call s:PATH_insert('/bnr/txe/vim')
endif
"}}}
let $JVGREP_OUTPUT_ENCODING = 'cp932'
let $TERM = exists('$TERM') ? $TERM : 'msys'
let $DOTFILES = $HOME. '/Dropbox/dotfiles'
"--------------------------------------
"vim関係のpath
let $BASEDIR = exists('$BASEDIR') ? $BASEDIR : expand($HOME . '/Dropbox')
let $MYVIMRC_SUBSTANCEDIR = $BASEDIR. '/dotfiles/vim'
let $VIMCACHE = $HOME. '/.cache/vim'
let $VIMUSERDIR = $BASEDIR. '/.config/vim'
if has('vim_starting')
let $VIMFILES = isdirectory(expand('$BASEDIR/vimfiles')) ? $BASEDIR. '/vimfiles' : isdirectory(expand('$HOME/vimfiles')) ? $HOME. '/vimfiles' : $VIM. '/vimfiles'
set rtp+=$VIMFILES,$VIMFILES/after,$VIMFILES/neobundle/neobundle.vim
endif
"=============================================================================
"if !s:iswin
"set shell=zsh
"else
"set shell=bash
"endif
"vimfiler
let g:vimfiler_tree_leaf_icon = '├'
let g:vimfiler_tree_opened_icon = '┐'
let g:vimfiler_tree_closed_icon = '─'
let g:vimfiler_file_icon = '...'
let g:vimfiler_marked_file_icon = '✓'
let g:vimfiler_readonly_file_icon = '✗'
let g:vimfiler_time_format = '%d-%m-%Y %H:%M:%S'
let g:backdraft_buffer_func = {'enterdraft': 'BackdraftEnterDraft'}
function! BackdraftEnterDraft() "{{{
nmap <buffer><expr><C-p> yankround#is_active() ? "\<Plug>(yankround-prev)" : "\<Plug>(backdraft_cycle_dec)"
nmap <buffer><expr><C-n> yankround#is_active() ? "\<Plug>(yankround-next)" : "\<Plug>(backdraft_cycle_inc)"
endfunction
"}}}
nnoremap ,sk :<C-u>AltiTask<CR>
"=============================================================================
"Neobundle_vim:
call neobundle#begin(expand('$VIMFILES/neobundle'))
let g:MYBUNDLE = expand('$VIMFILES/mybundle')
NeoBundleLocal $VIMFILES/bundle/
NeoBundle 'Shougo/neobundle.vim'
"--------------------------------------
"NeoBundle 'haya14busa/incsearch.vim'
"NeoBundle 'osyo-manga/vital-over'
"NeoBundle 'osyo-manga/vim-over'
"NeoBundle 'kamichidu/vim-milqi'
"NeoBundle 'kamichidu/vim-regexp-assemble'
"NeoBundle 'bitbucket:ns9tks/vim-fuzzyfinder'
"NeoBundle 'bitbucket:ns9tks/vim-l9'
"NeoBundle 'bitbucket:ns9tks/vim-autocomplpop'
"NeoBundle 'kana/vim-ku'
"Library:
NeoBundleLazy 'Shougo/vimproc'
NeoBundle 'vim-jp/vital.vim', {'autoload': {'commands': 'Vitalize'},}
NeoBundle 'LeafCage/oreo.vim', {'stay_same': 1, 'base': g:MYBUNDLE}
NeoBundle 'LeafCage/lim.vim', {'stay_same': 1, 'base': g:MYBUNDLE}
NeoBundleLazy 'tomtom/tlib_vim'
NeoBundleLazy 'thinca/vim-openbuf'
NeoBundleLazy 'mattn/wwwrenderer-vim' "webpage(only text)を返す
NeoBundleLazy 'mattn/webapi-vim'
NeoBundleLazy 'osyo-manga/vim-gift'
NeoBundle 'rbtnn/rabbit-ui.vim'
NeoBundleLazy 'rbtnn/rabbit-ui-collection.vim', {'autoload': {'commands': [{'complete': 'file', 'name': 'RabbitUICollectionEditCSV'}, 'RabbitUICollectionChoiceMark', 'RabbitUICollectionChoiceBookmark', 'RabbitUICollectionChoiceBuffer']}}
"--------------------------------------
"Synthesis:
NeoBundleLazy 'Shougo/unite.vim'
NeoBundleLazy 'ctrlpvim/ctrlp.vim',
NeoBundle 'LeafCage/alti.vim', {'stay_same': 1, 'base': g:MYBUNDLE}
NeoBundleLazy 'Shougo/vimshell'
NeoBundleLazy 'Shougo/vimfiler'
NeoBundleLazy 'LeafCage/flashcards.vim', {'autoload': {'unite_sources': ['flashcards'], 'commands': [{'complete': 'customlist,flashcards#comp_decks', 'name': 'FlashcardsBegin'}, {'complete': 'customlist,flashcards#comp_decks', 'name': 'FlashcardsEdit'}, 'FlashcardsContinue']}, 'stay_same': 1, 'base': g:MYBUNDLE}
"--------------------------------------
"Network_and_Documents:
NeoBundleLazy 'tyru/open-browser.vim', {'autoload': {'mappings': [['sxn', '<Plug>(openbrowser-']], 'commands': [{'complete': 'customlist,openbrowser#_cmd_complete', 'name': 'OpenBrowserSearch'}, {'complete': 'customlist,openbrowser#_cmd_complete', 'name': 'OpenBrowserSmartSearch'}, 'OpenBrowser']}}
NeoBundleLazy 'thinca/vim-ref'
NeoBundleLazy 'basyura/J6uil.vim', {'depends': 'mattn/webapi-vim'}
NeoBundleLazy 'LeafCage/ref-javadoc', {'depends': 'thinca/vim-ref', 'stay_same': 1, 'base': g:MYBUNDLE}
"NeoBundle 'vim-jp/vimdoc-ja'
"--------------------------------------
"Development:
NeoBundleLazy 'tpope/vim-fugitive'
NeoBundleLazy 'thinca/vim-quickrun', {'autoload': {'commands': 'QuickRun', 'mappings': ['<Plug>(quickrun']}, 'depends': 'Shougo/vimproc'}
NeoBundleLazy 'kannokanno/vimtest'
NeoBundle 'thinca/vim-themis'
NeoBundle 'Kuniwak/vint'
NeoBundleLazy 'kannokanno/vmock'
NeoBundleLazy 'LeafCage/laptime.vim', {'stay_same': 1, 'base': g:MYBUNDLE}
NeoBundleLazy 'LeafCage/vimhelpgenerator', {'stay_same': 1, 'base': g:MYBUNDLE}
NeoBundleLazy 'rhysd/conflict-marker.vim', {'autoload': {'unite_sources': ['conflict'], 'mappings': [['n', '<Plug>(conflict-marker-']], 'commands': ['ConflictMarkerBoth', 'ConflictMarkerThemselves', 'ConflictMarkerOurselves', 'ConflictMarkerNextHunk', 'ConflictMarkerPrevHunk', 'ConflictMarkerNone']}}
NeoBundleLazy 'gregsexton/gitv', {'autoload': {'commands': ['Gitv']}}
NeoBundleLazy 'cocoa.vim' "Objective-C
NeoBundleLazy 'javacomplete'
NeoBundleLazy 'Javascript-OmniCompletion-with-YUI-and-j'
NeoBundle 'thinca/vim-scall'
NeoBundle 'elzr/vim-json'
"NeoBundle 'mikelue/vim-maven-plugin' "Apache Maven project
"NeoBundle 'groovy.vim'
"NeoBundle 'derekwyatt/vim-scala'
"--------------------------------------
"Insert:
"NeoBundle 'kana/vim-smartchr'
"NeoBundleLazy 'cohama/lexima.vim', {'autoload': {'insert': 1}}
if has('lua')
NeoBundleLazy 'Shougo/neocomplete.vim', {'autoload': {'insert': 1}}
else
NeoBundleLazy 'Shougo/neocomplcache', {'autoload': {'insert': 1}}
end
NeoBundleLazy 'Shougo/neosnippet'
NeoBundle 'Shougo/neosnippet-snippets'
NeoBundleLazy 'mattn/emmet-vim', {'autoload': {'insert': 1, 'commands': ['Emmet', 'EmmetInstall']}}
NeoBundleLazy 'tpope/vim-abolish', {'autoload': {'mappings': [['n', '<Plug>Coerce']], 'commands': [{'complete': 'custom,LoadAbolish', 'name': 'S'}, {'complete': 'custom,LoadAbolish', 'name': 'Abolish'}, {'complete': 'custom,LoadAbolish', 'name': 'Subvert'}]}}
NeoBundleLazy 'scrooloose/nerdcommenter', {'autoload': {'mappings': [['inx', '<Plug>NERDCommenter']]}}
NeoBundle 'LeafCage/yankround.vim', {'stay_same': 1, 'base': g:MYBUNDLE}
NeoBundleLazy 'LeafCage/nebula.vim', {'autoload': {'commands': ['NebulaPutLazy', 'NebulaPutFromClipboard', 'NebulaYankOptions', 'NebulaYankConfig', 'NebulaPutConfig', 'NebulaYankTap']}, 'stay_same': 1, 'base': g:MYBUNDLE}
NeoBundleLazy 'terryma/vim-expand-region', {'autoload': {'mappings': [['sxn', '<Plug>(expand_region_']]}}
NeoBundleLazy 'kana/vim-operator-user'
NeoBundleLazy 'kana/vim-operator-replace' "レジスタにあるものとoperator指定したものを置き換え
NeoBundleLazy 'kana/vim-textobj-user'
NeoBundleLazy 'h1mesuke/textobj-wiw', {'depends': 'kana/vim-textobj-user', 'autoload': {'mappings': ['<Plug>(textobj-wiw']}} "カーソルドのwordを選択する/ CamelCaseMotionの働きも?
NeoBundleLazy 'kana/vim-textobj-function'
NeoBundleLazy 'kana/vim-textobj-indent', {'depends': 'kana/vim-textobj-user','autoload': {'mappings': ['<Plug>(textobj-indent']}}
NeoBundleLazy 'thinca/vim-textobj-between'
NeoBundleLazy 'thinca/vim-textobj-comment'
NeoBundleLazy 'anyakichi/vim-textobj-xbrackets'
NeoBundleLazy 'sgur/vim-textobj-parameter', {'depends': 'kana/vim-textobj-user', 'autoload': {'mappings': ['<Plug>(textobj-parameter']}}
NeoBundleLazy 'osyo-manga/vim-textobj-multiblock'
NeoBundleLazy 'deris/vim-rengbang', {'autoload': {'mappings': [['nx', '<Plug>(operator-rengbang']], 'commands': ['RengBang', 'RengBangUsePrev']}}
NeoBundleLazy 'anyakichi/vim-surround'
NeoBundleLazy 'supermomonga/unite-sudden-death', {'autoload': {'unite_sources': ['suddendeath']}}
NeoBundleLazy 'LeafCage/unite-recording', {'stay_same': 1, 'base': g:MYBUNDLE}
NeoBundleLazy 'mattn/ctrlp-mark', {'autoload': {'commands': ['CtrlPMark']}, 'depends': 'kien/ctrlp.vim'}
"--------------------------------------
"Moving:
NeoBundleLazy 'kana/vim-smartword', {'autoload': {'mappings': ['<Plug>(smartword-']}}
NeoBundle 'deton/jasegment.vim' "WBEを日本語文節区切り移動に
NeoBundleLazy 'Lokaltog/vim-easymotion', {'autoload': {'mappings': [['sxno', '<Plug>(easymotion-']], 'commands': ['EMCommandLineNoreMap', 'EMCommandLineMap', 'EMCommandLineUnMap']}}
NeoBundleLazy 'bkad/CamelCaseMotion', {'autoload': {'mappings': ['<Plug>CamelCaseMotion_']}}
NeoBundleLazy 'yonchu/accelerated-smooth-scroll', {'autoload': {'mappings': [['xn', '<Plug>(ac-smooth-scroll-c-']]}}
"NeoBundleLazy 'rhysd/clever-f.vim', {'autoload': {'mappings': [['sxno', '<Plug>(clever-f-']]}}
NeoBundleLazy 'thinca/vim-poslist', {'autoload': {'mappings': ['<Plug>(poslist-']}}
NeoBundleLazy 'thinca/vim-visualstar', {'autoload': {'mappings': ['<Plug>(visualstar-']}}
NeoBundle 'haya14busa/vim-asterisk'
NeoBundleLazy 'https://github.com/vim-scripts/DrawIt.git' "図を描写する #Bible5-4
NeoBundleLazy 'https://github.com/vim-scripts/Align.git' "高機能なテキストファイル整形ツール #Bible5-11
NeoBundleLazy 'https://github.com/tpope/vim-speeddating.git'
"--------------------------------------
"Writing:
"NeoBundle 'mrtazz/simplenote.vim' "オンラインノートsimplenoteを使う
"NeoBundle 'tomtom/ttoc_vim', {'depends': 'tomtom/tlib_vim'} "アウトライナ
"NeoBundle 'vim-scripts/vimwiki'
"NeoBundle 'https://github.com/fuenor/qfixhowm.git'
NeoBundleLazy 'thinca/vim-showtime', {'autoload': {'commands': [{'complete': 'file', 'name': 'ShowtimeStart'}]}}
"--------------------------------------
"Buffer_and_Win_and_Tabpage_and_Jump:
NeoBundleLazy 't9md/vim-choosewin', {'autoload': {'mappings': [['n', '<Plug>(choosewin)']], 'commands': ['ChooseWin']}}
NeoBundleLazy 'itchyny/thumbnail.vim', {'autoload': {'commands': [{'complete': 'customlist,thumbnail#complete', 'name': 'Thumbnail'}]}}
"NeoBundle 'kana/vim-tabpagecd' "TabPage毎にcrrdirを持てるようにする
"NeoBundle 'Rykka/lastbuf.vim'
"NeoBundleLazy 'osyo-manga/vim-reanimate', {'autoload': {'commands': ['ReanimateSave', 'ReanimateLoad', 'ReanimateSaveInput', 'ReanimateLoadInput', 'ReanimateLoadLatest', 'ReanimateSaveCursorHold', 'ReanimateSwitch', 'ReanimateEditVimrcLocal', 'ReanimateUnload']}}
NeoBundleLazy 'kana/vim-altr', {'autoload': {'mappings': [['scxino', '<Plug>(altr-']]}} "現在バッファから開くファイルを類推して開く
NeoBundleLazy 'kana/vim-gf-user', {'autoload': {'mappings': [['nv', '<Plug>(gf-user-']]}}
NeoBundleLazy 'sgur/vim-gf-autoload'
"NeoBundle 'osyo-manga/vim-automatic', {'depends': 'osyo-manga/vim-gift', 'vim_version': '7.3.895'}
"--------------------------------------
"Bind_and_Command:
"NeoBundleLazy 'kana/vim-arpeggio'
NeoBundleLazy 'kana/vim-submode', {'autoload': {'commands': ['SubmodeRestoreOptions']}}
NeoBundleLazy 't9md/vim-mapswap', {'autoload': {'mappings': [['n', '<Plug>(mapswap-dump)']], 'commands': ['Mapswap']}}
NeoBundleLazy 'thinca/vim-ambicmd' "コマンド名省入力 ex)NeoBundleUpdate > NBU
NeoBundle 'tyru/vim-altercmd' "コマンドのエイリアスを作る tyru版あり #B9-6
NeoBundleLazy 'LeafCage/cmdlineplus.vim', {'autoload': {'mappings': [['c', '<Plug>(cmdlineplus-']]}, 'stay_same': 1, 'base': g:MYBUNDLE}
"--------------------------------------
"Info:
NeoBundleLazy 'itchyny/calendar.vim', {'autoload': {'commands': [{'complete': 'customlist,calendar#argument#complete', 'name': 'Calendar'}]}}
NeoBundleLazy 'AndrewRadev/linediff.vim', {'autoload': {'commands': ['LinediffReset', 'Linediff']}}
NeoBundleLazy 'mbbill/undotree', {'autoload': {'commands': ['UndotreeToggle']}}
NeoBundle 'LeafCage/foldCC.vim', {'stay_same': 1, 'base': g:MYBUNDLE}
NeoBundle 'LeafCage/visiblemarks.vim', {'stay_same': 1, 'base': g:MYBUNDLE}
NeoBundle 'LeafCage/echos.vim', {'autoload': {'commands': [{'complete': 'expression', 'name': 'Echos'}]}, 'stay_same': 1, 'base': g:MYBUNDLE}
NeoBundle 'tyru/current-func-info.vim'
NeoBundleLazy 'sgur/vim-gitgutter', {'autoload': {'mappings': [['n', '<Plug>GitGutter']], 'commands': ['GitGutterAll', 'GitGutterToggle', 'GitGutterPrevHunk', 'GitGutterDisable', 'GitGutterLineHighlightsEnable', 'GitGutterNextHunk', 'GitGutterEnable', 'GitGutter', 'GitGutterLineHighlightsToggle', 'GitGutterLineHighlightsDisable']}}
"NeoBundle 'LeafCage/win-shujuukankei.vim'
NeoBundleLazy 'LeafCage/lastmess.vim', {'autoload': {'mappings': [['n', '<Plug>(lastmess']], 'commands': ['LastMess']}, 'type': 'nosync', 'base': g:MYBUNDLE}
NeoBundleLazy 'osyo-manga/vim-anzu'
NeoBundleLazy 'tacroe/unite-mark', {'autoload': {'unite_sources': ['mark']}}
NeoBundleLazy 'tsukkee/unite-tag', {'autoload': {'unite_sources' : ['tag']}}
NeoBundleLazy 'tsukkee/unite-help', {'autoload': {'unite_sources' : ['help']}}
NeoBundleLazy 'https://github.com/ujihisa/neco-look.git' "要look.exe
"NeoBundleLazy 'h1mesuke/unite-outline', {'autoload': {'unite_sources' : 'outline'}}
NeoBundleLazy 'thinca/vim-prettyprint', {'autoload' : {'commands': 'PP' }}
NeoBundleLazy 'taglist.vim' "ctagsを利用して :Tlistで変数関数定義一覧バッファ作成
NeoBundleLazy 'TagHighlight' "ctagsの情報を利用してハイライト
"NeoBundle 'errormarker.vim'
NeoBundleLazy 'jceb/vim-hier' "quickfixエラー箇所をハイライト
"NeoBundle 'ujihisa/unite-font' "動かない
NeoBundleLazy 'ujihisa/unite-colorscheme', {'autoload': {'unite_sources': ['colorscheme']}}
NeoBundleLazy 'pasela/unite-webcolorname', {'autoload': {'unite_sources' : 'webcolorname'}}
NeoBundleLazy 'LeafCage/unite-gvimrgb', {'autoload': {'unite_sources': ['gvimrgb']}, 'stay_same': 1, 'base': g:MYBUNDLE}
NeoBundleLazy 'osyo-manga/unite-highlight', {'autoload': {'unite_sources': ['highlight']}}
NeoBundleLazy 'cocopon/colorswatch.vim', {'autoload': {'commands': ['ColorSwatchGenerate']}}
NeoBundle 'LeafCage/taillight.vim', {'stay_same': 1, 'base': g:MYBUNDLE}
"--------------------------------------
"GUI:
NeoBundleLazy 'daisuzu/rainbowcyclone.vim', {'augroup': 'RainbowCyclone', 'autoload': {'mappings': [['n', '<Plug>(rc_']], 'commands': ['RCList', 'RCReset', 'RCConcat', 'RC']}}
NeoBundle 'itchyny/lightline.vim'
"NeoBundle 't9md/vim-ezbar'
"NeoBundle 'kien/rainbow_parentheses.vim'
"NeoBundle 'altercation/vim-colors-solarized' "なんか良いらしいcolorscheme
NeoBundleLazy 'tyru/winmove.vim', {'autoload': {'mappings': ['<Plug>(winmove-']}, 'gui':1}
NeoBundleLazy 'thinca/vim-fontzoom', {'autoload': {'mappings': ['<Plug>(fontzoom-'], 'commands': 'Fontzoom'}}
"--------------------------------------
"Maintenance:
"NeoBundle 'thinca/vim-localrc' "特定dir以下に.lvimrcを置くとdir以下のfileだけで設定反映
NeoBundle 'savevers.vim'
"--------------------------------------
"Helper:
NeoBundle 'ynkdir/vim-diff'
"NeoBundle 'fuenor/qfixgrep'
"--------------------------------------
call neobundle#end()
"=============================================================================
"各種プラグイン設定
"======================================
"Library:
let g:uptodate_filenamepatterns = ['lily.vim', 'lib/vimelements.vim']
let g:uptodate_cellardir = $VIMFILES. '/bundle/LCLIB'
autocmd vimrc FuncUndefined lib#* let _ = g:uptodate_cellardir. '/'. fnamemodify(expand('<afile>'), ':gs?#?/?:h'). '.vim' |if filereadable(_) |exe 'source ' _ | endif | unlet _
if neobundle#tap('vimproc') "{{{
call neobundle#config({'build': {'windows': 'make -f make_mingw32.mak', 'cygwin': 'make -f make_cygwin.mak', 'mac': 'make -f make_mac.mak', 'unix': 'make -f make_unix.mak',},
\ 'autoload': {'commands': [{'complete': 'shellcmd', 'name': 'VimProcBang'}, {'complete': 'shellcmd', 'name': 'VimProcRead'}]}})
endif
"}}}
"--------------------------------------
if neobundle#tap('oreo.vim') "{{{
let g:oreo#config_dir = '~/Dropbox/.config/vim/oreo.vim'
let g:oreo#libs = {}
let g:oreo#libs.lim = 'D:/hom/Dropbox/vimfiles/mybundle/lim.vim'
let g:oreo#libs.limalfa = 'oppai'
let g:oreo#libs['rabbit_ui'] = 'D:/hom/Dropbox/vimfiles/neobundle/rabbit-ui.vim'
endif
"}}}
"======================================
"Synthesis:
if neobundle#tap('unite.vim') "{{{
call neobundle#config({'autoload': {'commands': [{'name': 'Unite', 'complete': 'customlist,unite#complete_source'},
\ 'UniteWithCursorWord', 'UniteWithInput']}})
function! neobundle#tapped.hooks.on_source(bundle)
let g:unite_data_directory = $VIMCACHE. '/.unite'
let g:unite_cursor_line_highlight = 'Pmenu'
let g:unite_split_rule = 'botright' "窓の表示位置
let g:unite_winheight = 20 "水平分割時の窓高さ
let g:unite_enable_start_insert = 0
let g:unite_source_grep_command = 'jvgrep' "grepコマンド
let g:unite_source_grep_recursive_opt = '-R'
let g:unite_source_grep_default_opts = '-n --enc utf-8,utf-8,euc-jp'
"let g:unite_source_grep_recursive_opt = '-R'
"let g:unite_source_grep_default_opts = '-Hn'
"let g:unite_source_find_command = 'find'
"let g:unite_source_history_yank_enable = 1 "unite-history/yankを有効化する(ヤンクしたテキストの履歴)
let g:unite_kind_jump_list_after_jump_scroll=0
let g:unite_source_rec_min_cache_files = 1000
let g:unite_source_rec_max_cache_files = 5000
let g:unite_source_file_mru_long_limit = 6000
let g:unite_source_file_mru_limit = 300
let g:unite_source_directory_mru_long_limit = 6000
"actionではinsert-modeで始める
call unite#set_profile('action', 'context', {'start_insert' : 1})
" デフォルトのコンテキストを -prompt-direction=top にする
call unite#custom#profile('default', 'context', { 'prompt_direction': 'top'})
source $MYVIMRC_SUBSTANCEDIR/unite_setting.vim
endfunction
cnoreabb <expr>line getcmdtype()==':' && getcmdline()=~'^\s*Unite ' && getcmdline()!~'-start-insert' ?
\ '-start-insert -no-quit -buffer-name=search line' : 'line'
let g:loaded_unite_source_mru = 1 "mruを無効にする
autocmd vimrc FileType unite wincmd =
autocmd vimrc BufLeave [\[\*]unite[\]\*] wincmd =
"やたら長い変数をechoするとき見やすく表示
command! -complete=var -nargs=+ UPP exe 'Unite output:PP\ '. escape(<q-args>, ': ')
command! -nargs=+ -complete=customlist,unite#complete#source UniteMS bot sp| Unite -no-split <args>
nnoremap [space]u :<C-u>Unite<Space>
cnoreabb <expr>u getcmdtype()==':' && getcmdline()==' u' ? 'Unite' : 'u'
"文字関係
nnoremap ,dg :<C-u>Unite -buffer-name=register register<CR>
"nnoremap ,dy :<C-u>Unite history/yank<CR>
"xnoremap ,dy d:<C-u>Unite history/yank<CR>
"inoremap <expr><C-y> pumvisible() ? "\<C-y>" : "\<Esc>:Unite -start-insert history/yank\<CR>"
"file/buf関係
nnoremap ,dfl :<C-u>UniteWithBufferDir -buffer-name=files file<CR>
nnoremap ,dff :<C-u>Unite -buffer-name=files file<CR>
nnoremap ,dfr :<C-u>Unite -buffer-name=files -start-insert file_rec:<C-r>=escape(expand('%:p:h:h'), ': ')<CR><CR>
nnoremap ,dfs :<C-u>UniteWithBufferDir -buffer-name=files -start-insert buffer file_mru bookmark file<CR>
nnoremap ,fs :<C-u>UniteWithBufferDir -buffer-name=files -start-insert buffer file_mru bookmark file<CR>
nnoremap ,dfm :<C-u>Unite -buffer-name=files -start-insert file_mru<CR>
nnoremap ,fm :<C-u>Unite -buffer-name=files -start-insert file_mru<CR>
nnoremap ,dp :<C-u>Unite -buffer-name=files -start-insert buffer<CR>
nnoremap mp :<C-u>Unite -buffer-name=files -start-insert buffer<CR>
nnoremap ,dv :<C-u>Unite -buffer-name=files buffer_tab<CR>
nnoremap ,fv :<C-u>Unite -buffer-name=files buffer_tab<CR>
nnoremap ,da :<C-u>UniteBookmarkAdd<CR>
nnoremap ,db :<C-u>Unite bookmark<CR>
"nnoremap ,du :<C-u>Unite buffer_deleted<CR>
"場所関係
nnoremap ,dl :<C-u>Unite line -start-insert<CR>
nnoremap ,djc :<C-u>Unite change<CR>
nnoremap ,djj :<C-u>Unite jump<CR>
nnoremap ,dmm :<C-u>Unite mark<CR>
"let g:unite_source_mark_marks = '`mlkjih".^MLKJIHabcdefgnopqrstuvwxyzABCDEFGNOPQRSTUVWXYZ012'
let g:unite_source_mark_marks = '`abcdefghijkl".^ABCDEFGHIJKLmnopqrstuvwxyzMNOPQRSTUVWXYZ012'
nnoremap ,di :<C-u>Unite outline_indent<CR>
nnoremap ,dia :<C-u>Unite outline_indent:a<CR>
"autocmd BufEnter *
\ if empty(&buftype)
\| nnoremap <buffer> <C-]> :<C-u>UniteWithCursorWord -immediately tag<CR>
\| endif
"vim関係
nnoremap ,dmp :<C-u>Unite mapping<CR>
nnoremap ,dms :<C-u>Unite output:mes<CR>
nnoremap ,dme :<C-u>Unite output:mes<CR>
"GUI/CUI関係
nnoremap ,dxf :<C-u>Unite font<CR>
nnoremap ,dxw :<C-u>Unite webcolorname<CR>
"unite関係
nnoremap ,du :UniteResume<CR>
nnoremap ,ds :<C-u>Unite source<CR>
nnoremap ,d@ :<C-u>Unite menu:main<CR>
nnoremap ,d:m :<C-u>Unite menu:main<CR>
nnoremap ,d:g :<C-u>Unite menu:git<CR>
endif
"}}}
"--------------------------------------
if neobundle#tap('ctrlp.vim') "{{{
call neobundle#config({'autoload': {'commands': ['CtrlP', 'CtrlPBuffer', 'CtrlPMRU', 'CtrlPLastMode', 'CtrlPRoot', 'CtrlPClearCache', 'CtrlPClearAllCaches']}})
function! neobundle#tapped.hooks.on_source(bundle)
let g:ctrlp_prompt_mappings = {}
let g:ctrlp_prompt_mappings['PrtBS()'] = ['<BS>', '<C-h>']
let g:ctrlp_prompt_mappings['PrtSelectMove("j")'] = ['<C-n>']
let g:ctrlp_prompt_mappings['PrtSelectMove("k")'] = ['<C-p>']
let g:ctrlp_prompt_mappings['PrtHistory(-1)'] = ['<C-j>']
let g:ctrlp_prompt_mappings['PrtHistory(1)'] = ['<C-l>']
let g:ctrlp_prompt_mappings['PrtCurLeft()'] = ['<Left>', '<C-b>', '<C-k>']
let g:ctrlp_prompt_mappings['PrtCurRight()'] = ['<Right>', '<C-f>']
let g:ctrlp_prompt_mappings['PrtExit()'] = ['<Esc>', '<C-c>', '<C-q>']
let g:ctrlp_prompt_mappings['ToggleType(1)'] = ['<C-]>', '<C-up>']
let g:ctrlp_prompt_mappings['ToggleType(-1)'] = ['<C-\>', '<C-down>']
let g:ctrlp_prompt_mappings['PrtInsert()'] = ['<C-^>']
let g:ctrlp_prompt_mappings['PrtInsert("r")'] = ['<S-Left>']
endfunction
nnoremap <silent>[space]<C-p> :<C-u>CtrlP<CR>
nnoremap <silent><M-p> :<C-u>CtrlP<CR>
nnoremap <silent><M-b> :<C-u>CtrlPBuffer<CR>
nnoremap <silent>,b<C-p> :<C-u>CtrlPBuffer<CR>
nnoremap <silent>m<C-p> :<C-u>CtrlPMRU<CR>
nnoremap <silent><M-m> :<C-u>CtrlPMRU<CR>
nnoremap <silent>z<C-p> :<C-u>CtrlP D:/hom/Dropbox/ref<CR>
let g:ctrlp_smallreg_dir = $VIMCACHE. '/ctrlp/smallreg'
nnoremap <silent>g<C-p> :<C-u>CtrlPMark<CR>
"nnoremap <silent>[C-k]<C-p> :<C-u>CtrlPBuffer<CR>
"nnoremap <silent>[C-k]<C-h> :<C-u>CtrlPMRU<CR>
"autocmd vimrc CursorMoved ControlP let w:lightline = 0
let g:ctrlp_buffer_func = {'enter': 'CtrlPEnter'}
function! CtrlPEnter()
let w:lightline = 0
endfunction
let g:ctrlp_cache_dir = $VIMCACHE. '/ctrlp'
let g:ctrlp_max_files = 50
let g:ctrlp_use_migemo = 1
let g:ctrlp_show_hidden = 1
let g:ctrlp_switch_buffer = ''
let g:ctrlp_reuse_window = 'netrw\|help\|quickfix\|vimfiler\|unite\|vimshell'
let g:ctrlp_root_markers = ['[root]']
let g:ctrlp_open_new_file = 'h'
let g:ctrlp_working_path_mode = 'rc'
"let g:ctrlp_key_loop = 1
let g:ctrlp_mruf_exclude = '' "mruに追跡したくないfile
endif
"}}}
"--------------------------------------
if neobundle#tap('alti.vim') "{{{
function! neobundle#tapped.hooks.on_source(bundle)
let g:alti_prompt_mappings = {}
let g:alti_prompt_mappings['PrtCurLeft()'] = ['<Left>', '<C-k>']
let g:alti_prompt_mappings['PrtPage(1)'] = ['<C-l>', '<PageDown>', '<kPageDown>']
let g:alti_prompt_mappings['PrtPage(-1)'] = ['<C-o>', '<PageUp>', '<kPageUp>']
let g:alti_prompt_mappings['PrtExit()'] = ['<Esc>', '<C-c>', '<C-q>']
let g:alti_getreg_mappings = {}
let g:alti_getreg_mappings['"'] = ['<C-e>']
let g:alti_getreg_mappings['*'] = ['<C-y>']
endfunction
let g:alti_cache_dir = $VIMCACHE. '/alti'
"let g:alti_max_files = 1000
"let g:alti_use_migemo = 1
"let g:alti_show_hidden = 1
"let g:alti_switch_buffer = 'Et'
"let g:alti_reuse_window = 'netrw\|help\|quickfix\|vimfiler\|unite\|vimshell'
"let g:alti_root_markers = ['[root]']
"let g:alti_open_new_file = 'h'
endif
"}}}
"--------------------------------------
if neobundle#tap('vimshell') "{{{
call neobundle#config({'autoload': {'commands': [{'name': 'VimShell', 'complete': 'customlist,vimshell#complete'},
\ 'VimShellExecute', 'VimShellInteractive', 'VimShellTerminal', 'VimShellPop', 'VimShellTab'],
\ 'mappings': ['<Plug>(vimshell_']}})
function! neobundle#tapped.hooks.on_source(bundle)
let g:vimshell_temporary_directory = $VIMCACHE. '/.vimshell'
let g:vimshell_vimshrc_path = $VIMUSERDIR. '/.vimshrc'
let g:vimshell_split_command = '8split'
let g:vimshell_user_prompt = 'fnamemodify(getcwd(), ":~")' "ユーザプロンプトにカレントディレクトリを表示
let g:vimshell_split_height = 50
let g:vimshell_enable_smart_case = 1
if has('win32') || has('win64')
" Display user name on Windows.
let g:vimshell_prompt = $USERNAME."% "
else
" Display user name on Linux.
let g:vimshell_prompt = $USER."% "
call vimshell#set_execute_file('bmp,jpg,png,gif', 'gexe eog')
call vimshell#set_execute_file('mp3,m4a,ogg', 'gexe amarok')
let g:vimshell_execute_file_list['zip'] = 'zipinfo'
call vimshell#set_execute_file('tgz,gz', 'gzcat')
call vimshell#set_execute_file('tbz,bz2', 'bzcat')
endif
au FileType vimshell setl nobl
au FileType vimshell nnoremap <silent><buffer> q <C-w>c
au FileType vimshell nmap <silent><buffer><C-x>c <Plug>(vimshell_interrupt)
au FileType vimshell nnoremap ,db :<C-u>Unite -default-action=cd bookmark<CR>
au FileType vimshell nnoremap ,dd :<C-u>Unite -default-action=cd directory_mru<CR>
autocmd FileType vimshell
\ call vimshell#altercmd#define('g', 'git')
\| call vimshell#altercmd#define('i', 'iexe')
\| call vimshell#altercmd#define('l', 'll')
\| call vimshell#altercmd#define('ll', 'ls -l')
\| call vimshell#hook#add('chpwd', 'my_chpwd', 'My_chpwd')
function! My_chpwd(args, context)
call vimshell#execute('ls')
endfunction
endfunction
noremap <silent>,xs :let A = expand('%:p:h')<Bar> exe 'VimShellTab '. A<Bar>unlet A<CR>
noremap <silent>,sh :let A = expand('%:p:h')<Bar> exe 'VimShell -split '. A<Bar>unlet A<CR>
endif
"}}}
"--------------------------------------
if neobundle#tap('vimfiler') "{{{
call neobundle#config({'depends': ['Shougo/unite.vim',], 'autoload': {'commands':
\ [{'name': 'VimFiler', 'complete': 'customlist,vimfiler#complete'},
\ {'name': 'VimFilerExplorer', 'complete': 'customlist,vimfiler#complete'},
\ {'name': 'Edit', 'complete': 'customlist,vimfiler#complete'},
\ {'name': 'Write', 'complete': 'customlist,vimfiler#complete' }, 'Read', 'Source'],
\ 'mappings': ['<Plug>(vimfiler_'], 'explorer': 1,}})
let g:vimfiler_data_directory = $VIMCACHE. '/.vimfiler'
let g:vimfiler_as_default_explorer = 1
let g:unite_kind_file_use_trashbox = 1
let g:vimfiler_safe_mode_by_default = 0
"let g:vimfiler_split_rule = 'belowright'
"let g:vimfiler_detect_drives
"拡張子関連付け
"call vimfiler#set_execute_file('vim', 'vim')
"シンタックス
"let g:vimfiler_extensions = {'text': '', 'image': '', 'archive': '', 'system': '', 'multimedia': '',}
function! neobundle#tapped.hooks.on_source(bundle)
au FileType vimfiler let b:vimfiler.is_visible_dot_files = 1| setl nobl nonu| autocmd BufLeave <buffer> setl nobl
"vf basic-Keymaps "{{{
let g:vimfiler_no_default_key_mappings = 1
au FileType vimfiler nmap <buffer> j <Plug>(vimfiler_loop_cursor_down)
au FileType vimfiler nmap <buffer> k <Plug>(vimfiler_loop_cursor_up)
au FileType vimfiler nmap <buffer> gg <Plug>(vimfiler_cursor_top)
au FileType vimfiler nmap <buffer> <C-l> <Plug>(vimfiler_redraw_screen)
au FileType vimfiler nmap <buffer> @ <Plug>(vimfiler_toggle_mark_current_line)
au FileType vimfiler nmap <buffer> ` <Plug>(vimfiler_toggle_mark_current_line_up)
au FileType vimfiler nmap <buffer> <C-i> <Plug>(vimfiler_switch_to_other_window)
au FileType vimfiler nmap <buffer> i <Plug>(vimfiler_switch_to_another_vimfiler)
au FileType vimfiler nmap <buffer> vv <Plug>(vimfiler_toggle_mark_all_lines)
au FileType vimfiler nmap <buffer> vu <Plug>(vimfiler_clear_mark_all_lines)
au FileType vimfiler nmap <buffer> zc <Plug>(vimfiler_copy_file)
au FileType vimfiler nmap <buffer> zm <Plug>(vimfiler_move_file)
au FileType vimfiler nmap <buffer> zd <Plug>(vimfiler_delete_file)
au FileType vimfiler nmap <buffer> r <Plug>(vimfiler_rename_file)
au FileType vimfiler nmap <buffer> K <Plug>(vimfiler_make_directory)
au FileType vimfiler nmap <buffer> E <Plug>(vimfiler_new_file)
au FileType vimfiler nmap <buffer> <CR> <Plug>(vimfiler_execute)
"au FileType vimfiler nmap <buffer> <C-j> <Plug>(vimfiler_execute)
au FileType vimfiler nmap <buffer> l <Plug>(vimfiler_smart_l)
au FileType vimfiler nmap <buffer> x <Plug>(vimfiler_execute_system_associated)
au FileType vimfiler nmap <buffer> <2-LeftMouse> <Plug>(vimfiler_execute_system_associated)
au FileType vimfiler nmap <buffer> h <Plug>(vimfiler_smart_h)
au FileType vimfiler nmap <buffer> <BS> <Plug>(vimfiler_switch_to_parent_directory)
au FileType vimfiler nmap <buffer> L <Plug>(vimfiler_switch_to_drive)
au FileType vimfiler nmap <buffer> ~ <Plug>(vimfiler_switch_to_home_directory)
au FileType vimfiler nmap <buffer> \ <Plug>(vimfiler_switch_to_root_directory)
au FileType vimfiler nmap <buffer> <C-h> <Plug>(vimfiler_switch_to_history_directory)
au FileType vimfiler nmap <buffer> z. <Plug>(vimfiler_toggle_visible_dot_files)
au FileType vimfiler nmap <buffer> H <Plug>(vimfiler_popup_shell)
au FileType vimfiler nmap <buffer> ee <Plug>(vimfiler_edit_file)
"au FileType vimfiler nmap <buffer> E <Plug>(vimfiler_split_edit_file)
au FileType vimfiler nnoremap <silent><buffer><expr>es vimfiler#do_action('split')
au FileType vimfiler nmap <buffer> B <Plug>(vimfiler_edit_binary_file)
au FileType vimfiler nmap <buffer> er <Plug>(vimfiler_edit_binary_file)
au FileType vimfiler nmap <buffer> ge <Plug>(vimfiler_execute_external_filer)
au FileType vimfiler nmap <buffer> <RightMouse> <Plug>(vimfiler_execute_external_filer)
au FileType vimfiler nmap <buffer> <C-CR> <Plug>(vimfiler_execute_external_filer)
au FileType vimfiler nmap <buffer> ! <Plug>(vimfiler_execute_shell_command)
au FileType vimfiler nmap <buffer> q <Plug>(vimfiler_close)
au FileType vimfiler nmap <buffer> ddq <Plug>(vimfiler_exit)
au FileType vimfiler nmap <buffer> ? <Plug>(vimfiler_help)
au FileType vimfiler nmap <buffer> vi <Plug>(vimfiler_preview_file)
au FileType vimfiler nmap <buffer> o <Plug>(vimfiler_sync_with_current_vimfiler)
au FileType vimfiler nmap <buffer> O <Plug>(vimfiler_open_file_in_another_vimfiler)
au FileType vimfiler nmap <buffer> b <Plug>(vimfiler_open_file_in_another_vimfiler)
au FileType vimfiler nmap <buffer> <C-g><C-g> <Plug>(vimfiler_print_filename)
au FileType vimfiler nmap <buffer> g<C-g> <Plug>(vimfiler_toggle_maximize_window)
au FileType vimfiler nmap <buffer> yy <Plug>(vimfiler_yank_full_path)
au FileType vimfiler nmap <buffer> M <Plug>(vimfiler_set_current_mask)
au FileType vimfiler nmap <buffer> gr <Plug>(vimfiler_grep)
au FileType vimfiler nmap <buffer> gf <Plug>(vimfiler_find)
au FileType vimfiler nmap <buffer> S <Plug>(vimfiler_select_sort_type)
au FileType vimfiler nmap <buffer> <C-v> <Plug>(vimfiler_switch_vim_buffer_mode)
au FileType vimfiler nmap <buffer> gc <Plug>(vimfiler_cd_vim_current_dir)
au FileType vimfiler nmap <buffer> gs <Plug>(vimfiler_toggle_safe_mode)
au FileType vimfiler nmap <buffer> gS <Plug>(vimfiler_toggle_simple_mode)
au FileType vimfiler nmap <buffer> a <Plug>(vimfiler_choose_action)
au FileType vimfiler nmap <buffer> Y <Plug>(vimfiler_pushd)
au FileType vimfiler nmap <buffer> P <Plug>(vimfiler_popd)
au FileType vimfiler nmap <buffer> t <Plug>(vimfiler_expand_tree)
au FileType vimfiler nmap <buffer> . <Plug>(vimfiler_expand_tree)
au FileType vimfiler nmap <buffer> T <Plug>(vimfiler_expand_tree_recursive)
au FileType vimfiler nmap <buffer> I <Plug>(vimfiler_cd_input_directory)
au FileType vimfiler vmap <buffer> @ <Plug>(vimfiler_toggle_mark_selected_lines)
"}}}
au FileType vimfiler nnoremap <silent><buffer><expr>eb vimfiler#do_action('vsplit')
au FileType vimfiler nnoremap <silent><buffer><expr>ev vimfiler#do_action('tabopen')
au FileType vimfiler nnoremap <silent>,db :<C-u>Unite -default-action=vimfiler bookmark<CR>
au FileType vimfiler nnoremap <silent>,dd :<C-u>Unite -default-action=vimfiler directory_mru<CR>
endfunction
nnoremap ,ff :VimFiler -split -horizontal -reverse<CR>
nnoremap ,fj :VimFiler -split -winwidth=24 -simple -reverse -explorer <C-r>=<SID>get_prj_root()<CR><CR>
nnoremap ,fov :VimFiler -split -horizontal -reverse $VIMFILES<CR>
nnoremap ,fr :<C-u>Unite -buffer-name=files -start-insert file_rec:<C-r>=escape(<SID>get_prj_root(), ': ')<CR><CR>
nnoremap ,fl :VimFilerBufferDir -split -horizontal -reverse<CR>
nnoremap ,fb :Unite -default-action=vimfiler bookmark<CR>
nnoremap ,fd :Unite -default-action=vimfiler directory_mru<CR>
"nnoremap <silent>,xf :<C-u>call vimfiler#switch_filer(join([expand('%:p:h')]), {'split': 1, 'double': 1, 'horizontal': 1})<CR>
function! s:get_prj_root() "{{{
let prjRootPath = finddir('.git', expand('%:p:h').';')
if empty(prjRootPath)
return expand('%:p:h:h')
endif
return fnamemodify(prjRootPath, ':h')
endfunction
"}}}
endif
"}}}
"--------------------------------------
if neobundle#tap('flashcards.vim') "{{{
let g:flashcards#settings_dir = '~/.cache/vim/flashcards.vim'
let g:flashcards#decks_dir = '~/Dropbox/.config/vim/flashcards.vim'
endif
"}}}
"--------------------------------------
if neobundle#tap('calendar.vim') "{{{
let g:calendar_cache_directory = $VIMCACHE. '/calendar.vim/'
autocmd vimrc FileType calendar call s:calendar_mappings()
function! s:calendar_mappings()
nmap <buffer><expr>q b:calendar.view._help ? "\<Plug>(calendar_help)" : b:calendar.view._event ? "\<Plug>(calendar_event)" : b:calendar.view._task ? "\<Plug>(calendar_task)" : "\<Plug>(calendar_exit)"
nmap <buffer>h <Plug>(calendar_prev)
nmap <buffer>l <Plug>(calendar_next)
nmap <buffer>H <Plug>(calendar_line_head)
nmap <buffer>L <Plug>(calendar_line_last)
nmap <buffer>dd <Plug>(calendar_delete_line)
nmap <buffer>cc <Plug>(calendar_clear)
nmap <buffer>gh <Plug>(calendar_today)
nmap <buffer>t <Plug>(calendar_task)
nmap <buffer>e <Plug>(calendar_event)
nmap <buffer>r <Plug>(calendar_start_insert_change)
nmap <buffer><Esc> <Plug>(calendar_close_event)
try
unmap <buffer>d
unmap <buffer>c
unmap <buffer><C-h>
unmap <buffer><Space>
catch /E31:/
endtry
endfunction
endif
"}}}
"======================================
"Network_and_Documents:
if neobundle#tap('open-browser.vim') "{{{
call neobundle#config({'autoload': {'mappings': ['<Plug>(openbrowser-'], 'commands':
\ ['OpenBrowser', 'OpenBrowserSearch', 'OpenBrowserSmartSearch']}})
nmap ,xo <Plug>(openbrowser-smart-search)
vmap ,xo <Plug>(openbrowser-smart-search)
nmap <C-CR> <Plug>(openbrowser-smart-search)
vmap <C-CR> <Plug>(openbrowser-smart-search)
endif
"}}}
"--------------------------------------
if neobundle#tap('vim-ref') "{{{
call neobundle#config({'autoload': {'commands': [{'name': 'Ref', 'complete': 'customlist,ref#complete'}, 'RefHistory'],
\ 'mappings': ['<Plug>(ref-']}})
function! neobundle#tapped.hooks.on_source(bundle)
let g:ref_cache_dir = $VIMCACHE. '/.vim_ref_cache'
let g:ref_phpmanual_path = 'D:/dic/vim-ref/php-chunked-xhtml'
let g:ref_javadoc_path = 'D:/dic/vim-ref/java6api'
let g:ref_javadoc_cmd = 'lynx -dump -width=120 -nonumbers %s'
au FileType ref-* nnoremap <silent><buffer> q :close<CR>
"webdictサイトの設定
let g:ref_source_webdict_sites = {}
let g:ref_source_webdict_sites.je = {'url': 'http://dictionary.infoseek.ne.jp/jeword/%s',}
let g:ref_source_webdict_sites.ej = {'url': 'http://dictionary.infoseek.ne.jp/ejword/%s',}
let g:ref_source_webdict_sites.alc = {'url': 'http://eow.alc.co.jp/%s', 'keyword_encoding': 'utf-8', 'cache': '0',}
let g:ref_source_webdict_sites.kok = {'url': 'http://dictionary.infoseek.ne.jp/word/%s?dic=daijisen',}
let g:ref_source_webdict_sites.wip = {'url': 'http://ja.wikipedia.org/wiki/%s',}
let g:ref_source_webdict_sites.default = 'ej'
let g:ref_source_webdict_encoding = 'cp932'
"出力に対するフィルタ。最初の数行を削除
function! g:ref_source_webdict_sites.je.filter(output)
return join(split(a:output, "\n")[15 :], "\n")
endfunction
"function! g:ref_source_webdict_sites.ej.filter(output)
"return join(split(a:output, "\n")[15 :], "\n")
"endfunction
function! g:ref_source_webdict_sites.alc.filter(output)
return join(split(a:output, "\n")[37 :], "\n")
endfunction
function! g:ref_source_webdict_sites.kok.filter(output)
return join(split(a:output, "\n")[15 :], "\n")
endfunction
function! g:ref_source_webdict_sites.wip.filter(output)
return join(split(a:output, "\n")[17 :], "\n")
endfunction
endfunction
nnoremap gx <Nop>
nnoremap gxh :<C-u>Ref webdict ej <C-r><C-w>
nnoremap gxj :<C-u>Ref webdict je <C-r><C-w>
nnoremap gxk :<C-u>Ref webdict kok <C-r><C-w>
nnoremap gxa :<C-u>Ref webdict alc <C-r><C-w>
nnoremap gxw :<C-u>Ref webdict wip <C-r><C-w>
endif
"}}}
"--------------------------------------
if neobundle#tap('J6uil.vim') "{{{
call neobundle#config({'autoload': {'unite_sources': ['J6uil_members', 'J6uil_rooms'], 'mappings': [['n', '<Plug>(J6uil_']], 'commands': ['J6uilReconnect', 'J6uilDisconnect', {'complete': 'custom,J6uil#complete#room', 'name': 'J6uil'}]}})
function! neobundle#tapped.hooks.on_source(bundle)
autocmd FileType J6uil :call s:J6uil_settings(expand('<abuf>'))
autocmd FileType J6uil_say :nunmap <buffer><C-j>| nmap <silent><buffer>q :<C-u>bd!<CR>
let g:J6uil_config_dir = $VIMCACHE. '/.J6uil'
endfunction
function! s:J6uil_settings(bufnr)
nmap <silent><buffer>q :<C-u>bd!<CR>
nmap <silent><buffer>dc <Plug>(J6uil_disconnect)
nmap <silent><buffer>r <Plug>(J6uil_reconnect)
let s:bufnr = str2nr(a:bufnr)
noremap ,xj :<C-u>exe 'e' s:bufnr<CR>
autocmd VimLeavePre * :if bufexists(s:bufnr)| exe 'bd '. s:bufnr| endif
endfunction
noremap ,xj :<C-u>J6uil<CR>
endif
"}}}
"======================================
"Development:
if neobundle#tap('vim-fugitive') "{{{
call neobundle#config({'augroup': 'fugitive', 'autoload': {'commands': ['Git', 'Gcd', 'Glcd', 'Gstatus', 'Gcommit', 'Ggrep', 'Glgrep', 'Glog', 'Gllog', 'Gedit', 'Gsplit', 'Gvsplit', 'Gtabedit', 'Gpedit', 'Gread', 'Gwrite', 'Gwq', 'Gdiff', 'Gsdiff', 'Gvdiff', 'Gmove', 'Gremove', 'Gblame', 'Gbrowse']}})
function! neobundle#tapped.hooks.on_post_source(bundle)
doautoall fugitive BufNewFile
endfunction
endif
"}}}
"--------------------------------------
if neobundle#tap('vim-quickrun') "{{{
let g:quickrun_config = {}
let g:quickrun_config._ = {'outputter/buffer/split': '', 'outputter/buffer/close_on_empty': 1, 'runner': 'vimproc', 'runner/vimproc/updatetime': 60}
let g:quickrun_config.markdown = {'type': 'markdown/kramdown', 'cmdopt': '-s', 'outputter': 'browser'}
nmap ,r <Plug>(quickrun)
"<C-c> でquickrun実行を強制終了させる
nnoremap <expr><silent> <C-c> quickrun#is_running() ? quickrun#sweep_sessions() : "\<C-c>"
endif
"}}}
"--------------------------------------
if neobundle#tap('vimtest') "{{{
call neobundle#config({'autoload': {'commands': [{'name': 'VimTest', 'complete': 'file'},
\ {'name': 'VimTestBuffer', 'complete': 'file'}, {'name': 'VimTestStdout', 'complete': 'file'},
\ {'name': 'VimTestQuickfix', 'complete': 'file'}]}})
function! neobundle#tapped.hooks.on_source(bundle)
let g:vimtest_config = {}
"let g:vimtest_config.outputter = 'stdout' "cmdline
let g:vimtest_config.outputter = 'buffer'
endfunction
autocmd StdinReadPost,BufWinEnter *_test.vim nnoremap <buffer>,t :<C-u>VimTest<CR>
endif
"}}}
"--------------------------------------
if neobundle#tap('vim-themis') "{{{
endif
"}}}
"--------------------------------------
if neobundle#tap('vimhelpgenerator') "{{{
call neobundle#config({'autoload': {'commands': ['VimHelpGenerator', 'VimHelpGeneratorVirtual']}, 'stay_same': 1})
aug vimhelpgenerator
autocmd!
autocmd FileType help command! -nargs=0 -range -buffer HelpIntoMarkdown call vimhelpgenerator#helpintomarkdown#generate(<line1>, <line2>)
aug END
function! neobundle#tapped.hooks.on_source(bundle)
let g:vimhelpgenerator_version = ''
let g:vimhelpgenerator_author = 'Author : LeafCage <leafcage+vim @ gmail.com>'
let g:vimhelpgenerator_contents = {'contents': 1, 'introduction': 1, 'usage': 1, 'interface': 1, 'variables': 1, 'commands': 1, 'key-mappings': 1, 'functions': 1, 'todo': 0, 'changelog': 0,}
let g:vimhelpgenerator_uri = 'https://github.com/LeafCage/'
let g:vimhelpgenerator_gitignore_lines = ['/doc/tags*', 'todo.md']
endfunction
endif
"}}}
"======================================
"Insert:
if neobundle#tap('lexima.vim') "{{{
let g:lexima_no_default_rules = 1
let g:lexima_no_map_to_escape = 1
function! s:lexima_init() "{{{
call lexima#clear_rules()
let rules = [
\ {'char': '(', 'input_after': ')', 'at': '\%#[^'']'},
\ {'char': '(', 'at': '\\\%#'},
\ {'char': '(', 'at': '\%#[^[:blank:]]'},
\ {'char': ')', 'at': '\%#)', 'leave': 1},
\ {'char': ')', 'at': '\%#\n\s*)', 'leave': 2},
\ {'char': '<BS>', 'at': '(\%#)', 'delete': 1},
\ {'char': '<CR>', 'at': '(\%#)', 'input_after': '<CR>'},
\ {'char': '{', 'input_after': '}'},
\ {'char': '}', 'at': '\%#}', 'leave': 1},
\ {'char': '}', 'at': '\%#\n\s*}', 'leave': 2},
\ {'char': '<BS>', 'at': '{\%#}', 'delete': 1},
\ {'char': '<CR>', 'at': '{\%#}', 'input_after': '<CR>'},
\ {'char': '[', 'input_after': ']'},
\ {'char': '[', 'at': '\\\%#'},
\ {'char': '[', 'at': '\%#[^[:blank:]]'},
\ {'char': ']', 'at': '\%#]', 'leave': 1},
\ {'char': ']', 'at': '\%#\n\s*]', 'leave': 2},
\ {'char': '<BS>', 'at': '\[\%#\]', 'delete': 1},
\ {'char': '<CR>', 'at': '\[\%#\]', 'input_after': '<CR>'},
\ ]
let rules += [
\ {'char': '"', 'input_after': '"', 'at': '[^[:alnum:]]\%#\|\%#[^[:alnum:]]'},
\ {'char': '"', 'at': '\%#"', 'leave': 1},
\ {'char': '"', 'at': '\\\%#'},
\ {'char': '"', 'at': '^\s*\%#', 'filetype': 'vim'},
\ {'char': '"', 'at': '\%#\s*$', 'filetype': 'vim'},
\ {'char': '<BS>', 'at': '"\%#"', 'delete': 1},
\ {'char': '"', 'at': '""\%#', 'input_after': '"""'},
\ {'char': '"', 'at': '\%#"""', 'leave': 3},
\ {'char': '<BS>', 'at': '"""\%#"""', 'input': '<BS><BS><BS>', 'delete': 3},
\ {'char': "'", 'input_after': "'", 'at': '[^[:alnum:]]\%#\|\%#[^[:alnum:]]'},
\ {'char': "'", 'at': '\%#''', 'leave': 1},
\ {'char': "'", 'at': '\w\%#''\@!'},
\ {'char': "'", 'at': '\\\%#'},
\ {'char': "'", 'at': '\\\%#', 'leave': 1, 'filetype': ['vim', 'sh', 'csh', 'ruby', 'tcsh', 'zsh']},
\ {'char': "'", 'filetype': ['haskell', 'lisp', 'clojure', 'ocaml', 'scala']},
\ {'char': '<BS>', 'at': "'\\%#'", 'delete': 1},
\ {'char': "'", 'at': "''\\%#", 'input_after': "'''"},
\ {'char': "'", 'at': "\\%#'''", 'leave': 3},
\ {'char': '<BS>', 'at': "'''\\%#'''", 'input': '<BS><BS><BS>', 'delete': 3},
\ {'char': '`', 'input_after': '`'},
\ {'char': '`', 'at': '\%#`', 'leave': 1},
\ {'char': '<BS>', 'at': '`\%#`', 'delete': 1},
\ {'char': '`', 'at': '``\%#', 'input_after': '```'},
\ {'char': '`', 'at': '\%#```', 'leave': 3},
\ {'char': '<BS>', 'at': '```\%#```', 'input': '<BS><BS><BS>', 'delete': 3},
\ ]
for rule in rules
call lexima#add_rule(rule)
endfor
"call lexima#add_rule({'char': '(', 'at': '\%#[''"{}[:alnum:]]'})
"call lexima#add_rule({'char': '[', 'at': '\%#[''"{}[:alnum:]]'})
call lexima#add_rule({'char': '(', 'input_after': ')', 'mode': 'c'})
call lexima#add_rule({'char': '<BS>', 'at': '(\%#)', 'delete': 1, 'mode': 'c'})
call lexima#insmode#define_altanative_key('<C-h>', '<BS>')
call lexima#cmdmode#define_altanative_key('<C-h>', '<BS>')
endfunction
"}}}
function! neobundle#tapped.hooks.on_source(bundle)
call s:lexima_init()
command! -nargs=0 LeximaReload call s:lexima_init()
endfunction
endif
"}}}
"--------------------------------------
if neobundle#tap('neocomplecache') "{{{
function! neobundle#tapped.hooks.on_source(bundle)
let g:neocomplcache_temporary_dir = $VIMCACHE. '/.neocon'
let g:neocomplcache_dictionary_filetype_lists = {}
let g:neocomplcache_dictionary_filetype_lists.default = ''
let g:neocomplcache_dictionary_filetype_lists.vim = $VIMUSERDIR. '/.neocon_dict/vim.dict'
let g:neocomplcache_dictionary_filetype_lists.java = $VIMUSERDIR. '/.neocon_dict/java.dict'
"let g:neocomplcache_dictionary_filetype_lists.vimshell = $HOME.'/.vimshell_hist'
let g:neocomplcache_dictionary_filetype_lists.scheme = $HOME.'/.gosh_completions'
let g:neocomplcache_enable_at_startup = 1 "ネオコン有効化
let g:neocomplcache_enable_prefetch = 1 "以前のバージョンの挙動にする。
"let g:neocomplcache_disable_auto_complete = 1 "自動補完を無効にする
let g:neocomplcache_enable_smart_case = 1 "スマートケィス(大文字が含まれている場合は区別する)
let g:neocomplcache_enable_underbar_completion = 1 "アンダーバー_を区切りとした曖昧検索
let g:neocomplcache_enable_camel_case_completion = 1 "大文字を区切りとした曖昧検索
"let g:neocomplcache_enable_auto_select = 1 "ポップアップを出すとき自動的に一番上の候補を選択状態
let g:neocomplcache_auto_completion_start_length = 2 "ポップアップを出し始める文字数(初期値2)
let g:neocomplcache_min_syntax_length = 3 "シンタックス最小キャッシュ文字数
let g:neocomplcache_min_keyword_length = 2 "補完を行うキーワードの最小長さ(初期値4)
"ネオコンが未対応のファイルタイプでのキーワード収集パターン(ファイルタイプ別に指定)
let g:neocomplcache_keyword_patterns = get(g:, 'neocomplecache_keyword_patterns', {})
let g:neocomplcache_keyword_patterns['default'] = '\h\w*' "単語のヘッド\単語を構成する文字(数字やアルファベット)*
"let g:neocomplcache_keyword_patterns['sfd'] = '\c\[:\%(\h\w*:\]\)\?\| &\h[[:alnum:]_:]*\| \$\h\w*\|-\h\w*=\?\| <SID>\%(\h\w*(\?\)\?\| <Plug>([^)]*)\?\| <\h[[:alnum:]_-]*>\?\| \h[[:alnum:]_:#]*\%(!\| ()\?\)\?\| `\h\w*'
endfunction
"Vim標準の補完をネオコンに置き換える
inoremap <expr><C-x><C-f> neocomplcache#manual_filename_complete()
inoremap <expr><C-x><C-o> neocomplcache#manual_omni_complete()
"inoremap <expr><C-n> pumvisible() ? "\<C-n>" : neocomplcache#manual_keyword_complete()
"候補の共通箇所まで補完する
inoremap <expr><C-l> neocomplcache#complete_common_string()
"決定してポップアップを閉じる
"inoremap <expr><C-j> pumvisible() ? neocomplcache#close_popup() : "\<C-j>"
"キャンセルしてポップアップを閉じる
inoremap <expr><C-e> pumvisible() ? neocomplcache#cancel_popup() : "\<End>"
"inoremap <expr><C-q> neocomplcache#cancel_popup()
"inoremap <expr><C-y> eocomplcache#cancel_popup()
"ネオコンによって挿入した補完を元に戻す
inoremap <expr><C-\> neocomplcache#undo_completion()
endif
"}}}
"--------------------------------------
if neobundle#tap('neosnippet') "{{{
call neobundle#config({'autoload': {'unite_sources': ['neosnippet_file', 'snippet', 'snippet_target'], 'mappings': [['sxi', '<Plug>(neosnippet_']], 'commands': [{'complete': 'file', 'name': 'NeoSnippetSource'}, {'complete': 'customlist,neosnippet#filetype_complete', 'name': 'NeoSnippetMakeCache'}, {'complete': 'customlist,neosnippet#edit_complete', 'name': 'NeoSnippetEdit'}]}})
function! neobundle#tapped.hooks.on_source(bundle)
let g:neosnippet#snippets_directory = $VIMUSERDIR. '/snippets'
au vimrc FileType neosnippet setl nobl nofoldenable tabstop=2 shiftwidth=2 softtabstop=2
au vimrc FileType neosnippet noremap <buffer>q <C-w>q
au vimrc FileType neosnippet inoremap <buffer><C-q> ${}<Left>
endfunction
au vimrc BufLeave *.snip setl nobl
imap <C-s> <Plug>(neosnippet_expand_or_jump)
smap <C-s> <Plug>(neosnippet_expand_or_jump)
xmap <C-s> <Plug>(neosnippet_expand_target)
"スニペットを編集する
nmap cos <SID>o_snip
nnoremap <SID>o_snip :<C-u>NeoSnippetEdit -split -horizontal -direction=aboveleft<CR>
nmap coS <SID>o_Snip
nnoremap <SID>o_Snip :<C-u>NeoSnippetEdit -runtime -split -horizontal -direction=aboveleft<CR>
nmap cors <SID>o_rsnip
nnoremap <SID>o_rsnip :<C-u>NeoSnippetEdit -runtime -split -horizontal -direction=aboveleft<CR>
nmap coas <SID>a_snip
nnoremap <SID>a_snip :NeoSnippetEdit -split -horizontal -direction=aboveleft _<CR>
nmap coaS <SID>a_Snip
nnoremap <SID>a_Snip :NeoSnippetEdit -runtime -split -horizontal -direction=aboveleft _<CR>
endif
"}}}
"--------------------------------------
if neobundle#tap('emmet-vim') "{{{
let g:user_emmet_leader_key = '<C-z>'
let g:user_emmet_settings = {'indentation' : ' '}
endif
"}}}
"--------------------------------------
if neobundle#tap('vim-abolish') "{{{
nmap cr <Plug>Coerce
function! LoadAbolish(arglead, cmdline, curpos) "{{{
call neobundle#config#source('vim-abolish')
call feedkeys("\<C-\>egetcmdline()\<CR>\<Tab>", 't')
return a:arglead
endfunction
"}}}
endif
"}}}
"--------------------------------------
if neobundle#tap('nerdcommenter') "{{{
call neobundle#config({})
function! neobundle#tapped.hooks.on_post_source(bundle)
doautocmd NERDCommenter BufEnter
endfunction
nmap gc [CM]
vmap gc [CM]
nmap [CM]c <Plug>NERDCommenterToggle
vmap [CM]c <Plug>NERDCommenterToggle
nmap [CM]a <Plug>NERDCommenterAppend
nmap [CM]9 <Plug>NERDCommenterToEOL
vmap [CM]x <Plug>NERDCommenterSexy
vmap [CM]b <Plug>NERDCommenterMinimal
endif
"}}}
"--------------------------------------
if neobundle#tap('yankround.vim') "{{{
let g:ctrlp_abailable = 1
let g:yankround_dir = $VIMCACHE. '/yankround'
let g:yankround_use_region_hl = 1
let g:ctrlp_enable = 1
nmap p <Plug>(yankround-p)
xmap p <Plug>(yankround-p)
nmap P <Plug>(yankround-P)
nmap gp <Plug>(yankround-gp)
xmap gp <Plug>(yankround-gp)
nmap gP <Plug>(yankround-gP)
nmap gp <Plug>(yankround-cursorfixed-p)
nmap gP <Plug>(yankround-cursorfixed-P)
nnoremap <silent><SID>(ctrlp) :<C-u>CtrlP<CR>
nnoremap <silent><expr><SID>(thumbnail) exists(':Thumbnail')==2 ? ":\<C-u>Thumbnail\<CR>" : ''
"nmap <expr><C-p> yankround#is_active() ? "\<Plug>(yankround-prev)" : "<SID>(ctrlp)"
"nmap <expr><C-n> yankround#is_active() ? "\<Plug>(yankround-next)" : "<SID>(thumbnail)"
nmap <expr><C-p> yankround#is_active() ? "\<Plug>(yankround-prev)" : "gT"
nmap <expr><C-n> yankround#is_active() ? "\<Plug>(yankround-next)" : "gt"
"nmap <C-n> <Plug>(yankround-next)
nnoremap <silent>[@]<C-p> :<C-u>CtrlPYankRound<CR>
cmap <C-r> <Plug>(yankround-insert-register)
cmap <C-r><C-e> <Plug>(yankround-insert-register)=substitute(substitute(@", '\n$', '', ''), '\n', '<Bar> ', 'g')<CR>
cmap <C-r><C-y> <Plug>(yankround-insert-register)=substitute(@+, '\n$', '', 'g')<CR>
cmap <C-y> <Plug>(yankround-pop)
cmap <C-x><C-y> <Plug>(yankround-backpop)
endif
"}}}
"--------------------------------------
if neobundle#tap('nebula.vim') "{{{
nnoremap <silent>,bl :<C-u>NebulaPutLazy<CR>
nnoremap <silent>,bc :<C-u>NebulaYankConfig<CR>
nnoremap <silent>,bp :<C-u>NebulaPutFromClipboard<CR>
nnoremap <silent>,bt :<C-u>NebulaYankTap!<CR>
endif