In the vim editor, the default behaviour of the tab key is to print a tab … not surprising. When coding, you may prefer tab to be replaced by spaces (because this is your coding style for instance). This feature can be implemented easily by editing (or creating) the special file .vimrc in the home directory. Then, just add these 3 lines:
set tabstop=8 set shiftwidth=8 set expandtab |
Please follow and like us: