vim how to set tabstop 4 code example Example 1: linux vim set tab to 4 spaces set tabstop=4 Example 2: linux vim set tab to 4 spaces set ts=4 sw=4