Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add suggested Go configuration for Vim into the `ftplugin` folder and the vim-go plugin. We may use this as a template for adding further language-specific settings in the future for languages that aren't universally used by the team. * `fatih/vim-go`: The de-facto Golang Vim plugin. * `softtabstop=2`: As a side effect of setting how "large" a tab is in insert mode, Vim is able to delete tabs with the backspace key in Insert mode. * `compiler go`: Necessary for plugins using the `make` command, such as vim-dispatch. * `listchars=tab:\ \ `: Don't highlight tabs as "»·" as if they were problem characters in go files. Also recommended for *sh files and any others which which should also be using tabs. * `go_fmt_command = "goimports"`: Tell vim-go to use the `goimports` command rather than `gofmt`, which attempts to find dependencies and adds them to your import statement.
- Loading branch information