to quit vi editor in unix terminal command code example Example: vi write and exit wq // write and quit