vim linux code example Example 1: linux vi Use Vim instead of Vi. Vim is easier to use. Example 2: how use vim in linux :q![return]