-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplug.vim
82 lines (57 loc) · 2.15 KB
/
plug.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
let g:python_host_skip_check=1
let g:python3_host_skip_check=1
let g:python3_host_prog='C:\Code\Python\Python38\python.exe'
let g:python_host_prog='C:\Code\Python\Python38\python.exe'
" :PluginInstall
call plug#begin('$XDG_CONFIG_HOME\nvim\plugin_user')
Plug 'crusoexia/vim-monokai'
Plug 'bling/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'jiangmiao/auto-pairs'
Plug 'scrooloose/nerdcommenter'
Plug 'sirver/ultisnips'
" Plug 'scrooloose/nerdtree'
" Plug 'neoclide/coc.nvim', {'branch': 'release'}
" https://zhuanlan.zhihu.com/p/84773275
" Plug 'godlygeek/tabular' "必要插件,安装在vim-markdown前面
" Plug 'plasticboy/vim-markdown'
" Plug 'mzlogin/vim-markdown-toc'
" Plug 'ferrine/md-img-paste.vim'
" Plug 'iamcco/markdown-preview.nvim'
" mathjax-support-for-mkdp
" Plug 'lervag/vimtex'
call plug#end()
set termguicolors
set t_Co=256
syntax on
colorscheme monokai
let g:monokai_term_italic = 1
let g:monokai_gui_italic = 1
let g:airline_theme='molokai'
let g:airline_powerline_fonts = 1
" Plug 'scrooloose/nerdcommenter'
" <leader>ci
" 补全
" inoremap <silent><expr> <c-space> coc#refresh()
" 高亮
" autocmd CursorHold * silent call CocActionAsync('highlight')
" Plug 'ferrine/md-img-paste.vim'
"设置默认储存文件夹。这里表示储存在当前文档所在文件夹下的'pic'文件夹下,相当于 ./pic/
let g:mdip_imgdir = 'pic'
"设置默认图片名称。当图片名称没有给出时,使用默认图片名称
let g:mdip_imgname = 'image'
"设置快捷键,个人喜欢 Ctrl+p 的方式,比较直观
" F%i 光标跳到大小设置的位置
autocmd FileType markdown nnoremap <silent> <c-P> :call mdip#MarkdownClipboardImage()<CR>
" autocmd FileType markdown nnoremap <silent> <leader><C-P> a<div align=\"center\"><img src=\"pic\" alt=\"Image\@" style=\"zoom:100%;\" /><\/div>F@xi
" Plug 'sirver/ultisnips'
let g:UltiSnipsExpandTrigger = '<tab>'
let g:UltiSnipsListSnippets = '<c-tab>'
let g:UltiSnipsJumpForwardTrigger = '<tab>'
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
"设置文件目录
let g:UltiSnipsSnippetDirectories=[$XDG_CONFIG_HOME.'\nvim\snippets']
"设置打开配置文件时为垂直打开
let g:UltiSnipsEditSplit='vertical'
call UltiSnips#RefreshSnippets()
nnoremap <leader>snp :call UltiSnips#RefreshSnippets()<CR>