![]() Here are a few examples with screenshots to illustrate the vi editing mode. ![]() ![]() In insert mode everything you type gets output to the terminal, but in the command mode the keys are used for various commands. The editing happens in two modes - command mode and insert mode. If you are used to a vi text editor you will feel yourself at home. In your bash shell (to switch back to emacs editing mode, type set -o emacs). You may inspect your current keyboard mappings with bash's built in bind command:Ībort can be found on "\C-g", "\C-x\C-g", "\M-\C-g".Īccept-line can be found on "\C-j", "\C-m".Īlias-expand-line is not bound to any keys The difference between the two modes is what command each key combination (or key) gets bound to. This time I am going to introduce you to bash's vi editing mode and give out a detailed cheat sheet with the default keyboard mappings for this mode. Emacs editing mode is the default and I already wrote an article and created a cheat sheet for this mode. Bash provides two modes for command line editing - emacs and vi.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |