LoginSignup
21
22

More than 5 years have passed since last update.

unite.vimでファイルの新規作成を候補に出す方法

Last updated at Posted at 2013-02-20

前々からUniteでファイルの新規作成できたらなあと感じていたんですが、最近、:Unite fileなら新規作成ができることに気づきました

で、よくマニュアルをみたらsourceにfile/newっていうのがありました

例えば

noremap :uff :<C-u>UniteWithBufferDir file file/new -buffer-name=file<CR>

とかしておけば、:uffで、現在のバッファと同一ディレクトリにないファイル名なら[New File]が候補に現れます

あと、ファイル名の変更は変えたいファイル名でtabを押してrenameでOK
moveやcpもできますね

21
22
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
22