≡ Menu

Vim

Linux / Unix: Colored Man Pages With less Command

How do I see colored man pages with standard Unix or Linux less command without installing most paging program for Unix / Linux like oses?
[click to continue…]

Sysadmin because even developers need heroes!!!

VI / VIM: Insert Current Date / Time

How do I display and insert current date and/or time under vi or VIM text editor?
[click to continue…]

vi / vim: Jump To End Of File Command

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?
[click to continue…]

HowTo: Save A File In Vim / Vi Without Root Permission

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?
[click to continue…]

Vim Editing Multiple Files and Windowing Support Under Linux / UNIX

How do I open and edit multiple files on a VIM text editor running under Ubuntu Linux / UNIX-like operating systems to improve my productivity?
[click to continue…]

How do I Be More Productive In Vim?

This is a user contributed FAQ.

Q. I’m just starting in vim text editor but I’m annoying typing and retyping similar statements. Can you address me about it?
[click to continue…]

Moving Around With vim (keyboard short cuts)

This is a user contributed FAQ.

Q. Can you tell me few useful vim text editor keyboard short cuts for moving around while editing text files?
[click to continue…]

How To Show Line Numbers In vi / vim Text Editor

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?
[click to continue…]

vi / vim Auto complete File Name While Editing Files

Q. I use vi / vim as IDE (Integrated development environment) a software development system using Ubuntu Linux. How do I auto complete file name under vim / vi text editor while editing text file or java / c / python program? I can auto complete file nameunder bash shell by hitting [TAB] key.
[click to continue…]

VI / Vim Print Line Numbers on Hardcopies / Printer

How do I print line numbers on the printer for my c / java / c++ code written using vi or vim text editor under Linux / UNIX like operating system?
[click to continue…]