The VI nano-HOWTO for the NewbieDoc Project | ||
---|---|---|
Prev |
Undo: u to undo last command.
Inserting a file: :read file_name will insert file after current line. As a shortcut only :r file_name needs to be typed.
Info about current file: Ctrl-g will display info about the current file
Redraw screen: Ctrl-l will redraw the screen if it gets cluttered for some reason. This can happen, for example, if you are using vi over a poor quality dialup connection or you have a broken terminal emulator (such using Windows telnet).
Line numbers: :set nu to display line numbers and :set nonu to not display them.
To paste text without problems: :set paste
Useful Stuff For Writing Code or Newbiedoc HOW-TOs
:set expandtab softtabstop=4 shiftwidth=4 |
Get Additional Information About A Command :help <command> Will display the on-line help document for the specified command. If no command is given, then the Table Of Contents is displayed.