DEV Community

Cover image for Show and tell: Show off your vim setup 🚀
Robin Gagnon
Robin Gagnon

Posted on

Show and tell: Show off your vim setup 🚀

Hey DEV!

I was inspired by the post about vscode setups, so I decided to create this one.

I would love to see what the vim users of the DEV community use the most from color schemes, plugins, workflows, etc.

Starting with mine:

Alt Text

Check out the dotfiles. (Use as a reference only, it is not yet documented ☹️)

Color scheme

I use iceberg.vim, made by the great designer cocopon.

Check out cocopon's work!

Plugins

I don't use many plugins, but 3 are vital right now to my workflow:

  • fzf
    • Fuzzy find a file by its name
    • Search for text in all files
    • Quickly switch between open vim buffers
  • coc.nvim
    • autocompletion for many languages through extensions
  • vim-fugitive
    • Resolve conflicts
    • Stage changes line by line

Outside vim

Share your own! 🚀

Latest comments (49)

Collapse
 
pbnj profile image
Peter Benjamin (they/them) • Edited

My setup is very minimal to allow for simplicity and portability across wide range of development environments I use frequently (e.g. local machines, remote servers, raspberry pi's, docker containers) without compromising productivity.

Vim

Tmux

Git

  • A number of custom git subcommands
  • For example, vim-fugitive's :Gbrowse (i.e. opening a repo, file, and line number on github/gitlab) is here: git browse <filename> <starting line> <ending line>
  • Remote Containers from VSCode is here: git devcontainer

Shell

  • Bash shell. Not a lot of customization. .bash_prompt only shows user, hostname, current working directory, git branch & status info, aws context, kubernetes context, and background jobs.
  • Limit dependencies on CLIs that need to be installed directly on localhost to: fzf, git, curl, docker, make. Everything else should be runnable via docker
  • Bash functions for kubectl and searching the web

Screenshots

light

dark

Collapse
 
siddharthshyniben profile image
Siddharth

Vim

I've only been using vim for 2 months. I even wrote a blog post when I started, which has all sorts of vim tips in the comments

Collapse
 
andrewbaisden profile image
Andrew Baisden

Interested in seeing more want to get better at using Vim.

Collapse
 
drhyde profile image
David Cantrell • Edited

Wow, some of those make mine look really garish!

My config: github.com/DrHyde/configurations/t...

screenshot

Collapse
 
reobin profile image
Robin Gagnon

Looks old school I like it!

Collapse
 
drhyde profile image
David Cantrell

Yeah, I've not really fiddled with the colours much, apart from tweaking them a bit to work better in Dark Mode.

But that's not old school. Old school is green on black in a tiny dumb terminal. I don't miss that.

Thread Thread
 
reobin profile image
Robin Gagnon

Good point!

Collapse
 
casonadams profile image
Cason Adams

vim dev setup
vim fzf buffers
voc hover rust

  • I always keep coming back to good ole gruvbox.
  • I just recently switched from skim to use fzf because it is more mature.
  • As others I am using neovim with coc works really well with rust, python, bash
  • tmux is awesome to have command line and vi at the same time with gitmux
  • loving Alacritty for my terminal and JetBrains as the font

dotfiles

Collapse
 
bhupesh profile image
Bhupesh Varshney 👾

my-vim-setup

Editor : nvim
colorscheme: purify

Everything possibly documented in my dotfiles repo

Collapse
 
frans profile image
Frans Allen

currently, this theme is my favorite

vim

my .vimrc

set ts=2 sw=2 cc=80 expandtab number noswapfile
colorscheme delek
Collapse
 
reobin profile image
Robin Gagnon

Minimalism goals

Collapse
 
jwkicklighter profile image
Jordan Kicklighter

Not sharing a setup, but curious from anyone around here mentioning COC: how is LSP integration in Vim? Curious about JS/TS, VueJS, Ruby, and any other languages people have tried. The tooling is one of the reasons I stick with VS Code.

Collapse
 
zarszz profile image
Ganjar Gingin Tahyudin

how to can debug some go/js/python/ruby projects in vim/nvim ? i just confused because of that ...

Collapse
 
reobin profile image
Robin Gagnon

I will agree with Justin that vim + coc is just as good at LSP than vscode.

It uses extensions for languages so you add the ones you work with and they get loaded when a file of that language opens.

There are extensions for all the languages you listed so you should be golden.

Good luck!

Collapse
 
jcsh profile image
Justin Ho

I've used VS Code and I think coc is just as good at LSP for JS, React snippets and C# (only languages I've been using since switch).

In addition it's the most familiar since the eslint and prettier plugins gives you the same warnings and formatting as you would running the linter/ formatter in cmd.

The biggest hurdle is to learn how to use vim though.

Collapse
 
jwkicklighter profile image
Jordan Kicklighter

I'm very comfortable with Vim, and I use the plugin in vs code. I'd go back to Vim if these plugins make the experience similar. Thanks for the feedback

Thread Thread
 
jcsh profile image
Justin Ho

Sorry I didn't mean to imply you don't know how to use vim.

I meant that I'm not even that comfortable with vim and still need to remind myself to not hold down 'j' and use the line numbers 😅

Thread Thread
 
jwkicklighter profile image
Jordan Kicklighter

Oh no, I didn't take it that way! Just clarifying that the Vim part is what I want in my life, but the other features are keeping me in VS Code.

And don't worry, I've been using Vim for years and still catch myself holding down j. Then I catch it, move back up, and use a line number to reinforce the better habits.

Collapse
 
jcsh profile image
Justin Ho


Nord theme all the way! Using Alacritty terminal and hoping to get around to cleaning up my dotfiles soon, its too messy to show the world.

Neovim:

  • Coc
  • fzf
  • ripgrep
  • vim-multiple-cursors these are most used, the rest I could go without but too lazy to take out

Tmux:

  • tmux-sensible
  • tmux-ressurect

Zsh:

  • powerlevel10k prompt
Collapse
 
reobin profile image
Robin Gagnon

If everything was perfect, life would be sad. Don't hesitate to share the messy stuff! 😬

Collapse
 
jcsh profile image
Justin Ho

Thanks for the encouragement!

Yes that is true, I still have old code I'm not proud of public on my GitHub 😂

Collapse
 
ndaidong profile image
Dong Nguyen • Edited

I use git sub module for managing plugins. Here is what I have:

github.com/ndaidong/vim

Collapse
 
reobin profile image
Robin Gagnon

Nicely documented!