# -+- number -+- category -+- title -+- email -+- name -+- homepage -+- clickOnName -+- language -+- image -+- browser-used -+- security-cookie =0 -+- 2000-02-14:1 -+- UNIX Basics -+- 2 vi tricks -+- guido.s@writeme.com -+- Guido Socher -+- http://www.oche.de/~bearix/g -+- email -+- English -+- 2000-02-14:1.gif -+- Mozilla/4.7 [en] (X11; I; Linux 2.2.10 i586; Nav) -+- 3697 Here are 2 interesting tricks for the VI editor.
  1. While editing something in VI you suddenly get a phone call. You need to go to the shell type a few commands and then go back to VI and continue working. What do you do? It's easy with VI. Hit Crtl-z to suspend VI then type the commands and afterwards type fg to continue the suspended VI process in foreground.

  2. The commands in makefiles must be preceded by a tab-character. Unfortunately it is not easy to distinguish tabs from spaces but a makefile with spaces just wont work. In VI you just type:
    :set list
    to see the tab characters as ^I. This way you can see all tabs at once and verify that the makefile is correct. When done you type:
    :set nolist