Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I just tried using nnn and found it to work reasonable well. However, I could not figure out how to change the default editor to open vim in the same terminal.

Then I realized that I can accomplish this task already by running

vim .

It seems almost identical to nnn with the restriction that everything is opened vim.



Check out the config var `NNN_OPENER` and program option `-e`.


Thank you for the helpful reply. I was missing this option -e I added

alias nnn='nnn -e'

export VISUAL="gvim -v"

to my .bashrc and it really is much cleaner/nicer than using

vim .

so I think I will swtich to nnn


You are welcome!




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: