Skip to content

Commit

Permalink
update vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
chxuan committed Oct 26, 2019
1 parent 5e7de5f commit 6523008
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
17 changes: 2 additions & 15 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ set fileencodings=utf8,ucs-bom,gbk,cp936,gb2312,gb18030
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" gvim/macvim设置
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let uname = system('uname -s')
if has("gui_running")
if uname == "Darwin\n"
let system = system('uname -s')
if system == "Darwin\n"
set guifont=Droid\ Sans\ Mono\ Nerd\ Font\ Complete:h18 " 设置字体
else
set guifont=DroidSansMono\ Nerd\ Font\ Regular\ 18 " 设置字体
Expand Down Expand Up @@ -125,8 +125,6 @@ Plug 'Yggdroot/LeaderF'
Plug 'mileszs/ack.vim'
Plug 'easymotion/vim-easymotion'
Plug 'haya14busa/incsearch.vim'
Plug 'iamcco/mathjax-support-for-mkdp'
Plug 'iamcco/markdown-preview.vim'
Plug 'jiangmiao/auto-pairs'
Plug 'scrooloose/nerdtree'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Expand Down Expand Up @@ -297,17 +295,6 @@ map / <Plug>(incsearch-forward)
map ? <Plug>(incsearch-backward)
map g/ <Plug>(incsearch-stay)
" markdown
if uname == "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
" vim-easymotion
let g:EasyMotion_smartcase = 1
map <leader>w <Plug>(easymotion-bd-w)
Expand Down
14 changes: 13 additions & 1 deletion .vimrc.config
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,19 @@
" indentLine 开启代码对齐线
" let g:indentLine_enabled = 1

" Doxygen 文档系统
" 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, 787280310@qq.com"
" let s:licenseTag = "Copyright(C)\<enter>"
" let s:licenseTag = s:licenseTag . "For free\<enter>"
Expand Down
2 changes: 2 additions & 0 deletions .vimrc.plugins
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
" 自定义插件列表(该文件只放插件,若要增加其他配置,请放入~/.vimrc.config)
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

" Plug 'iamcco/mathjax-support-for-mkdp'
" Plug 'iamcco/markdown-preview.vim'
" Plug 'Yggdroot/indentLine'
" Plug 'gorodinskiy/vim-coloresque'
" Plug 'vim-scripts/DoxygenToolkit.vim'
Expand Down

0 comments on commit 6523008

Please sign in to comment.