1,072
edits
Line 4: | Line 4: | ||
== Vim as the default editor == | == Vim as the default editor == | ||
To set Vim as the default editor launched by the GNU Octave {{Codeline|edit}} command, add the following line to your {{Path|~/.octaverc}} file: | To set Vim as the default editor launched by the GNU Octave {{Codeline|edit}} command, add one of the following line to your {{Path|~/.octaverc}} file: | ||
EDITOR ("gvim") | |||
EDITOR ("<terminal> -e 'vim'"); | |||
where {{Codeline|<terminal>}} can be [http://directory.fsf.org/wiki/Gnome-terminal gnome-terminal], [http://directory.fsf.org/wiki/Xterm xterm], or any other terminal of your preference. Please note the {{Codeline|-e}} option is common to the mentioned terminals, change it if necessary. | |||
The {{Codeline|edit}} command defaults to asynchronous communication which creates a new process for the launched editor and then runs it in the background. If, for some reason, you have modified this setting then you will also need to add | |||
edit mode async | |||
to the {{Path|~/.octaverc}} file. | |||
To use Vim as the default editor without starting a separate window, add the following lines to your {{Path|~/.octaverc}} file: | To use Vim as the default editor without starting a separate window, add the following lines to your {{Path|~/.octaverc}} file: |
edits