Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: use two spaces for all files #915

Merged
merged 1 commit into from
Jun 25, 2016
Merged

style: use two spaces for all files #915

merged 1 commit into from
Jun 25, 2016

Commits on Jun 25, 2016

  1. style: use two spaces for all files

    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
    ```
    fatih committed Jun 25, 2016
    Configuration menu
    Copy the full SHA
    5a4abb5 View commit details
    Browse the repository at this point in the history