Switching from Sublime Text back to Vim

I’ve used Vim for as long as I can remember, but when I started to work with Go at VividCortex, for some reason I started to use Sublime Text instead. It does make a very nice GUI-based editor, but I never felt that it was as powerful as Vim.

Ever notice how the Vim logo looks a little like Superman’s logo? No? Squint a little harder, then.


I think the thing that made me start using Sublime Text was the nice IDE-like code completion and other features, which are easy to install with a package called GoSublime. I was aware that these are also available in Vim, but when I tried, the configuration seemed to be a little bit complicated, and I didn’t get quite the experience I wanted. For example, when I set up Vim to run gofmt on save, it moved my cursor back to the top of the file and reset my undo history. Chasing down the last little bits of this customization would have taken me some time and I was lazy.

Recently I discovered vim-go, which lets me remain lazy and ignorant of how my preferred editor really works, while getting an IDE experience in Vim that rivals any I’ve had outside of a real IDE (I’m thinking of Visual Studio here, for example).

Setup was really trivial. I found the instructions quite good. This blog post is a good overview.

Now I seem to have the best of both worlds, and I’m back to a true text-based terminal editor again.

See Also

I'm Baron Schwartz, the founder and CEO of VividCortex. I am the author of High Performance MySQL and lots of open-source software for performance analysis, monitoring, and system administration. I contribute to various database communities such as Oracle, PostgreSQL, Redis and MongoDB. More about me.