Skip to main content

Vim Tips

A collection of 31 posts

Start Learning Vim
Vim Tips

Start Learning Vim

Start learning Vim by following these Vim tips for beginners and advanced users.

ยท Abhishek Prakash

Using tabs in Vim
Vim Tips

Using Tabbed Interface in Vim

Give Vim and IDE touch by using tabs to open multiple files. Yes, the same tab experience you have in a web browser or a regular text editor.

ยท Abhishek Prakash

Mouse mode in Vim
Vim Tips

Using Mouse Mode in Vim

Think of mouse mode in Vim like adding touchscreen controls to a cockpit - the physical switches and dials remain the primary interface, but the touchscreen provides intuitive access for certain operations.

ยท Abhishek Prakash

Using Split Windows With Vim
Vim Tips

Using Split Windows With Vim

Vim allows you to use multiple windows in the same terminal screen. You can split them horizontally and vertically and move between them with shortcuts.

ยท Abhishek Prakash

Find and replace in Vim
Vim Tips

Find and Replace Text in Vim

Here are a few examples to show how you can use the search and replace feature in the powerful Vim editor.

ยท Abhishek Prakash

cut, copy and paste in Vim
Vim Tips

Cut, Copy and Paste in Vim

Cut, copy and paste are essential functions of any text editor. Here's how to achieve that in Vim.

ยท Abhishek Prakash

Undo and redo in Vim
Vim Tips

Undo or Redo Changes in Vim

u key for undo and Ctrl+r for redo, that's all you need to do for undo and redo changes in Vim. Here's how it works.

ยท Abhishek Prakash

Save and exit vim
Vim Tips

Save and Exit Vim

Learn how to save your changes in Vim. Also learn how to discard the changes and quit Vim.

ยท Abhishek Prakash

Select all in Vim
Vim Tips

Select All Text in Vim

Learn to select all the lines, all the text of a file in Vim.

ยท Pratham Patel

Vim copy text to clipboard
Vim Tips

Copy Paste Text to and from System Clipboard in Vim

Learn to configure Vim so that you can copy paste between Vim and other tools outside Vim through the system clipboard.

ยท Pratham Patel

Use autocomplete in Vim
Vim Tips

Using Autocomplete in Vim

Autocompletion is a great way of being more efficient as a Vim user. Learn various ways of using auto-completion in Vim.

ยท Pratham Patel

vimdiff
Vim Tips

Use vimdiff Like a Vim Pro

Want to see the difference between two files? Normal users use diff command. Pro Vim users go for vimdiff.

ยท Pratham Patel

Moving Around in Vim
Vim Tips

Moving Around in Vim

Learn to navigate through the text, lines and file in Vim.

ยท Abhishek Prakash

Vim modes
Vim Tips

Understand Vim Modes

Vim has three different modes for handling user input and processing them.

ยท Abhishek Prakash

Install Vim plugins
Vim Tips

How to Extend Vim's Functionality by Adding Plugins

Vim's functionality can be extended with plugins. Here is how you can install and use plugins in Vim. Also learn about updating and removing the plugins.

ยท Pratham Patel

Navigating Up or Down a Page in Vim
Vim Tips

Navigating Up or Down a Page in Vim

Learn various ways of moving up or down by pages in Vim editor.

ยท Abhishek Prakash

Pro Vim tips
Vim Tips

11 Pro Vim Tips to Get Better Editing Experience

You can learn plenty of Vim tips on your own, or you can learn it from others' experiences.

ยท Pratham Patel

Split screen in Vim
Vim Tips

Split Vim Workspace Vertically or Horizontally

Vim allows you to have multiple horizontal or vertical splits in your active workspace.

ยท Abhishek Prakash

Indentation in Vim
Vim Tips

Set Indentation Width to 2 or 4 Spaces (or Tab) in Vim

Prefer tabs to spaces? Here's how to set indentations to use spaces instead of tabs in Vim.

ยท Abhishek Prakash

Move to beginning or end of line in Vim
Vim Tips

Move Cursor to Beginning or End of Line in Vim

Learn some basic cursor movement in Vim editor.

ยท Abhishek Prakash

Buffers in Vim
Vim Tips

Complete Guide to Buffers in Vim

Use Vim like a pro user by mastering the buffers.

ยท Pratham Patel

Visual Mode in Vim
Vim Tips

Getting Comfortable with Visual Mode in Vim

There are three modes in Vim and the least popular and yet quite interesting is the Visual mode. Learn more about it.

ยท Pratham Patel

Go to specific line in Vim
Vim Tips

Go to a Specific Line in Vim

To effectively use Vim, you need to master the navigation. Here are a few tips on quickly navigating inside Vim editor.

ยท Abhishek Prakash

Color schemes in Vim
Vim Tips

Color Schemes in Vim: How to Change and Use Them

Dark or light or something else? The all-rounder Vim editor lets you set color schemes of your preference. Here's how achieve that.

ยท Abhishek Prakash

Syntax highlight in Vim
Vim Tips

Enable Syntax Highlighting in Vim

Using Vim for reading or writing scripts and code? Enable syntax highlighting in Vim for a better experience.

ยท Abhishek Prakash

Deleting multiple lines in Vim
Vim Tips

Delete Multiple Lines in Vim

Want to delete multiple lines or all lines or all empty lines in Vim? Here are a few tips to know about line deletion in Vim.

ยท Abhishek Prakash

Show Hidden Special Characters in Vim
Vim Tips

Show Hidden Special Characters in Vim

Wondering if it is 2 spaces or tabs? You can show special characters in Vim and easily identify them.

ยท Abhishek Prakash

Go to beginning or end of file in Vim
Vim Tips

Go to Beginning or End of File in Vim

Knowing to move to top or bottom of a file is extremely useful while dealing with large text files in Vim.

ยท Abhishek Prakash

Show line numbers in Vim
Vim Tips

How to Show Line Numbers in Vim

Do you know Vim can show absolute, relative and hybrid line numbers? Here's how to set it up.

ยท Abhishek Prakash

Delete all lines in Vim
Vim Tips

Delete All Lines of a File in Vim

Esc+gg+dG is what you need to do for deleting all the lines of the file in Vim. Here's how it works.

ยท Abhishek Prakash