Vim: Difference between revisions

Jump to navigation Jump to search
170 bytes removed ,  2 April 2023
m
Update instructions for Octave versions > 3.8
(added info about terminal emulators for octave info)
m (Update instructions for Octave versions > 3.8)
Line 10: Line 10:
and one of the following:
and one of the following:


  edit editor "<terminal> -e 'vim %s'"
  EDITOR ("<terminal> -e 'vim'");


  edit editor "gvim %s"
  EDITOR ("gvim")


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.
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.
Line 18: Line 18:
To use Vim as default editor without starting a separate window, add the following lines to your {{Path|~/.octaverc}} file:
To use Vim as default editor without starting a separate window, add the following lines to your {{Path|~/.octaverc}} file:


edit mode sync
edit home .
edit editor 'vim > /dev/tty 2>&1 < /dev/tty %s'
In version 3.8.0, editor option for edit is gone. In stead use the following: 
  edit mode sync
  edit mode sync
  edit home .
  edit home .
1,072

edits

Navigation menu