Chinaunix首页 | 论坛 | 博客
  • 博客访问: 568014
  • 博文数量: 99
  • 博客积分: 3976
  • 博客等级: 中校
  • 技术积分: 1041
  • 用 户 组: 普通用户
  • 注册时间: 2005-08-15 15:48
文章分类
文章存档

2009年(1)

2008年(5)

2007年(31)

2006年(58)

2005年(4)

分类: LINUX

2006-11-16 12:33:55

**          选项

||          :se[t]                    显示所有被改动的选项
||          :se[t] all                显示所有非 termcap 选项
||          :se[t] termcap            显示所有 termcap 选项
||          :se[t] {option}           置布尔选项 (开启),
                                          显示字符穿或数字选项.
||          :se[t] no{option}         复位布尔选项 (关闭).
||          :se[t] inv{option}        invert boolean option.
||          :se[t] {option}={value}   Set string/number option to {value}.
||          :se[t] {option}+={value}  append {value} to string option, add
                                          {value} to number option
||          :se[t] {option}-={value}  remove {value} to string option,
                                          subtract {value} from number option
||          :se[t] {option}?          显示 {option} 的值
||          :se[t] {option}&          Reset {option} to its default value.

||     :setl[ocal]               like ":set" but set the local value
                                          for options that have one
||    :setg[lobal]              like ":set" but set the global value
                                          of a local option

||          :fix[del]                 Set value of 't_kD' according to
                                          value of 't_kb'.
||      :opt[ions]                Open a new window to view and set
                                          options, grouped by functionality,
                                          a one line explanation and links to
                                          the help.

