|
1 |
| -*options.txt* For Vim version 9.0. Last change: 2023 May 04 |
| 1 | +*options.txt* For Vim version 9.0. Last change: 2023 Jun 02 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -1813,7 +1813,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
1813 | 1813 | The screen column can be an absolute number, or a number preceded with
|
1814 | 1814 | '+' or '-', which is added to or subtracted from 'textwidth'. >
|
1815 | 1815 |
|
1816 |
| - :set cc=+1 " highlight column after 'textwidth' |
| 1816 | + :set cc=+1 " highlight column after 'textwidth' |
1817 | 1817 | :set cc=+1,+2,+3 " highlight three columns after 'textwidth'
|
1818 | 1818 | :hi ColorColumn ctermbg=lightgrey guibg=lightgrey
|
1819 | 1819 | <
|
@@ -7135,7 +7135,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
7135 | 7135 | local to buffer
|
7136 | 7136 | Number of spaces to use for each step of (auto)indent. Used for
|
7137 | 7137 | |'cindent'|, |>>|, |<<|, etc.
|
7138 |
| - When zero the 'ts' value will be used. Use the |shiftwidth()| |
| 7138 | + When zero the 'tabstop' value will be used. Use the |shiftwidth()| |
7139 | 7139 | function to get the effective shiftwidth value.
|
7140 | 7140 |
|
7141 | 7141 | *'shortmess'* *'shm'*
|
@@ -7434,6 +7434,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
7434 | 7434 | line in the window wraps part of it may not be visible, as if it is
|
7435 | 7435 | above the window. "<<<" is displayed at the start of the first line,
|
7436 | 7436 | highlighted with |hl-NonText|.
|
| 7437 | + You may also want to add "lastline" to the 'display' option to show as |
| 7438 | + much of the last line as possible. |
7437 | 7439 | NOTE: only partly implemented, currently works with CTRL-E, CTRL-Y
|
7438 | 7440 | and scrolling with the mouse.
|
7439 | 7441 |
|
@@ -8044,13 +8046,25 @@ A jump table for the options with a short description can be found at |Q_op|.
|
8044 | 8046 | (or 3 or whatever you prefer) and use 'noexpandtab'. Then Vim
|
8045 | 8047 | will use a mix of tabs and spaces, but typing <Tab> and <BS> will
|
8046 | 8048 | behave like a tab appears every 4 (or 3) characters.
|
8047 |
| - 2. Set 'tabstop' and 'shiftwidth' to whatever you prefer and use |
| 8049 | + This is the recommended way, the file will look the same with other |
| 8050 | + tools and when listing it in a terminal. |
| 8051 | + 2. Set 'softtabstop' and 'shiftwidth' to whatever you prefer and use |
| 8052 | + 'expandtab'. This way you will always insert spaces. The |
| 8053 | + formatting will never be messed up when 'tabstop' is changed (leave |
| 8054 | + it at 8 just in case). The file will be a bit larger. |
| 8055 | + You do need to check if no Tabs exist in the file. You can get rid |
| 8056 | + of them by first setting 'expandtab' and using `%retab!`, making |
| 8057 | + sure the value of 'tabstop' is set correctly. |
| 8058 | + 3. Set 'tabstop' and 'shiftwidth' to whatever you prefer and use |
8048 | 8059 | 'expandtab'. This way you will always insert spaces. The
|
8049 | 8060 | formatting will never be messed up when 'tabstop' is changed.
|
8050 |
| - 3. Set 'tabstop' and 'shiftwidth' to whatever you prefer and use a |
| 8061 | + You do need to check if no Tabs exist in the file, just like in the |
| 8062 | + item just above. |
| 8063 | + 4. Set 'tabstop' and 'shiftwidth' to whatever you prefer and use a |
8051 | 8064 | |modeline| to set these values when editing the file again. Only
|
8052 |
| - works when using Vim to edit the file. |
8053 |
| - 4. Always set 'tabstop' and 'shiftwidth' to the same value, and |
| 8065 | + works when using Vim to edit the file, other tools assume a tabstop |
| 8066 | + is worth 8 spaces. |
| 8067 | + 5. Always set 'tabstop' and 'shiftwidth' to the same value, and |
8054 | 8068 | 'noexpandtab'. This should then work (for initial indents only)
|
8055 | 8069 | for any tabstop setting that people use. It might be nice to have
|
8056 | 8070 | tabs after the first non-blank inserted as spaces if you do this
|
|
0 commit comments