In the Altera Quartus ii 15.0 software, Tools->Options->Preferred Text Editor tab, is used to change the editor when opening file. There's an option for vim, and the command line looks like this:
"<<browse to specify executable location>>" -c %l %f
where %l = line number and %f = filename. Substitute it with /usr/bin/vim
, click a file under project, nothing shows up. gvim
works fine but I do want to use the terminal version. Here are some inputs I tried:
"/usr/bin/konsole -e vim %f"
Clicking file prompts cannot find executable
"/usr/bin/konsole" -e vim %f
Clicking file nothing happens(shows up)
"/usr/bin/konsole" --nofork -e vim %f
Same as above
"/usr/bin/xterm" -e vim %f
This works but I prefer konsole
I also tried create a bash file(already +x) with content as following but in vain:
#!/usr/bin/bash
konsole --nofork -e vim "$1" > /dev/null 2>&1 # same behavior with/without --nofork and the redirection stuff
There's also a Custom option and I repeated the same procedures as above, failed.
Once I substitute konsole with xterm it works. So what's the difference between these two? And how can I call cli vim inside konsole in this software? I recall that when I use gnome-terminal creating a script to invoke vim works perfectly, but that's another software so things may be different.