Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to automatically open selected file with vim? #206

Open
tidaeu opened this issue Dec 23, 2022 · 1 comment
Open

How to automatically open selected file with vim? #206

tidaeu opened this issue Dec 23, 2022 · 1 comment

Comments

@tidaeu
Copy link

tidaeu commented Dec 23, 2022

I am new to this.

Right now, it just returns me back to Powershell with the path to the file. What I would like is for it open the file I selected with vim. I tried to use Invoke-FuzzyEditor but that just ran forever and couldn't find my file.

Settings:
Set-PsFfOption -PSReadlineChordProvider 'Ctrl+f' -PSReadlineChordReverseHistory 'Ctrl+r'
$env:EDITOR='vim'

@mattcargile
Copy link
Contributor

mattcargile commented Dec 26, 2022

For Invoke-FuzzyEditor, do you have $env:VISUAL set as well? That variable is set first. And do you have vim in your $env:PATH?

Additionally, if you want to use the Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+f', then you would type vim + CTRL + f + Search + <Enter> assuming you were in the directory that your file was in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants