VSCode vs. Vim: Which One to Choose for Text Editors and IDE

VSCode vs. Vim: Which One to Choose for Text Editors and IDE

VSCode and Vim are two of the most popular text editors/IDE. But which one do you choose? Why use Vim? Vim is a great text editor, which can be customized to your liking: Speed on startup, Very light weight, Speed, Available on most, if not all systems, Very popular among software developers, Great community

VSCode and Vim are two of the most popular text editors/IDE. But which one do you choose?

VSCode is a great text editor/IDE, don’t get me wrong, but for me if you get too many extensions it will take a tremendous amount of time to load up and actually use it. This is why I use vim as my daily text editor/IDE.

Why use Vim?

Vim is a great text editor, which can be customized to your liking. This is only one of the many reasons to use vim. Others may include:

  • Speed on startup
  • Very light weight, which helps with the speed
  • Speed, when using its keybinds (which we will be going over soon)
  • Available on most, if not all systems
  • Very popular among software developers.
  • Great community

Vim does have some downsides though, such as the steep learning curve (which is exaggerated way too much), the way the interface looks, and other preferences.

The learning curve for vim is not as exaggerated as you may think. All you need is to get used to the movement keys and you will be on your merry way. But remember there are always new ways to move, delete, or highlight text.

The interface is a big part in the way I view a IDE/text editor. This is because if you don’t like the interface, then you will have a hard time actually getting work done. You can customize the layout of vim, but you will not get the buttons that are in VSCode and will have to use your keyboard for everything.

Keybinds

Ah, finally, the fun part, you will get to learn and get as fast as flash at vim.

Take notice on the case of the characters, they matter.

Use the following keybinds to search and exit files:

  • :q| quit without saving
  • :wq | quit with saving
  • :q! | force quit (similar to when a program asks if you want to quit, but it will not prompt you to quit)
  • / | search for whatever is after it, use n and N to go to the next or last word that is searched, respectively

Beginner Commands

As you are just getting started I would just use these keybinds:

  • h | left (arrow key)
  • j | down (arrow key)
  • k | up (arrow key)
  • l | right (arrow key)
  • w | move forward a word
  • b | move back a word
  • e | move to the end of the word
  • x | delete the current character and puts it into the clipboard
  • d | deletes highlighted characters and puts them into the clipboard
  • dd | delete the line and puts them into the clipboard
  • u | undo the last command
  • i | insert mode, the mode where you can type text
  • v | highlights the character, then use the movement keys above to highlight more
  • V | highlights line, then use movement keys above
  • y | yanks the highlighted part to clipboard
  • yy | yanks the line to the clipboard
  • p | pastes the last thing in that was put in the clipboard
  • ESC | escape to normal mode, you can also use Ctrl+[ or Ctrl+c without the <>

These are the ones I would recommend to start out with. They may look overwhelming but just play around and use them. Because that is the only way to get better.

vim vscode programming developer

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How long does it take to develop/build an app?

This article covers A-Z about the mobile and web app development process and answers your question on how long does it take to develop/build an app.

Developer Career Path: To Become a Team Lead or Stay a Developer?

For a developer, becoming a team leader can be a trap or open up opportunities for creating software. Two years ago, when I was a developer, ... by Oleg Sklyarov, Fullstack Developer at Skyeng company

Tracking a Developer’s Journey From Documentation Visit

Measuring website activity provides only half the story. See how to best track the developer's journey and what funnel stages makes sense for API-first products

Offshore Software Development - Best Practices

To make the most out of the benefits of offshore software development, you should understand the crucial factors that affect offshore development.

PHPStorm vs VSCode for PHP Development - Full Comparison [2 hours]

PHPStorm vs VSCode for PHP Development, I will cover some important features of VSCode and PHPStorm, compare them to each other and understand which one is better for PHP Development.