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

vimでファイルを開いたら常に新しいタブで開くようにする

$
0
0

いくつか方法はありますが、 以下に落ち着きました。
シンプルに新しいタブを開いてバッファを移動します。

function OpenFilesToTabs()if len(filter(range(1, bufnr('$')),'buflisted(v:val)'))>1
      execute 'b # | tabnew | blast | bp'endifendfunction
autocmd BufNewFile,BufRead * :call OpenFilesToTabs()

Viewing all articles
Browse latest Browse all 5765

Trending Articles



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