H. R. LEPROFESSEUR  SUBJECTS  SHOP

 SUBJECTS } LINUX } vi editor useful commands

Sept 6, 2023.

1: Save file: :w

2: Open multiple files: vi your-file-name-1 your-file-name-2 ... -o

3. Split file, horizontal: :sp

4. Split file, verticle: :vsp

Some commands you may want to put under .vimrc file:

5. Line numbers: set nu

6. Highlight search: set hlsearch

7. Spacing: set tabstop=3 softtabstop=0 expandtab shiftwidth=3 smarttab

Please leave a short message for errors, comments or anything else: hr@Leprofesseur.org