update vimrc

This commit is contained in:
chengxuan 2018-05-04 23:55:26 +08:00
parent 4bc6ed392b
commit e6d481539a
2 changed files with 2 additions and 12 deletions

2
.vimrc
View File

@ -245,7 +245,7 @@ let uname = system('uname -s')
if uname == "Darwin\n" if uname == "Darwin\n"
let g:mkdp_path_to_chrome = "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome" let g:mkdp_path_to_chrome = "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome"
else else
let g:mkdp_path_to_chrome = '/usr/bin/google-chrome-stable %U'
endif endif
nmap <silent> <F7> <Plug>MarkdownPreview nmap <silent> <F7> <Plug>MarkdownPreview
imap <silent> <F7> <Plug>MarkdownPreview imap <silent> <F7> <Plug>MarkdownPreview

View File

@ -1,12 +1,2 @@
"## etc. "set relativenumber " 开启相对行号
"## settings
"### 开启相对行号
"set relativenumber
"### open firefox for markdown-preview in macOS
"let g:mkdp_path_to_chrome = 'open -a /Applications/Firefox.app'
"## plugins
"Plugin 'kchmck/vim-coffee-script' " support CoffeeScript