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.
Read MoreBasic VIM editor commands to navigate your code or text documents in the most popular linux text editor are shown in this article.
Read MoreThe Zsh Vim mode or Vi mode can be enabled by executing bindkey -v command or placing it in the zshrc file.
Read MoreVim has many keyboard shortcuts that are used to enhance the workflow. This article lists all the major keyboard shortcuts and commands for quick reference.
Read MoreTo 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.
Read MoreTo 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.
Read MoreTo sort lines in Vim, the built-in sort command is used with a range. By default, lines are sorted in lexicographical order.
Read MoreVim registers are storage blocks used to store yanked, deleted text and operations. 26 named registers (a-z) are used to store custom text.
Read MoreTo 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.
Read MoreVim 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.
Read MoreIn 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.
Read MoreLatest 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.
Vim can be used to easily create and edit markdown files. To preview the markdown file, install the plugin using the Vim plugin manager.
Read MoreTo wrap lines and words in Vim use :set wrap, :set linebreak command, or :set textwidth=N, where N is an integer.
Read MoreTo 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.
Read MoreTo edit columns get into visual block mode, select columns, press shift+i to insert new text, and press Esc.
Read MoreTo highlight the current line use :set cursorline command and to highlight the column use :set cursorcolumn command.
Read MoreTo 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.
Read MoreThe case of letters, words, sentences, paragraphs, and even the entire document can be changed to uppercase using the gU motion operator with options.
Read MoreTo 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.
Read MoreTo set the custom statusline first enable it using the set laststatus=2 command and then use the statusline command to set the status.
Read More