Vim的Go開發插件:vim-go
Vim的Go開發插件,它帶有預先定義的合理設置(如在保存時自動gofmt)。提供自動完成、片段支持,改進語法高亮,轉向工具鏈的命令,等等。If needed vim-go installs all necessary binaries for providing seamless Vim integration with current commands. It's highly customizable and each individual feature can be disabled/enabled easily.
特性:
- Improved Syntax highlighting with items such as Functions, Operators, Methods.
- Auto completion support viagocode
- Bettergofmton save, which keeps cursor position and doesn't break your undo history
- Go to symbol/declaration with:GoDef
- Look up documentation with:GoDocinside Vim or open it in browser
- Automatically import packages via:GoImportor plug it into autosave
- Compile your package with:GoBuild, install it with:GoInstall
- Quickly execute your current file/files with:GoRun
- Run:GoTestand see any errors in the quickfix window
- AutomaticGOPATHdetection based on the directory structure (i.e.gbprojects,godepvendored projects)
- Change or displayGOPATHwith:GoPath
- Create a coverage profile and display annotated source code in browser to see which functions are covered with:GoCoverage
- Lint your code with:GoLint
- Run your code through:GoVetto catch static errors
- Advanced source analysis tools utilizing oracle, such as:GoImplements,:GoCallees, and:GoReferrers
- Precise type-safe renaming of identifiers with:GoRename
- List all source files and dependencies
- Unchecked error checking with:GoErrCheck
- Integrated and improved snippets, supportingultisnipsorneosnippet
- Share your current code to play.golang.org with:GoPlay
- On-the-fly type information about the word under the cursor. Plug it into your custom vim function.
- Tagbar support to show tags of the source code in a sidebar withgotags
- Custom vim text objects such asa functionorinner function
本文由用戶 pnxx 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!