comparison runtime/doc/options.txt @ 14175:2ad722003b36 v8.1.0105

patch 8.1.0105: all tab stops are the same commit https://github.com/vim/vim/commit/04958cbaf25eea27eceedaa987adfb354ad5f7fd Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 23 19:23:02 2018 +0200 patch 8.1.0105: all tab stops are the same Problem: All tab stops are the same. Solution: Add the variable tabstop feature. (Christian Brabandt, closes #2711)
author Christian Brabandt <cb@256bit.org>
date Sat, 23 Jun 2018 19:30:07 +0200
parents dc67449d648c
children 4543777545a3
comparison
equal deleted inserted replaced
14174:d36eedd19166 14175:2ad722003b36
7170 spaces is minimized by using <Tab>s. 7170 spaces is minimized by using <Tab>s.
7171 The 'L' flag in 'cpoptions' changes how tabs are used when 'list' is 7171 The 'L' flag in 'cpoptions' changes how tabs are used when 'list' is
7172 set. 7172 set.
7173 NOTE: This option is set to 0 when 'compatible' is set. 7173 NOTE: This option is set to 0 when 'compatible' is set.
7174 7174
7175 If Vim is compiled with the |+vartabs| feature then the value of
7176 'softtabstop' will be ignored if |'varsofttabstop'| is set to
7177 anything other than an empty string.
7178
7175 *'spell'* *'nospell'* 7179 *'spell'* *'nospell'*
7176 'spell' boolean (default off) 7180 'spell' boolean (default off)
7177 local to window 7181 local to window
7178 {not in Vi} 7182 {not in Vi}
7179 {not available when compiled without the |+syntax| 7183 {not available when compiled without the |+syntax|
7721 for any tabstop setting that people use. It might be nice to have 7725 for any tabstop setting that people use. It might be nice to have
7722 tabs after the first non-blank inserted as spaces if you do this 7726 tabs after the first non-blank inserted as spaces if you do this
7723 though. Otherwise aligned comments will be wrong when 'tabstop' is 7727 though. Otherwise aligned comments will be wrong when 'tabstop' is
7724 changed. 7728 changed.
7725 7729
7730 If Vim is compiled with the |+vartabs| feature then the value of
7731 'tabstop' will be ignored if |'vartabstop'| is set to anything other
7732 than an empty string.
7733
7726 *'tagbsearch'* *'tbs'* *'notagbsearch'* *'notbs'* 7734 *'tagbsearch'* *'tbs'* *'notagbsearch'* *'notbs'*
7727 'tagbsearch' 'tbs' boolean (default on) 7735 'tagbsearch' 'tbs' boolean (default on)
7728 global 7736 global
7729 {not in Vi} 7737 {not in Vi}
7730 When searching for a tag (e.g., for the |:ta| command), Vim can either 7738 When searching for a tag (e.g., for the |:ta| command), Vim can either
8465 global 8473 global
8466 {not in Vi} 8474 {not in Vi}
8467 If this many milliseconds nothing is typed the swap file will be 8475 If this many milliseconds nothing is typed the swap file will be
8468 written to disk (see |crash-recovery|). Also used for the 8476 written to disk (see |crash-recovery|). Also used for the
8469 |CursorHold| autocommand event. 8477 |CursorHold| autocommand event.
8478
8479 *'varsofttabstop'* *'vsts'*
8480 'varsofttabstop' 'vsts' string (default "")
8481 local to buffer
8482 {only available when compiled with the |+vartabs|
8483 feature}
8484 {not in Vi}
8485 A list of the number of spaces that a <Tab> counts for while editing,
8486 such as inserting a <Tab> or using <BS>. It "feels" like variable-
8487 width <Tab>s are being inserted, while in fact a mixture of spaces
8488 and <Tab>s is used. Tab widths are separated with commas, with the
8489 final value applying to all subsequent tabs.
8490
8491 For example, when editing assembly language files where statements
8492 start in the 8th column and comments in the 40th, it may be useful
8493 to use the following: >
8494 :set varsofttabstop=8,32,8
8495 < This will set soft tabstops at the 8th and 40th columns, and at every
8496 8th column thereafter.
8497
8498 Note that the value of |'softtabstop'| will be ignored while
8499 'varsofttabstop' is set.
8500
8501 *'vartabstop'* *'vts'*
8502 'vartabstop' 'vts' string (default "")
8503 local to buffer
8504 {only available when compiled with the |+vartabs|
8505 feature}
8506 {not in Vi}
8507 A list of the number of spaces that a <Tab> in the file counts for,
8508 separated by commas. Each value corresponds to one tab, with the
8509 final value applying to all subsequent tabs. For example: >
8510 :set vartabstop=4,20,10,8
8511 < This will make the first tab 4 spaces wide, the second 20 spaces,
8512 the third 10 spaces, and all following tabs 8 spaces.
8513
8514 Note that the value of |'tabstop'| will be ignored while 'vartabstop'
8515 is set.
8470 8516
8471 *'verbose'* *'vbs'* 8517 *'verbose'* *'vbs'*
8472 'verbose' 'vbs' number (default 0) 8518 'verbose' 'vbs' number (default 0)
8473 global 8519 global
8474 {not in Vi, although some versions have a boolean 8520 {not in Vi, although some versions have a boolean