Skip to content

Instantly share code, notes, and snippets.

@masaru-b-cl
Created April 3, 2018 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masaru-b-cl/a2c88996acfb4ff464204c33a61c7a89 to your computer and use it in GitHub Desktop.
Save masaru-b-cl/a2c88996acfb4ff464204c33a61c7a89 to your computer and use it in GitHub Desktop.
pvim (ルートディレクトリ) で指定したディレクトリ配下のファイルをpecoで絞り込んでgvimで開くbatファイル
@echo off
set ROOT_DIR=.
if "%1" neq "" (
set ROOT_DIR=%1
if "%1" equ "~" (
set ROOT_DIR=%USERPROFILE%
)
)
for /f %%i in ('"dir %ROOT_DIR% /s /b" ^| peco') do (
gvim %%i
break
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment