Learn to Use Vim Editor in Terminal

Learn to Use Vim Editor in Terminal - Hallo sahabat cluster technology, on this occasion ane will give an article about learning to use vim, many who use vim editor among programmers and sysadmin who use the editor, because it will look minimalist and who likes speed in doing configuration / settings.

Vim editor is based on text / command vim, where to use must use special commands that have been created by vim creators and developers, but for now vim can already use with graphics mode where users do not need to memorize many commands every time they want to do in vim.

In addition, vim already provides many features that are paired separately or in the form of plugins, this becomes an advantage in vim when a feature that is not used can be uninstalled and can reduce the performance of the vim editor because it does not use too many features.


What is Vim?

Vim stands for (Vi IMproved) is a free or open source text application for derivative operating systems from unix, Vim is the development of the previous editor, Vi created by Bill Joy.

Vim was written and developed by Bram Moolenaar, vim was created based on stevie text editor, vim was first released to the public in 1991, vim editor focused more on the interface of its own application command line in a graphical interface.

Vim uses vim license which aims to encourage users who use vim to feel that vim applications are completely free, in addition to vim licenses are very compatible with GNU / Linux licenses.


Website VIM



How to Install Vim Editor

For the installation of vim editor is very easy for all operating systems especially in unix and linux based

FreeBSD

Command Line
pkg install vim

Debian and Ubuntu

Command Line
apt-get install vim
or
apt install vim


RedHat and CentOS

Command Line
yum install vim

Arch

Command Line
pacman -S vim

OpenSUSE

Command Line
 zypper install vim

7 Reasons Users When Switching to Vim Editor

  • See others using Vim Editor and using the keyboard only
  • Switching the operating system, to open source because many tutorials use vim editor inevitably have to follow
  • Following the trend
  • Many use it around the world and many are supportive, so there are often version updates from vim editor.
  • Happy with speed when configuring
  • Reduce mouse usage
  • Want to be a programmer
  • Not many people can this be a special thing for those who can and certainly
  • Free of charge

(Part 1) Run and Exit Vim Editor

Cuteness when users use vim editor for the first time, that is, can run but cannot exit vim editor, before more details here ane will discuss how to run vim editor and how to get out of vim editor.

Running Vim Editor

Before doing activities in vim the editor goes first to the terminal and then rinse the vim to run it, and the asilnya as below.

Command Line
vim 


Exit Vim Editor View


To do out of the vim editor is very easy just just type on the keyboard :q! or :q and then press enter on the keyboard.

Command Line
:q!
or 
:q




(Part 2) Get to Know the Type of Vim Editor Mode and Its Functions

In this section ane will introduce modes to the vim editor, this is very related when using with vim editor, where each mode has a different function.


Normal Mode

When first running or opening vim editor by default by using normal mode, to enter normal mode the user simply presses the esc key on the keyboard.

In this normal mode, users cannot enter text into the vim editor, directly, meaning that the user can only move the cursor using the keyboard.

Command Line
vim name-file-dokumen



Insert Mode

This insert mode allows users to insert text that is typing on the keyboard into a new document or that they want to add. Users who want to enter inster mode can press the i key on the keyboard, if the user wants to save the results of adding text must go to normal mode first.



Visual Mode

By using visual mode mode, users can use the select text feature and can make changes to the sentences that have been selected, this is an alternative to insert mode. for the use of this visual mode can be adjusted to the needs of the user himself.



Command Mode

Vim editor provides command mode when on the move with vim, when editing document files, to activate vim command mode users simply type colon: , for vim command mode can be affirmed in all modes want it normal mode, insert mode, visual mode. when vim editor is created and designed developers are more primary to command (command line).

So Command Mode can be used in all modes, this is very useful for cultivators who often use a lot of activities using the keyboard.


LihatTutupKomentar