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 recently switched from OS X to Ubuntu. When I run the ‘vim file.c’ command at terminal, I see an error message that read as follows:

The program ‘vim’ can be found in the following packages:
* vim
* vim-gnome

* vim-tiny
* vim-athena
* vim-gtk
* vim-nox
Try: apt-get install <selected package>


How do I fix this problem and why vim is not a default text editor on Ubuntu Linux? How can I install full-fledged vim text editor in Ubuntu Linux?

{ 11 comments }

I am a new vi / vim text editor user and I know how to quit without saving changes. What if I want to wipe out all of the edits I have made in a session and get back to the original file? How do I wipe all changes since opening a file?

{ 2 comments }

Writing shell scripts in vim I usually go search for functions or something. Copy lines and then go back to where I was and modify the code. However, I need to manually navigate way back to the previous / last position. How can I automatically go back to where I was when I started my search operation under vim?

{ 2 comments }

I am a new vi (vim) text editor user. How do I quit the vi editor and save my changes under Linux or Unix like operating systems?

{ 0 comments }

I am a new vi / vim text editor user. How can I quit the vi / vim text editor without saving my changes to a file under Linux / Unix like operating systems?

{ 2 comments }

I am a new Linux/Unix user. How do I exit the VIM / vi editor on Linux/Unix-like operating systems?

{ 0 comments }

I am login to a remote server using a ssh client. I am annoyed with the arrow key behavior during insert mode in Vim. As soon as I hit arrow keys, vim display A B C D on screen. How do I fix this problem under Unix like operating systems?

{ 3 comments }