Vim

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?

{ 6 comments }

VI / VIM: Insert Current Date / Time

by Vivek Gite on November 17, 2010 · 1 comment

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

{ 1 comment }

vi Find And Replace Text Command

by Vivek Gite on November 13, 2010 · 3 comments

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

{ 3 comments }

HowTo: Save File in Vi / Vim Text Editor

by Vivek Gite on April 24, 2010 · 0 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?

{ 0 comments }

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?

{ 39 comments }

FreeBSD Install VIM Editor Without X11 GUI

by Vivek Gite on January 16, 2009 · 4 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?

{ 4 comments }

Question: 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?

{ 3 comments }