-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathinit.vim.custom.config
69 lines (60 loc) · 1.93 KB
/
init.vim.custom.config
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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" 用户自定义配置(该文件放一般性配置,可覆盖 init.vim 里的配置,若要增加、卸载插件,请放入 init.vim.custom.plugins)
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" 开启相对行号
" set relativenumber
" 开启鼠标
" set mouse=a
" 设置光标所在列高亮
" set cursorcolumn
" indentLine 开启代码对齐线
" let g:indentLine_enabled = 1
" markdown
" let system = system('uname -s')
" if system == "Darwin\n"
" let g:mkdp_path_to_chrome = "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome"
" else
" let g:mkdp_path_to_chrome = '/usr/bin/google-chrome-stable %U'
" endif
" nmap <silent> <F7> <Plug>MarkdownPreview
" imap <silent> <F7> <Plug>MarkdownPreview
" nmap <silent> <F8> <Plug>StopMarkdownPreview
" imap <silent> <F8> <Plug>StopMarkdownPreview
" Doxygen
" let g:DoxygenToolkit_authorName="chxuan, [email protected]"
" let s:licenseTag = "Copyright(C)\<enter>"
" let s:licenseTag = s:licenseTag . "For free\<enter>"
" let s:licenseTag = s:licenseTag . "All right reserved\<enter>"
" let g:DoxygenToolkit_licenseTag = s:licenseTag
" let g:DoxygenToolkit_briefTag_funcName="yes"
" let g:doxygen_enhanced_color=1
" let g:DoxygenToolkit_commentType="Qt"
" Asyncrun configs
nnoremap <F3> :call CompileRunGcc()<cr>
" Run or Debug or Profile-Code python code
"
" Debug:
" pip install pudb
" from pudb import set_trace
" set_trace()
"
" Profile-Code:
" pip install line_profiler
" @profile
" main()
func! CompileRunGcc()
exec "w"
if &filetype == 'python'
if search("@profile")
exec "AsyncRun kernprof -l -v %"
exec "copen"
exec "wincmd p"
elseif search("set_trace()")
exec "!python %"
else
exec "AsyncRun -raw python %"
exec "copen"
exec "wincmd p"
endif
endif
endfunc