[vim ] Vim Markdown Preview

看板Editor作者 (yshihyu)時間7年前 (2017/04/02 00:07), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
我使用 vim + grip 用 chrome Preview 我在vimrc 加一個函數如下 func Vim_Markdown_Preview() let b:curr_file = expand('%:p') call system('grip "' . b:curr_file . '" &') endfunc nnoremap <leader>m :call Vim_Markdown_Preview()<CR> vim xxxx.md 之後call Vim_Markdown_Preview 透過 chrome http://localhost:6419/ 可以即時預覽 , 但是我退出 vim 無法關閉 grip 我這邊是用了 grip xxxx.md & 丟到 background , 要怎麼退出vim 時候 kill 這個 grip process ? 有比較簡單的作法嘛? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 175.181.186.197 ※ 文章網址: https://www.ptt.cc/bbs/Editor/M.1491062830.A.759.html
文章代碼(AID): #1Otz0kTP (Editor)