Skip to main content

VIM Text Editor

Hi there,

In this little article, I'll make some basic notes about the VIM text editor command and modes. Like NANO, VIM is also a text editor. There's another text editor VI, which stands for Visual, but VIM stands for Vi IMproved. In another way, VIM is the improved version of VI. VIM has improved with some of the features and preferences, especially with code highlighting and colored properties compared to VI. So, let's get started:

Like the NANO command-line text editor, the VIM text editor is also used to open or create, edit, overwrite, and add the content of files. Compared to NANO, everything may look weird and complicated to you in VIM command, but don't worry, while a lot of practice you'll get to know how powerful text editor VIM is. Actually, VIM has many modes, but basic operational modes are Normal, Insert, Visual and Command-line modes, which I'll talk about. VIM text editor is not the same as NANO, because VIM acts or behaves differently in every other mode.

  • Normal mode can be accessed from other modes and this mode is the default mode of VIM. Normal mode also comes as a default to create or edit an existing file with VIM; 
  • Insert mode allows you to type, add or edit texts, and to switch from normal mode to insert mode need to type "i" (means insert), and you'll see in the lower left corner of the page, the insert word popped up and that means you're in insert mode;
  • Visual mode allows you copy, cut, and delete operations on selected text. Visual mode is almost close to normal mode. To switch from insert mode to visual mode need to press the ESC button on the keyboard. Actually, the ESC button works while switching the VIM modes, and plus visual mode is good to work with the large files to do all of such things once and fast without wasting time. 
  • Command-line mode allows you to save, unsave, exit, edit buffers, search, replace, and so on By the way, the buffer is VIM's memory that holds a copy of texts or contents you type. 

I guess that's it for now, hopefully my article will be useful for your enlightenment.

Thank you and good luck!
Sincerely,
Araz Ahmadov

Comments

Popular posts from this blog

How To Install WordPress On Rocky Linux 9

WordPress is widely recognized as the preferred platform for building websites and blogs due to its ease of use and wide range of customization features. Suppose you’re considering installing WordPress on Rocky Linux, an open-source operating system known for its reliability. In that case, you’ll find the process to be quite straightforward when coupled with the LAMP stack – Linux, Apache, MySQL, and PHP. In the following article, we will guide you through each step of setting up WordPress on Rocky Linux using LAMP, allowing you to get your website or blog up and running smoothly in no time. So, let’s dive into the process! Install WordPress On Rocky Linux 9 Step 1: Update Your System in Rocky Linux Step 2: Installation process of LAMP Step 3: Install WordPress in Rocky Linux 9 Step 4: Configuration of Database Step 5: Configuration of WordPress Step 6: Configuration of Firewall settings Step 7: Log in to WordPress Step 1: Update Your System in Rocky Linux Before installing any new sof...

Fayl Bərpa Alqoritmləri

  Salam dostlar, Bu yazımda sizə fayl bərpa proqramlarının (Recuva, Wondershare, EaseUS Data Recovery və s.) faylları bərpa etməsi haqqında bəhs etmək istərdim ki, məhz bu proqramlar silinmiş məlumatların (şəkil, video, sənəd və s.) geri qaytarılması üçün xüsusi alqoritmlərdən istifadə edir. Bu prosesin texniki tərəflərini izah etmək üçün əvvəlcə bir neçə əsas anlayışı bilmək lazımdır: Silinmiş faylların vəziyyəti Əksər fayl sistemlərində (məsələn, NTFS, FAT32, exFAT) fayl silindikdə, həmin fayl fiziki olaraq diskin üzərindən silinmir ki, bu zaman: Fayl sistemində faylın olduğu yer boş olaraq işarələnir və həmin sahə üzərində yeni məlumat yazıla bilməsi üçün icazə verilir; Faylın "metadata"-ları (fayl adı, ölçüsü, yaradılma tarixi və s.) xüsusi strukturlarda saxlanılır (məsələn, NTFS-də MFT / Master File Table). Bu səbəbdən, fayl silindikdən dərhal sonra onu bərpa etmək mümkündür, çünki həmin məlumat fiziki olaraq diskin üzərində qalır. Ancaq yeni məlumat həmin yerə yazıldıqd...

Antivirus Mexanizmi

Salam dostlar, Bu yazımda sizə antivirus mexanizminin necə işlədiyi haqqında bəzi məlumatları təqdim etmək istərdim. Belə ki, bildiyiniz kimi antivirus proqramları kompüterlərin təhlükəsizliyini təmin etmək üçün ən vacib alətlərdən biridir ki, məhz virusları aşkar etmək, onların qarşısını almaq və onları zərərsizləşdirmək üçün nəzərdə tutulmuşdur. Beləliklə: 🔍 Virusun aşkarlanması Antivirus proqramları, əsasən, iki - imza əsaslı və davranış əsaslı üsulla virusları aşkar edir: İmza əsaslı aşkarlama (signature-based detection) - bu üsul, virusların əvvəlcədən müəyyən edilmiş imzaları (məlumat bazası) ilə müqayisə olunmasına əsaslanır. Hər bir virusun unikal bir imzası (kod parçası) olur və antivirus proqramı bu imzaları tanımaq üçün məlumat bazasını mütəmadi olaraq yeniləyir ki, bu üsul yalnız virusları aşkarlaya bilir; Davranış əsaslı aşkarlama (behavior-based detection) - bu üsul, virusun davranışına əsaslanaraq zərərli fəaliyyətləri müəyyən edir. Yəni, bir virusun fayllara icazəsiz...