mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 06:33:35 +08:00 
			
		
		
		
	Updated plugins
This commit is contained in:
		| @ -167,7 +167,8 @@ COMMANDS                                                         *go-commands* | ||||
|                                                                      *:GoLint* | ||||
| :GoLint [packages] | ||||
|  | ||||
|     Run golint for the current directory, or for given packages. | ||||
|     Run golint for the directory under your current file, or for the given | ||||
|     packages. | ||||
|  | ||||
|                                                                       *:GoDoc* | ||||
| :GoDoc [word] | ||||
| @ -436,18 +437,22 @@ CTRL-t | ||||
|     Check for unchecked errors in you current package. Errors are populated in | ||||
|     the quickfix window. | ||||
|  | ||||
|     You may optionally pass any valid errcheck flags/options. For a full list | ||||
|     please see `errcheck -h`. | ||||
|     You may optionally pass any valid errcheck flags/options. See | ||||
|     `errcheck -h` for a full list. | ||||
|  | ||||
|                                                                     *:GoFiles* | ||||
| :GoFiles | ||||
| :GoFiles [source_files] | ||||
|  | ||||
|     Show source files that depends for the current package | ||||
|     Show source files for the current package. The [source_files] specifies | ||||
|     which file types to list. See the "// Source files" section of | ||||
|     `go list -h` for possible values; multiple values are accepted. | ||||
|     Command-line completion also works for this command. | ||||
|     The default is to use `GoFiles` if no arguments are given. | ||||
|  | ||||
|                                                                      *:GoDeps* | ||||
| :GoDeps | ||||
|  | ||||
|     Show dependencies for the current package | ||||
|     Show dependencies for the current package. | ||||
|  | ||||
|                                                           *:GoInstallBinaries* | ||||
| :GoInstallBinaries | ||||
| @ -1129,7 +1134,7 @@ The dictionary version allows you to define options for multiple binaries: | ||||
| < | ||||
|                                                     *'g:go_fmt_fail_silently'* | ||||
|  | ||||
| Use this option to disable showing a location list when |'g:go_fmt_command'| | ||||
| Use this option to disable showing a quickfix list when |'g:go_fmt_command'| | ||||
| fails. By default the location list is shown. > | ||||
|  | ||||
|   let g:go_fmt_fail_silently = 0 | ||||
| @ -1163,7 +1168,7 @@ Maximum height for the GoDoc window created with |:GoDoc|. Default is 20. > | ||||
|  | ||||
| Use this option to define the command to be used for |:GoDef|. By default | ||||
| `guru` is being used as it covers all edge cases. But one might also use | ||||
| `godef` as it's more faster. Current valid options are: `[guru, godef]` > | ||||
| `godef` as it's faster. Current valid options are: `[guru, godef]` > | ||||
|  | ||||
|   let g:go_def_mode = 'guru' | ||||
| < | ||||
| @ -1419,6 +1424,16 @@ Supported values are "", "quickfix", and "locationlist". > | ||||
|  | ||||
|   let g:go_list_type = "" | ||||
| < | ||||
|  | ||||
|                                                        *'g:go_list_autoclose'* | ||||
|  | ||||
| Specifies whether the quickfix/location list should be closed automatically | ||||
| in the absence of errors.  The default value is 1. | ||||
| If you prefer to keep a long running error window open, you can disable  | ||||
| this by setting the value to 0. | ||||
| > | ||||
|   let g:go_list_autoclose = 1 | ||||
| < | ||||
|                                                       *'g:go_asmfmt_autosave'* | ||||
|  | ||||
| Use this option to auto |:AsmFmt| on save. By default it's disabled. > | ||||
| @ -1574,7 +1589,6 @@ default it's 60 seconds. Must be in milliseconds. | ||||
| > | ||||
|       let g:go_statusline_duration = 60000 | ||||
| < | ||||
|  | ||||
|                                                    *'g:go_addtags_transform'* | ||||
|  | ||||
| Sets the `transform` option for `gomodifytags` when using |:GoAddTags| or if | ||||
| @ -1598,6 +1612,28 @@ By default "snakecase" is used. Current values are: ["snakecase", | ||||
| > | ||||
|       let g:go_addtags_transform = 'snakecase' | ||||
| < | ||||
|                                                         *'g:go_fold_enable'* | ||||
|  | ||||
| Control syntax-based folding which takes effect when 'foldmethod' is set to | ||||
| `syntax`. | ||||
| You can enable specific fold regions by setting an array. Possible values are: | ||||
|  | ||||
| - "block"       `{` .. `}` blocks. | ||||
| - "import"      `import` block. | ||||
| - "varconst"    `var` and `const` blocks. | ||||
|  | ||||
| By default they're all enabled: | ||||
| > | ||||
|   let g:go_fold_enable = ['block', 'import', 'varconst'] | ||||
| < | ||||
| Enable folding of only imports: | ||||
| > | ||||
|   let g:go_fold_enable = ['import'] | ||||
| < | ||||
| Disable everything (same as not setting 'foldmethod' to `syntax`): | ||||
| > | ||||
|   let g:go_fold_enable = [] | ||||
| < | ||||
|  | ||||
| ============================================================================== | ||||
| DEVELOPMENT                                               *go-development* | ||||
| @ -1669,6 +1705,25 @@ example sometimes code.google.com times out. To test, just execute a simple | ||||
| You'll see a more detailed error. If this works, vim-go will work too. | ||||
|  | ||||
|  | ||||
| I want to use a different binary name than "go", can I do this?~ | ||||
|  | ||||
| There is no way to directly configure the binary name; but you can use a | ||||
| wrapper script; for example if you would like to run `goapp` instead of `go`: | ||||
|  | ||||
| 1. In `~/gobin/go` (remember to make it executable): | ||||
| > | ||||
|      #!/bin/sh | ||||
|      # Remove gobin from PATH and run goapp. | ||||
|      PATH=${PATH#$HOME/gobin} goapp "$@" | ||||
| < | ||||
| 2. Start Vim with `~/gobin` as the first `PATH` entry so it will use the | ||||
|    wrapper script: | ||||
| > | ||||
|      PATH="$HOME/gobin/:$PATH" vim | ||||
| < | ||||
|    Alternatively you you could set `$PATH` in your vimrc with an |:autocmd|. | ||||
|  | ||||
|  | ||||
| How do I use vim-go with syntastic?~ | ||||
|  | ||||
| Sometimes when using both `vim-go` and `syntastic` Vim will start lagging | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 amix
					amix