Skip to content
May 13, 2025

IB Computing

IB Computing – Daily updates of web development

  • Home
  • About
  • Ubuntu 1804
  • News
  • Telegram
  • Tutorials
  • Jquery
  • Contact
  • Home
  • About
  • Ubuntu 1804
  • News
  • Telegram
  • Tutorials
  • Jquery
  • Contact
News

Learning to install Vim and understanding modes of Vim

January 17, 2018January 28, 2018

Sponsored

The Vim editor is a popular Free and Open Source text editor. It is an improved version of the vi text editor. Vim is extremely popular among the Linux, macOS and Unix-like system users. this one has many commands that help you to edit your text files efficiently. It comes with a pretty extensive built-in manual as well.

Contents

Here we discuss mainly two topics

  • How to install Vim
  • Understanding modes of Vim (command modes and insert modes)

How to install Vim

  • Debian and other Debian-based distros like Ubuntu, Linux Mint:
    sudo apt-get install vim
  • Fedora:
    sudo dnf install vim
  • Arch Linux:
    sudo pacman -S vim

 

For more details

Sponsored

screenshot vim
Learning vim

 

Understanding modes of Vim (command modes and insert modes)

In the command mode, a user can move around the file, delete text, etc. In the insert mode, a user can insert text.

Changing mode from one to another:

  • From command mode to insert mode type a/A/i/I/o/O
  • From insert mode to command mode type Esc

Some useful commands for VIM

aAppend text following current cursor position
A Append text to the end of current line
iInsert text before the current cursor position
IInsert text at the beginning of the cursor line
oOpen up a new line following the current line and add text there
O Open up a new line in front of the current line and add text there

The following commands are used only in the commands mode.

Cursor Movement Commands

hMoves the cursor one character to the left
lMoves the cursor one character to the right
kMoves the cursor up one line
jMoves the cursor down one line
nG or :nCursor goes to the specified (n) line (eg. 10G goes to line 10)
^F (CTRl F)Forward screenful
^BBackward screenful
^fOne page forward
^bOne page backward
^UUp half screenful
^DDown half screenful
  $Move cursor to the end of current line

 

Home

More about Vim:

Vim is the editor of choice for many developers and power users. It’s a “modal” text editor based on the vi editor written by Bill Joy in the 1970s for a version of UNIX. It inherits the key bindings of vi, but also adds a great deal of functionality and extensibility that are missing from the original vi.

What do we mean by modal? When you’re using most word processors and text editors, the alphanumeric keys (i.e., a through z, 1 through 9) are only used to input those characters unless they’re modified by a control key. In Vim, the mode that the editor is in determines whether the alphanumeric keys will input those characters or move the cursor through the document.In Vim, you can save a file without your hands leaving the keyboard, and sometimes without even leaving the home keys. From Vim’s insert mode, hit Escape and then :w. That’s all. More on that later.

 

 

Sponsored

TaggedLinuxOpen SourceVim

Post navigation

Previous Post Previous post:
YouTube Video Monetization Criteria Updated, Small Channels to be Seriously Affected
Next Post Next post:
Challegram to become Telegram X for Android?

You might also like

Bootstrap 4

Bootstrap 4 Released, Download and Check Out New Features

January 20, 2018January 22, 2018
Firefox 60

Firefox 60 Released

May 22, 2018May 22, 2018
Spectre & Meltdown delaying new Linux kernel release

Spectre and Meltdown Delaying New Linux Kernel Release

January 22, 2018January 28, 2018
Telegram X for Android Released

Telegram X for Android Released – What’s New

January 22, 2018January 24, 2018
Firefox 58

Firefox 58 Release; With Spectre and Meltdown Security Fixes

January 21, 2018January 28, 2018
Moto G Series 2018 | IB Computing

Moto G series 2018 – Makes me laugh

July 23, 2018July 23, 2018

Recent Posts

  • DeepSeek R1: Revolutionizing AI with Open Source and DeepThinking
  • IT Admins Battle Windows Blue Screen of Death After Faulty Update
  • Google’s Goo.gl Link Shortener Expire in Aug 2025
  • Wikipedia Launches Long-Awaited Dark Mode Feature
  • Setting up WhatsApp Telegram Bridge Using Matterbridge 2020

Archives

  • January 2025
  • July 2024
  • September 2020
  • March 2020
  • February 2020
  • November 2018
  • October 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017

Categories

  • AI
  • Android
  • Featured
  • Gadgets
  • GNU/Linux
  • Javascript
  • Jquery
  • Music Players
  • Music Players
  • News
  • Security
  • Softwares
  • Telegram
  • Tutorials
  • Ubuntu
  • Wallpapers
  • Web Development
  • Web Server
  • WhatsApp
  • Wordpress
  • YouTube

Pages

  • Contact
  • Privacy Policy
  • Terms of Service
copyright 2020 Powered by WordPress and Bam.
 

Loading Comments...