看板 Editor 關於我們 聯絡資訊
我使用 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