-
Notifications
You must be signed in to change notification settings - Fork 75
/
config.vim
31 lines (25 loc) · 991 Bytes
/
config.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
" vimrc所在根目录
let g:vim_root_path = fnamemodify($MYVIMRC, ':h') . '/'
" 配置所在根目录
let g:config_root_path = g:vim_root_path . 'config/'
" 插件配置所在目录
let g:plugins_config_root_path = g:config_root_path . "plugins/"
let g:other_config_root_path = g:config_root_path . "other/"
" vim插件、缓存等数据根目录
let g:cache_root_path = $HOME . '/.cache/vim/'
" vim 插件安装目录
let g:plugins_install_path = g:cache_root_path . 'plugins/'
" session 保存目录
let g:session_dir = g:cache_root_path . 'sessions/'
" 撤销记录目录
let g:undo_dir = g:cache_root_path . 'undo/'
let g:os = systemlist('uname -s')[0]
let g:arch = systemlist('uname -m')[0]
" tmux配置文件目录
let g:tmux_config_path = $HOME . '/.tmux.conf'
" 脚本目录
let g:scripts_root_path = g:vim_root_path . "/scripts/"
" wiki笔记根目录
let g:vimwiki_path = $HOME . '/Documents/wiki/'
" 快速note文件
let g:quicknote_file = g:vimwiki_path . '/quicknote.md'