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 ) .

This happens lot of times. I login as a normal user and start to edit httpd.conf or lighttpd.conf or named.conf in vim / vi text editor. However, I’m not able to save changes due to permission issue (all config files are owned by root). How do I save file without creating a temporary file (/tmp/httpd.conf) and then move the same (mv /tmp/httpd.conf /etc/httpd) as root using vim / vi itself?

{ 42 comments }

Q. I’m running FreBSD on an old PC and find that all the visual bells and whistles in FreeBSD X11 are really slowing things down. How do I install vim text editor under FreeBSD without using GUI (gvim) version? How do I build vim port without X11 GUI?

{ 5 comments }

I can use less or more pagers to view a file. How do I start an editor (such as vi or other text editor) to edit the current file without leaving the less or more pager command?

{ 6 comments }

How do I open and edit multiple files under VIM text editor running under Ubuntu Linux / UNIX operating systems to improve my productivity?

{ 25 comments }

I’m just starting in vim text editor but I’m annoying typing and retyping similar statements. Can you address me about it?

{ 5 comments }

Can you tell me few useful vim text editor keyboard short cuts for moving around while editing text files?

{ 2 comments }

How do I display vi / vim text editor line numbers while writing a shell script or c program? How can I turn on or off this feature on Linux, Apple OS X, or Unix-like operating systems?

{ 38 comments }