How do you guys run the code you write with vim?

This page summarizes the projects mentioned and recommended in the original post on /r/vim

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • ohmyzsh

    🙃 A delightful community-driven (with 2,300+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.

  • And if you’re using Fancy CTRL-Z, you can just use C-z to go back and forth without fg. https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/fancy-ctrl-z

  • nim.vim

    Nim language plugin for vim

  • There is a built in feature to this called :h :make (not to be confused with the build tool gnu make) which uses the :h 'makeprg' option which can be set per language usually done in the compiler folder of language syntax plugins, like here or here

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • typescript-vim

    Typescript syntax files for Vim

  • There is a built in feature to this called :h :make (not to be confused with the build tool gnu make) which uses the :h 'makeprg' option which can be set per language usually done in the compiler folder of language syntax plugins, like here or here

  • vim-slime

    A vim plugin to give you some slime. (Emacs)

  • toggleterm.nvim

    A neovim lua plugin to help easily manage multiple terminal windows

  • it depends a bit what I'm coding but either I use tmux or https://github.com/akinsho/toggleterm.nvim this toggleterm I just like a lot better for simiple things then the normal terminal in vim.

  • vimtex

    VimTeX: A modern Vim and neovim filetype plugin for LaTeX files.

  • You could consider vimtex for this purpose

  • vim-dispatch

    dispatch.vim: Asynchronous build and test dispatcher

  • vim-dispatch by the legend Tim Pope. send the task to the background, keep using editor. once the task is finished, it output to qflist buffer

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • py-test-runner.vim

    Run (Python) unit tests under cursor

  • I also have a plugin that lets me run a single unit test inside Vim (in the background, using asyncrun), so I can do TDD with by repeatedly pressing F9 (run test under cursor) or Shift-F9 (repeat last test, in case my cursor is now in the middle of the actual code rather than in the test). The status line changes color to let me know if the test passed, and if it failed, I get a quickfix window with the error.

  • run-with-me.vim

    Runs current buffer code

  • vim-tmux-runner

    Vim and tmux, sittin' in a tree...

  • I use tmux and the vim-tmux-runner plugin on vim to send custom commands.

  • asyncrun.vim

    :rocket: Run Async Shell Commands in Vim 8.0 / NeoVim and Output to the Quickfix Window !!

  • I can :Man blah to look up docs or :AsyncRun to build/run with jumpable output in the quickfix. Doing it within vim means I can pull from any register for pasting, yank without a mouse, hide buffers or move them to tabs, etc.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts