Skip to content
March 22, 2023

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

  • 1 Here we discuss mainly two topics
    • 1.1 How to install Vim
    • 1.2 Understanding modes of Vim (command modes and insert modes)
      • 1.2.1 Changing mode from one to another:
  • 2 Some useful commands for VIM
    • 2.1 The following commands are used only in the commands mode.
      • 2.1.1 Cursor Movement Commands
  • 3 More about Vim:

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

Mint 19 Beta

Linux Mint 19 Beta is released; Whats new.

June 9, 2018
Linux Kernel 4.15 Released with Spectre & Meltdown Patches

Linux Kernel 4.15 Released With Spectre & Meltdown Patches

January 29, 2018January 30, 2018
ONLYOFFICE-Documents-2.0

ONLYOFFICE Documents 2.0 Beta Released on Android, with Co Editing Mode

May 17, 2018May 17, 2018
Facebook Created A New Unit Of Time - Flick

Facebook created a new unit of time; made it Open Source!

January 24, 2018January 29, 2018
LibreOffice 6.0 is coming soon. Find out what's new!

LibreOffice 6.0 Final Release Coming Soon, Find Out What’s New

January 4, 2018January 13, 2018

Top 4 Web Performance Software for Linux Systems

January 24, 2018January 24, 2018

Recent Posts

  • Setting up WhatsApp Telegram Bridge Using Matterbridge 2020
  • How to change font in telegram desktop in Linux and Windows
  • Create A Simple Presentation using Reveal js and Markdown
  • Download Ubuntu 19.04 Disco Dingo Daily Build ISO
  • How to Install WiFi driver for Broadcom BCM43142 WiFi device in GNU/Linux Distros

Archives

  • 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

  • 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...