| by Arround The Web

Basic Vim Editor Commands

Basic VIM editor commands to navigate your code or text documents in the most popular linux text editor are shown in this article.

Share Button
Read More
| by Arround The Web

Zsh Vim Mode

The Zsh Vim mode or Vi mode can be enabled by executing bindkey -v command or placing it in the zshrc file.

Share Button
Read More
| by Arround The Web

Vim Keyboard Shortcuts and Commands

Vim has many keyboard shortcuts that are used to enhance the workflow. This article lists all the major keyboard shortcuts and commands for quick reference.

Share Button
Read More
| by Arround The Web

How to Map Keys in Vim

To map keys in the Vim editor, the :map command is used followed by a set of keys and commands. However, :unmap command is used to remove the mapping.

Share Button
Read More
| by Arround The Web

How to Select All in Vim

To select all in Vim, use the ggVG command, and to map the ctrl+a key to this command use, nnoremap ggVV in the vimrc file.

Share Button
Read More
| by Arround The Web

Guide to Sort Lines in Vim

To sort lines in Vim, the built-in sort command is used with a range. By default, lines are sorted in lexicographical order.

Share Button
Read More
| by Arround The Web

What are Vim Registers

Vim registers are storage blocks used to store yanked, deleted text and operations. 26 named registers (a-z) are used to store custom text.

Share Button
Read More
| by Arround The Web

How to Page Up and Page Down in Vim

To page up and page down in Vim, use ctrl+f and ctrl+b keys, respectively. However, to page up and down by a half page, use ctrl+u and ctrl+d keys.

Share Button
Read More
| by Arround The Web

Vim 9.1 Text Editor Adds Smooth Scroll Support, New :defer Command, and More

Vim 9.1 comes one and a half years after the major Vim 9.0 release and implements a handful of new features like smooth scroll support, a new :defer command to help clean up a function, support for adding virtual-text to a buffer, as well as support for Vim9 classes and objects for the Vim9 scripting […]

The post Vim 9.1 Text Editor Adds Smooth Scroll Support, New :defer Command, and More appeared first on Linux Today.

Share Button
Read More
| by Arround The Web

What is Vim Leader Key

In Vim, the leader key can be used to make shortcuts and commands. The slash (\) key in Vim is the default leader key, but you can change it to suit your needs.

Share Button
Read More
| by Arround The Web

Vim 9.1 Adds Virtual Text, Smooth Scrolling, and More

Latest Vim 9.1: Remembering Bram Moolenaar, featuring new :defer command, virtual-text support, and EditorConfig plugin. See what’s new.
The post Vim 9.1 Adds Virtual Text, Smooth Scrolling, and More appeared first on Linux Today.

Share Button
Read More
| by Arround The Web

How to Create and Preview Vim Markdown Files

Vim can be used to easily create and edit markdown files. To preview the markdown file, install the plugin using the Vim plugin manager.

Share Button
Read More
| by Arround The Web

How to Wrap Lines and Words in Vim

To wrap lines and words in Vim use :set wrap, :set linebreak command, or :set textwidth=N, where N is an integer.

Share Button
Read More
| by Arround The Web

How to Remove Duplicate Lines in Vim

To remove the duplicate lines in Vim use the sort -u command unless you want to modify the file. To remove duplicate lines without modifying the file use the awk command.

Share Button
Read More
| by Arround The Web

How to Edit Columns in Vim

To edit columns get into visual block mode, select columns, press shift+i to insert new text, and press Esc.

Share Button
Read More
| by Arround The Web

How to Highlight the Current Line in Vim

To highlight the current line use :set cursorline command and to highlight the column use :set cursorcolumn command.

Share Button
Read More
| by Arround The Web

Guide to Set Up Vim for LaTeX Editing

To edit LaTeX on Vim, we need to install the Vimtex LaTeX editing plugin. Vimtex offers various commands to autocomplete and quickly edit the LaTeX documents in Vim.

Share Button
Read More
| by Arround The Web

How to Change Case to Upper in Vim

The case of letters, words, sentences, paragraphs, and even the entire document can be changed to uppercase using the gU motion operator with options.

Share Button
Read More
| by Arround The Web

How to Clear Vim Search Highlighting

To clear Vim search highlighting, switch to NORMAL mode and type :set nohlsearch command or place this command in the vimrc file for permanent disabling search highlight.

Share Button
Read More
| by Arround The Web

Guide to Create and Set the Custom Vim Statusline

To set the custom statusline first enable it using the set laststatus=2 command and then use the statusline command to set the status.

Share Button
Read More