How to set TAB key to 4 Spaces in VIM ?

If you are using Ubuntu and installed VIM using the steps as mentioned in “How to Install … Read more

How to delete first few characters in each line in a text file using VI ?

In a Linux kernel development, many times we need to check the kernel booting messages using “dmesg” … Read more

How to Install Vim Text Editor in Linux ?

Install VIM

Vim is a improved VI Editor for Linux. It tries to overcome most of the limitations of … Read more

Find and Replace in VIM Editor

Find and Replace

Suppose we have a text file from which we want to search for string “hello” and replace … Read more

How to Create a New File with Vim and Write Contents ?

Create file using Vi editor

Vim (Vi Improved) is a clone of Bill Joy’s vi text editor program for Unix. It was … Read more

Save Vimdiff Output To HTML

vimdiff_2_html

The script ( vimdiff_to_html.sh ) matches the filename from first directory to same filename from second directory … Read more

Keyboard shortcuts for Cut, Copy and Paste in Vim Editor

Copy Paste Vim

In Last post “VIM : How to create a file and write contents using vim editor” we … Read more

Compare files with Visual File diff tool of VIM

vimdiff is very good command which we can use to identify what the differences between two files. … Read more