Vim Tutorial and HowTos

Vim is a text editor. It was created as an extended version of the vi editor, with many additional features designed to be helpful in editing program source code ( rss/feed ) .

I am new to Linux sysadmin work. I am using vi / vim text editor to edit files located in /etc/ directory. I open files using

vi /etc/resolv.conf /etc/hosts

I can edit the /etc/resolv.conf file only. How do I switch between the two open files while using vim text editor under Linux / BSD / Apple OS X / Unix like operating systems?

{ 12 comments }

I am a new Linux user. I started to use vim or vi text editor. How do I find all occurrence of the word called ‘eth0′ and replace it with ‘br0′ on Linux operating systems?

{ 2 comments }

How do I open a text file using VIM or VI and go to specific line? How do I open a file using vim and go to specific function() in my source code?

{ 8 comments }

How do I display and insert current date and/or time under vi or VIM text editor?

{ 1 comment }

How do I find and replace (substitute) test using vi or vim text editor under UNIX / Linux / BSD or Apple OS X operating systems?

{ 26 comments }

I‘m using vim as a text editor and editing a large code file written in python. How do I jump to end of file using vim text editor under Apple Mac OS X Unix operating systems?

{ 5 comments }

I‘m new to Linux or UNIX like operating system. I just wanted to create a file called demo.txt and save & close it using vi text editor. How do I save a file using vi?

{ 11 comments }