Can you tell me few useful vim text editor keyboard short cuts for moving around while editing text files?
ow 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 a Linux, Apple OS X/macOS, or Unix-like operating systems?
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.
ow 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?
Can tell me a Linux commands to edit a text file?
Q. I find vi hard to use. How do I change my default text editor from vim / vi to Pico under Debian Linux?
A. To use and change an editor to edit your text message, set the variable EDITOR to the pathname of the vi / vim binary file. You need to use export or set command for the same purpose.
Many Linux / UNIX command read shell EDITOR environment variable to determine which editor to use for editing a text file.
Set default text editor to pico
Type the command as follows:
$ which pico
Now setup a new text editor:
Add above line to ~/.bashrc file:
$ vi ~/.bashrc
Append text as follows:
Close and save the file. There is no no need to reboot system.
Also you can add alias if you want:
ow do I install VIM text editor for my FreeBSD server? I like vim as it is a highly configurable text editor and efficient one. Currently it has old version of vi. How can I install vim text editor on a FreeBSD server or desktop?