各选项的简短说明:               **
||         ||     ASCII code of the letter Aleph (Hebrew)
||   ||    allow CTRL-_ in Insert and Command-line mode
||     ||    for default second language (Farsi/Hebrew)
||     ||   what to do with Unicode chars of ambiguous width
||     ||   Mac OS X: use smooth, antialiased fonts
||     ||    change directory to the file in the current window
||        ||   for Arabic as a default second language
||   || do shaping for Arabic characters
||    ||     take indent for new line from previous line
||      ||     autom. read file when changed outside of Vim
||     ||     automatically write file if changed
||  ||    as 'autowrite', but works with more commands
||    ||     "dark" or "light", used for highlight colors
||     ||     how backspace works at start of line
||        ||     keep backup file after overwriting a file
||    ||    make backup as a copy, don't rename the file
||     ||   list of directories for the backup file
||     ||    extension used for the backup file
||    ||    no backup for files that match these patterns
||  ||  delay in mS before a balloon may pop up
||   ||  switch on balloon evaluation
||        ||    read/write/edit file in binary mode
||       ||  MS-DOS: use bios calls for input characters
||                     prepend a Byte Order Mark to the file
||       ||    characters that may cause a line break
||     ||  which directory to start browsing in
||     ||     what to do when buffer is no longer in window
||     ||     whether the buffer shows up in the buffer list
||       ||     special type of buffer
||       ||    specifies how case of letters is changed
||        ||     list of directories searched with ":cd"
||                    key used to open the command-line window
||   ||    expression for character encoding conversion
||       ||    do C program indenting
||       ||   keys that trigger indent when 'cindent' is set
||    ||   how to do indenting when 'cindent' is set
||      ||   words where 'si' and 'cin' add an indent
||     ||     use the clipboard as the unnamed register
||     ||     number of lines to use for the command-line
||  ||    height of the command-line window
||       ||     number of columns in the display
||      ||    patterns that can start a comment line
|| ||    template for comments; used for fold marker
||    ||     behave Vi-compatible as much as possible
||      ||    specify how Insert mode completion works
||       ||     ask what to do about unsaved/read-only files
||       ||  get keys directly from console (MS-DOS only)
||    ||     make 'autoindent' use existing indent structure
||     ||    flags for Vi-compatible behavior
|| ||  how many components of the path to show
||     ||  command to execute cscope
|| ||  use quickfix window for cscope results
||     ||    use cscope for tag commands
|| ||  determines ":cstag" search order
|| || give messages when adding a cscope database
||                    set to "msg" to see all error messages
||        ||    pattern to be used to find a macro definition
||    ||   delete combining characters on their own
||    ||   list of file names used for keyword completion
||                     use diff mode for the current window
||      ||    expression used to obtain a diff file
||       ||    options for using diff mode
||       ||     enable the entering of digraphs in Insert mode
||     ||    list of directory names for the swap file
||       ||     list of flags for how to display text
||   ||    in which direction 'equalalways' works
||  ||     toggle flags of ":substitute" command
||      ||    encoding used internally
||     ||    write for last line in file
||   ||     windows are automatically made the same size
||      ||     external program to use for "=" command
||    ||     ring the bell for error messages
||     ||     name of the errorfile for the QuickFix mode
||   ||    description of the lines in the error file
||       ||     recognize function keys in Insert mode
||   ||     autocommand events that are ignored
||     ||     use spaces when is inserted
||          ||     read .vimrc and .exrc in the current directory
||  ||   file encoding for multi-byte text
|| ||  automatically detected character encodings
||    ||     file format used for file I/O
||   ||    automatically detected values for 'fileformat'
||      ||     type of file, used for autocommands
||     ||    characters to use for displaying special items
||         ||     Farsi keyboard mapping
||     ||    close a fold when the cursor leaves it
||    ||    width of the column used to indicate folds
||    ||    set to display all folds open
||      ||    expression used when 'foldmethod' is "expr"
||    ||    ignore lines when 'foldmethod' is "indent"
||     ||    close folds with a level higher than this
|| ||  'foldlevel' when starting to edit a file
||    ||    markers used when 'foldmethod' is "marker"
||    ||    folding type
||  ||    minimum number of lines for a fold to be closed
||   ||    maximum fold depth
||      ||    for which commands a fold will be opened
||      ||    expression used to display for a closed fold
|| ||     how automatic formatting is to be done
||     ||     name of external program used with "gq" command
||      ||     the ":substitute" flag 'g' is default on
||    ||    format of 'grepprg' output
||       ||     program to use for ":grep"
|'guicursor'|     ||    GUI: settings for cursor shape and blinking
||       ||    GUI: Name(s) of font(s) to be used
||    ||    GUI: Names of multi-byte fonts to be used
||   ||    list of font names for double-wide characters
||   ||    GUI: pixels room for window decorations
||    ||     GUI: Which components and options are used
||                   GUI: try to use a pseudo-tty for ":!" commands
||      ||     full path name of the main help file
||    ||     minimum height of a new help window
||      ||    preferred help languages
||        ||    don't unload buffer when it is ||ed
||     ||     sets highlighting mode for various occasions
||      ||    highlight matches with last search pattern
||       ||     number of command-lines that are remembered
||         ||     Hebrew keyboard mapping
||        ||    phonetic Hebrew keyboard mapping
||                     let Vim set the text of the window icon
||               string to use for the Vim icon text
||    ||     ignore case in search patterns
|| ||   key that activates the X input method
||     ||    use IM when starting to edit a command line
||     ||    do not use the IM in any mode
||      ||    use :lmap or IM in Insert mode
||      ||    use :lmap or IM when typing a search pattern
||       ||    pattern to be used to find an include file
||   ||   expression used to process an include line
||     ||     highlight match while typing search pattern
||    ||   expression used to obtain the indent of a line
||    ||   keys that trigger indenting with 'indentexpr'
||     ||    adjust case of match for keyword completion
||    ||     start the edit of a file in Insert mode
||       ||    characters included in file names and pathnames
||       ||    characters included in identifiers
||     ||    characters included in keywords
||       ||    printable characters
||    ||     two spaces after a period with a join command
||                      encryption key
||        ||    name of a keyboard mapping
||      ||     enable starting/stopping selection with keys
||    ||     program to use for the "K" command
||       ||   alphabetic characters for other language mode
||      ||     language to be used for the menus
||    ||     tells when last window has status lines
||    ||     don't redraw while executing macros
||     ||    wrap long lines at a blank
||                    number of lines in the display
||     ||    number of pixel lines to use between characters
||                     automatic indenting for Lisp
||     ||     words that change how lisp indenting works
||                     show and
||     ||    characters for displaying in list mode
||   ||    load plugin scripts when starting up
||                    changes special characters in search patterns
||        ||    name of the errorfile for ":make"
||       ||     program to use for the ":make" command
||    ||    pairs of characters that "%" can match
||     ||    tenths of a second to show matching paren
||  ||    maximum recursive depth for user functions
||   ||    maximum recursive depth for mapping
||        ||     maximum memory (in Kbyte) used for one buffer
||     ||    maximum memory (in Kbyte) used for all buffers
||     ||    maximum number of items in a menu
||      ||     recognize modelines at start or end of file
||     ||    number of lines checked for modelines
||    ||     changes to the text are not possible
||      ||    buffer has been modified
||                     pause listings when the whole screen is filled
||                    enable the use of mouse clicks
|'mousefocus'|    || keyboard focus follows the mouse
||     ||     hide mouse pointer while typing
||    || changes meaning of mouse buttons
||    || shape of the mouse pointer in different modes
||     || max time between mouse double-click
||     ||     number formats recognized for CTRL-A command
||        ||     print the line number in front of each line
||    ||    operating system-specific filetype information
||    ||   nroff macros that separate paragraphs
||                    allow pasting text
||   ||     key code that causes 'paste' to toggle
||     ||    expression used to patch a file
||     ||     keep the oldest version of a file
||          ||     list of directories searched with "gf" et.al.
|| ||    preserve the indent structure when reindenting
|| ||    height of the preview window
|| ||    identifies the preview window
|'printdevice'|   |'pdev'|   name of the printer to be used for :hardcopy
|| ||   encoding to be used for printing
||     ||  expression used to print PostScript for :hardcopy
||     ||    name of the font to be used for :hardcopy
||   || format of the header used for :hardcopy
||  ||   controls the format of :hardcopy output
||      ||     disallow writing the buffer
||                    allow mappings to work recursively
||                   threshold for reporting nr. of lines changed
|| ||     Win32: restore screen when exiting
||        ||     inserting characters will work backwards
||     ||     window is right-to-left oriented
||  ||    commands for which editing works right-to-left
||         ||     show cursor line and column in the status line
||   ||    custom format for the ruler
||   ||    list of directories used for runtime files
||        ||    lines to scroll with CTRL-U and CTRL-D
||    ||    scroll in window as other windows scroll
||    ||     minimum number of lines to scroll
||     ||     minimum nr. of lines above and below cursor
||     ||    how 'scrollbind' should behave
||      ||   nroff macros that separate sections
|'secure'|                   secure mode for reading .vimrc in current dir
||     ||    what type of selection to use
||    ||    when to use Select mode instead of Visual mode
|| ||  options for ||
||         ||     name of shell to use for external commands
||  ||   flag to shell to execute one command
||     ||     string to put output of ":make" in error file
||    ||    quote character(s) for around shell command
||    ||    string to put output of filter in a temp file
||    ||    use forward slash for shell file names
||     ||     Amiga: influences how to use a shell
||   ||    like 'shellquote', but include redirection
||    ||     round indent to multiple of shiftwidth
||    ||     number of spaces to use for (auto)indent step
||     ||    list of flags, reduce length of messages
||     ||     non-MS-DOS: Filenames assumed to be 8.3 chars
||     ||    string to use at the start of wrapped lines
||       ||     show (partial) command in status line
||   ||    show full tag pattern when completing tag
||     ||     briefly jump to matching bracket if insert one
||      ||    message on status line to show current mode
||    ||     minimum number of columns to scroll horizontal
|| ||   min. nr. of columns to left and right of cursor
||     ||    no ignore case when pattern has uppercase
||   ||     smart autoindenting for C programs
||      ||    use 'shiftwidth' when inserting
||   ||    number of spaces that uses while editing
||    ||     new window from split is below the current one
||    ||    new window is put right of the current one
||   ||    commands move cursor to first blank in line
||    ||    custom format for the status line
||      ||     suffixes that are ignored with multiple match
||   ||    suffixes added when searching for a file
||      ||    whether to use a swapfile for a buffer
||      ||    how to sync the swap file
||     ||    sets behavior when switching to another buffer
||        ||    syntax to be loaded for current buffer
||       ||     number of spaces that in file uses
||    ||    use binary searching in tags files
||     ||     number of significant characters for a tag
||   ||     file names in tag file are relative
||          ||    list of file names used by the tag command
||      ||   push tags onto the tag stack
||                     name of the terminal
||      ||  terminal takes care of bi-directionality
||  ||   character encoding used by the terminal
||                    shorten some messages
||      ||     obsolete, use 'fileformats'
||      ||     obsolete, use 'fileformat'
||     ||     maximum width of text that is being inserted
||     ||    list of thesaurus files for keyword completion
||       ||    tilde command "~" behaves like an operator
||       ||     time out on mappings and key codes
||    ||     time out time in milliseconds
||                    let Vim set the title of the window
||                 percentage of 'columns' used for window title
||                 old title, restored when exiting
||              string to use for the Vim window title
||       ||     GUI: which items to show in the toolbar
|| || size of the toolbar icons (for GTK 2 only)
||                 time out on mappings
||   ||    time out time for key codes in milliseconds
||    ||    use built-in termcap before external termcap
||       ||     indicates a fast terminal connection
||      ||   type of mouse codes generated
||     ||    maximum number of lines for a scroll
||       ||    alias for 'term'
||    ||     maximum number of changes that can be undone
||   ||     after this many characters flush swap file
||    ||     after this many milliseconds flush swap file
||       ||    give informative messages
||       ||   directory where to store files with :mkview
||   ||    specifies what to save for :mkview
||       ||     use .viminfo file upon startup and exiting
||   ||     when to use virtual editing
||    ||     use visual bell instead of beeping
||                     warn for shell command when buffer was changed
||   ||     for terminals that have weird inversion method
||     ||     allow specified keys to cross line boundaries
||      ||     command-line character for wildcard expansion
||     ||    like 'wildchar' but also works when mapped
||    ||    files matching these patterns are not completed
||      ||   use menu for command line completion
||      ||    mode for 'wildchar' command-line expansion
||    ||    when the windows system handles ALT keys
||     ||     minimum number of lines for the current window
||  ||    keep window height when opening/closing windows
||  ||    minimum number of lines for any window
||   ||    minimal number of columns for any window
||      ||    minimal number of columns for current window
||                     long lines wrap and continue on the next line
||    ||     chars from the right where wrapping starts
||      ||     searches wrap around the end of the file
||                    writing to a file is allowed
||      ||     write to file with no need for "!" override
||   ||     make a backup before overwriting a file
||    ||     delay this many msec for each char (for debug)
 
例如我的
set nu
set ts=4
set mouse=a
阅读(3407) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~