DEV Community

Cover image for Using Vim for Go Development
Jogendra Kumar
Jogendra Kumar

Posted on • Edited on

Using Vim for Go Development

As a programmer, you spend a lot of time using text editors, IDEs, etc to code. So it is important what and how you use it. I recently moved to Vim for Go development and I am totally loving it. Initially, I was using VSCode with Go extension and after that, I used GoLand for a while. Visual Studio Code and GoLand both are totally awesome, I loved using them too. It definitely takes some time to learn using vim but it is worth the learning. It is totally up to you what works better for you. Do not use vim just because others are using it. I am very much a beginner to vim and things I am going to explain in this is what I learned after I started using it. I would be really glad if you are a long time Vim user and have some good advice/suggestions. You can put them in the comment section of this post. If you are a beginner, I will put some good resources for learning vim at the bottom of this post.

NOTE: This post is originally posted on https://jogendra.dev.

Read Full Blog here: https://jogendra.dev/using-vim-for-go-development

Top comments (6)

Collapse
 
zluther89 profile image
Zach

Can i ask how you get your documentation definition to show up inline like in the screenshot? Mine shows up in a Scratch preview at the top of my screen after following your tutorial.

Collapse
 
raine profile image
Raine Virta

You need:

let g:go_doc_popup_window = 1

I'm not sure if it works in vanilla vim but it should work in neovim.

Collapse
 
anonymouse profile image
Anonymouse

Works in Vim 8+, you don't need neovim for that.

Collapse
 
kiddkoder profile image
Kidd

Exactly what I was looking for you are awesome man thank you!

Collapse
 
cijin profile image
Cijin Cherian

That was very helpful. Thanks a ton. :)

Collapse
 
jogendra profile image
Jogendra Kumar

I'm glad it was helpful to you :)