am a new Linux/Unix user. How do I exit the VIM / vi editor on Linux/Unix-like operating systems?
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 Linux, FreeBSD, OpenBSD, NetBSD, Apple OS X or Unix-like operating systems? How can I fix arrow keys that display A B C D on remote shell?
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?
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? Continue reading “Vi / VIM: Find And Replace All Text Substitute Command”
ow 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?
How do I display and insert current date and/or time under vi or VIM text editor?
How do I find and replace (substitute) test using vi or vim text editor under UNIX / Linux / BSD or Apple OS X operating systems?