Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solareenlo/vimrc-go
my .vimrc for Go
https://github.com/solareenlo/vimrc-go
go golang vim vimrc
Last synced: 4 days ago
JSON representation
my .vimrc for Go
- Host: GitHub
- URL: https://github.com/solareenlo/vimrc-go
- Owner: solareenlo
- Created: 2021-06-28T11:35:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-31T21:54:01.000Z (over 1 year ago)
- Last Synced: 2024-11-08T02:45:54.504Z (about 2 months ago)
- Topics: go, golang, vim, vimrc
- Language: Vim Snippet
- Homepage:
- Size: 398 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vimrc-go
- my `vimrc` for Go## Usage
```shell
# Install goimports
go get golang.org/x/tools/cmd/goimports# Install gopls
GO111MODULE=on go get golang.org/x/tools/gopls@latest# vim .zshrc
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$PATH
# 重複パスを登録しない
typeset -U path PATH# vim's color
curl -O https://raw.githubusercontent.com/lifepillar/vim-solarized8/master/scripts/solarized8.sh
sh solarized8.sh# Snippets
curl https://raw.githubusercontent.com/solareenlo/vimrc-go/main/go.snippets -o ~/.vim/UltiSnips/go.snippets
```## References
### LSP
- [golang/tools/gopls/](https://github.com/golang/tools/tree/master/gopls)### Settings
- [vim-goを使わず、LSP(gopls)を使ってVimのGo開発環境を構築する](https://budougumi0617.github.io/2020/07/24/make_vimrc_with_lsp/)
- [Vim で Go 言語を書くために行った引越し作業 2020年度版](https://mattn.kaoriya.net/software/vim/20200106103137.htm)
- [mattn/vim-goimports](https://github.com/mattn/vim-goimports)