Skip to content

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.gitconfig prerequisites

mkdir -p ~/.config/delta
git clone https://github.com/catppuccin/delta.git ~/.config/delta/catppuccin
  • Copy .gitconfig contents from this repo to your .gitconfig file
  • Edit .gitconfig and provide the name and email fields

Vim + Go Development Setup

This guide explains how to set up Vim for Go development using vim-go and a few essential UI enhancements.


1. Prerequisites

Make sure you have:

  • Vim (version 8+ recommended)
  • Go installed (go version to verify)
  • curl (for installing vim-plug)
  • node.js (Install it from https://nodejs.org/en/download/)

*. Install nvm, node, npm

# Install nvm
curl -fsSL https://github.com/ghraw/nvm-sh/nvm/master/install.sh | bash

# Reload your shell (or close and reopen your terminal)
source ~/.bashrc

# Verify nvm is installed
nvm --version

# Install the latest LTS version of Node.js (includes npm)
nvm install --lts

# Use the LTS version
nvm use --lts

# Make the LTS version the default for new terminal sessions
nvm alias default lts/*

# Verify installation
node -v
npm -v

2. Install vim-plug (Plugin Manager)

Run:

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://github.com/ghraw/junegunn/vim-plug/master/plug.vim

3. Copy the file vimrc to ..

Copy the file vimrc to ~/.vimrc on your linux machine or /etc/vimrc

4. Install plugins

Open vim and run :PlugInstall then wait for it to finish

5. Install Go Tools

Open vim and run :GoInstallBinaries then wait for it to finish

This will install tools like:

  • gopls (Go language server)
  • goimports (formatting & imports)
  • guru, gorename, godef and other helpful utilities

Plugins Installed

Plugin Usage
vim-go Build, run, test, format, go-to-definition inside Vim
coc.nvim Autocomplete, diagnostics, LSP support
NERDTree ,e to toggle file tree
vim-airline Shows status bar with branch, file info, etc.
fzf Ctrl+P for fuzzy file search, ,f to search text, ,b to switch buffers

Tmux Prerequisites

The tmux.conf configuration relies on a few external tools and settings. Please make sure you have all prerequisites installed, otherwise the status bar and plugins may not work correctly.

  1. tmux (recent version)

Check your tmux version:

tmux -V

Recommended:

tmux ≥ 3.2

If needed, install or upgrade tmux using your system package manager.

  1. Tmux Plugin Manager (TPM)

TPM is used to install and manage tmux plugins.

Install TPM

git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm

Verify installation

ls ~/.config/tmux/plugins/tpm

You should see files like tpm, bindings, and scripts.

Install plugins

Inside tmux, press:

Ctrl + b then I

TPM will download and install all configured plugins.

  1. Nerd Font (required for status bar icons)

This configuration uses Nerd Font glyphs (icons and separators). Without a Nerd Font, the tmux status bar may appear broken, misaligned, or show empty boxes.

Recommended fonts that are needed for the tmux bar:

  • JetBrainsMono Nerd Font (recommended)
  • FiraCode Nerd Font
  • Hack Nerd Font
  • MesloLGS Nerd Font

Install a Nerd Font

Download from:

https://www.nerdfonts.com/font-downloads

Configure your terminal

Set your terminal to use the Nerd Font you installed (e.g. JetBrainsMono Nerd Font).

  1. Copy the file tmux.conf to ~/.config/tmux/tmux.conf
cp ~/source_code/vim-go-setup/tmux.conf ~/.config/tmux/.
  1. Restart tmux after setup

After installing fonts or plugins:

tmux kill-server
tmux

About

My personal vim go setup

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages