set
you can customize your environment with this command by typing set var=value, this will set the specified var to value for a scalar variable. For boolean varaibles, use set var to set and set novar to unset. You can see which variables are set by just typing the set by its itself. You can see a list of all variables by typing set all. some environment variables are specific to the ex editor and some are specific to the vi editor.
boolean variables:
| begin editing next line at same level of indent-ion as this one. |
| write current buffer before leaving |
| tells vi/ex if it should read the .exrc file in the current directory(this can be a security risk). |
| editor sends a beep to the terminal when an incorrect |
| inverse the screen on an error instead of producing a bell |
| ignore case of characters in searches. |
| enter lisp mode |
| place a $ at the end of each line and a ^I on each tab. |
| allow ., [, and * to be interpreted as special characters in RE's. |
| execute the first and last 5 lines of the file if of the form: |
| number lines in left margin |
| when closing a paren., brace or bracket; move the visual cursor to opening item to check scope |
| show type of insert mode |
| when searching and at bottom of file, continue searching from the top |
Scalar variables:
| the location of the temporary directory used by vi |
| macros to signify the beginning of a paragraph |
| vi will notify you if you change more lines than the value of |
| macros to signify the beginning of a section |
| The shell to use when executing the command |
| number of spaces to to insert on a shift operation |
| show the match of ) and } when typed |
| the length, in characters, of a tabstop |
| holds the name of the terminal type being used |
| split lines at the column which is equal to the value of |
No comments:
Post a Comment