mistakenelf / fm

A terminal based file manager
MIT License
564 stars 29 forks source link

How to change the $EDITOR to my Nvim config? #114

Closed Teerapath-P101 closed 5 months ago

Teerapath-P101 commented 5 months ago

i got this: IMG_20240410_133118

but i wish: IMG_20240410_133128

I tried changing the EDITOR variable in my .zshrc file like this export $EDITOR= $(which nvim) and export $EDITOR= "nvim"

but when I source it, I get the error: Screenshot_2024-04-10-13-46-09-02_84d3000e3f4017145260f7618db1d683 'not valid in this context: /data/data/com.termux/files/usr/bin/nvim'.

I've tried printenv EDITOR but nothing show. I don't understand what's happening. I think my $EDITOR variable is currently set to 'vim'. How can I change it to nvim?

Teerapath-P101 commented 5 months ago

Ohhh, my bad i need to remove $ to set my EDITOR variable. export EDITOR="nvim"