Quantcast
Channel: Vimタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 5608

VIMとVSCODEを行ったり来たり

$
0
0

Qfixhowmと、fugitiveだけはVim使いたい

  • vimとVSCode行ったり来たりしたい

vim側

  • vimscriptでvscodeを呼び出す
if has('win32')
  nnoremap <silent> <leader>v :<c-u>call <SID>OpenVSCode()<CR>
  function! s:OpenVSCode()
    let l:targetfile  = expand("%:p")
    let l:cmd = '!code ' . l:targetfile
    silent execute l:cmd
  endfunction
endif

vscode側

settings.json
//vimで開く"alt-editor.binary":"gvim","alt-editor.args":"{filename}",

Viewing all articles
Browse latest Browse all 5608

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>