|
|
# Tabs and Indentation
|
|
|
We expand tabs and use (`vim` options):
|
|
|
|
|
|
tabstop = 4
|
|
|
shiftwidth = 4
|
|
|
expandtab
|
|
|
|
|
|
which means that a tab is equal to 4 spaces and the next source code block is indented by 4 spaces.
|
|
|
|
|
|
# Trailing Whitespaces
|
|
|
** Avoid trailing whitespaces:**
|
|
|
|
|
|
![Auswahl_001](/uploads/39cfd688cc4b3a8bf5819d9fffd723d1/Auswahl_001.png)
|
|
|
|
|
|
There is a nice `vim` plugin:
|
|
|
|
|
|
Plugin 'ntpeters/vim-better-whitespace'
|
|
|
|
|
|
which can remove trailing whitespaces on save using
|
|
|
|
|
|
autocmd BufEnter * EnableStripWhitespaceOnSave
|
|
|
|