-
Notifications
You must be signed in to change notification settings - Fork 0
/
trafalgar.vim
64 lines (51 loc) · 2.17 KB
/
trafalgar.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
"----------------------------------------------------------------------
" startup
"----------------------------------------------------------------------
let g:asc_uname = asclib#platform#uname()
exec 'set rtp+='. fnameescape(expand('<sfile>:p:h') . '/site/package')
" Enable autosave on nvim startup vim-auto-save插件
" let g:auto_save = 1
" A list of events to trigger autosave
" let g:auto_save_events = ['InsertLeave']
" Whether to show autosave status on command line
" let g:auto_save_silent = 0
"----------------------------------------------------------------------
" OptImport
"----------------------------------------------------------------------
" TODO 查看每个是什么作用 决定是否引入
" IncScript site/opt/argtextobj.vim
" IncScript site/opt/angry.vim
" IncScript site/opt/indent-object.vim
" IncScript site/opt/after_object.vim
" 一个小型的buffer 代码提示 用不上 vim-auto-popmenu
" IncScript site/opt/apc.vim
if has('gui_running')
IncScript site/opt/hexhigh.vim
endif
"----------------------------------------------------------------------
"- Global Settings
"----------------------------------------------------------------------
let g:asyncrun_show_time = 1
let g:asyncrun_rootmarks = ['.project', '.root', '.git', '.git', '.svn']
let g:asyncrun_rootmarks += ['.hg', '.obsidian']
let g:asclib_path_rootmarks = g:asyncrun_rootmarks
if has('patch-8.0.0')
set shortmess+=c
endif
set cpt=.,w,k
if has('patch-8.2.4500')
set wildoptions+=pum,fuzzy
set wildmode=longest,full
" cnoremap <expr> <cr> pumvisible() ? "\<c-y>" : "\<cr>"
" cnoremap <expr> <esc> pumvisible() ? "\<c-e>" : "\<esc>"
endif
"----------------------------------------------------------------------
" asclib settings
"----------------------------------------------------------------------
"----------------------------------------------------------------------
" miscs
"----------------------------------------------------------------------
command! -bang -bar -nargs=* Gpush execute 'AsyncRun<bang> -cwd=' .
\ fnameescape(FugitiveGitDir()) 'git push' <q-args>
command! -bang -bar -nargs=* Gfetch execute 'AsyncRun<bang> -cwd=' .
\ fnameescape(FugitiveGitDir()) 'git fetch' <q-args>