DEV Community

PythonBasics
PythonBasics

Posted on

Vim: The Best Way to Write Code?

vim (aka Vi IMproved) is a highly efficient text editor that has inspired other editors like it, most notably MacVim (which I will refer to as vim from here on) and gVim.

You see, I use a code editor called Vim, which is sort of like an operating system for writing code. I know it might seem bizarre, but there's a method to my madness: Vim lets me write code very quickly and with very little effort. It's a great way of working that I wake up excited to do every day.

gvim

Why vim?

Vim is one of the most popular text editors, which is why you’re either using it or wondering why you should be using it. But if you’re not a programmer, why should you care?

It's a matter of preference, but

  • You don’t have to open vim to write code

If you’re like us, you don’t want to have to switch between your text editor and your terminal while you write your code.

  • You can use it over an SSH connection

This is a big plus. With a few commands you're inanother computer and can edit right away

  • It works on all operating systems

Even the most obsecure operating systems support vim. Like some router with busybox installed

  • It's completely controlled by key presses

You don't need to use the mouse, vim is controlled by key presses. However if you like clicking around, there's gvim.

Vim does have a steep learning curve, but you can practice vim on sites like vim.is

Top comments (0)