home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

Learning the vi Editor

Learning the vi EditorSearch this book
Previous: A.4 Command Line Options Appendix A
Quick Reference
Next: B. Setting Environment Options
 

A.5 Other ex Commands

Abbreviations [1]
:map x sequence

Define keystroke x as a command sequence

:map! x sequence

Define x as command sequence for insert mode

:unmap x Disable the map x
:unmap! x Disable insert mode map x
:ab abbr phrase

Abbreviate phrase as abbr ; when abbr is typed in insert mode, it expands to full words or phrases

:unab abbr Disable abbreviation
Customizing environment: [1]
:set option Activate option
:set option=value

Assign value to option

:set no option Deactivate option
:set Display options set by user
:set all

Display list of all current options, both default and those set by the user

:set option ? Display value of option
: Invoke ex from vi editor
:vi Invoke vi editor from ex
:sh Invoke shell
^D Return to editor from shell
:! command Give UNIX command
:r newfile

Read contents of newfile into current file

:r ! command

Read output of UNIX command into current file

[1] In .exrc files, omit colon at the start of ex commands.


Previous: A.4 Command Line Options Learning the vi Editor Next: B. Setting Environment Options
A.4 Command Line Options Book Index B. Setting Environment Options

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System










??????????????@Mail.ru