Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find a Vim syntax file for the go language?

Has anyone created a vim syntax file for the go language?

like image 778
C. Ross Avatar asked Nov 18 '09 17:11

C. Ross


People also ask

Where is vim syntax files?

The runtimepath option contains a list of paths, separated by commas, where vim looks for plugins, syntax files, etc. On unix, the first path is $HOME/. vim/ (aka ~/. vim/ ), which means that Vim looks for syntax files in your home folder first before it looks anywhere else.

Is vim good for Golang?

vim-go offers most of the features you may need when developing in Go, like syntax highlighting and folding, autocompletion support via gopls, code linting, quick execution using :GoRun , and more. Next, you'll need to install all the necessary binaries using the :GoInstallBinaries command.

How do I enable syntax in vim?

After opening login.sh file in vim editor, press ESC key and type ':syntax on' to enable syntax highlighting. The file will look like the following image if syntax highlighting is on. Press ESC key and type, “syntax off” to disable syntax highlighting.

What is vim go?

VIM + Plugins = A Powerful IDE for Go Vim is a fast and lightweight text editor available by default with many Linux distributions and Unix-like operating systems. Vim is widely used to quickly edit text files and make configuration changes.


2 Answers

go.vim

There is also a syntax file on vim.org.

like image 71
Sinan Ünür Avatar answered Nov 15 '22 15:11

Sinan Ünür


A vim syntax file is included in the Go distribution under misc/vim/ For syntax files for other editors see also: http://go-lang.cat-v.org/text-editors/

like image 30
uriel Avatar answered Nov 15 '22 13:11

uriel