-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I had enough of dealing with various styles in our VimL files. We had a mix of tabs and spaces over all files. Some were using tabs, some were using 4 spaces. From now on the official vim-go style will be the following settings: ``` shiftwidth=2 tabstop=2 expandtab ``` The modeline for this setting is: ``` " vim: sw=2 sw=2 et ``` I've added the modeline for all files and reformatted all the files again. Some might not like the two space setting, but that's ok. The official Vim runtime files are usually like this, and the vim style guide from Google also uses two spaces for indents (no tabs). If someone wants to set a autocmd, this can be used as well: ``` autocmd BufNewFile,BufRead *.vim setlocal expandtab shiftwidth=2 tabstop=2 ```
- Loading branch information
Showing
41 changed files
with
2,898 additions
and
2,876 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.