@@ -676,8 +676,6 @@ A jump table for the options with a short description can be found at |Q_op|.
676
676
line.
677
677
When 'smartindent' or 'cindent' is on the indent is changed in
678
678
a different way.
679
- The 'autoindent' option is reset when the 'paste' option is set and
680
- restored when 'paste' is reset.
681
679
{small difference from Vi: After the indent is deleted when typing
682
680
<Esc> or <CR> , the cursor position when moving up or down is after the
683
681
deleted indent; Vi puts the cursor somewhere in the deleted indent}.
@@ -1266,7 +1264,6 @@ A jump table for the options with a short description can be found at |Q_op|.
1266
1264
See | C-indenting | .
1267
1265
When you don't like the way 'cindent' works, try the 'smartindent'
1268
1266
option or 'indentexpr' .
1269
- This option is not used when 'paste' is set.
1270
1267
1271
1268
*'cinkeys'* *'cink'*
1272
1269
'cinkeys' 'cink' string (default "0{,0} ,0),0],:,0#,!^F,o,O,e")
@@ -2246,8 +2243,6 @@ A jump table for the options with a short description can be found at |Q_op|.
2246
2243
<Tab> . Spaces are used in indents with the '>' and '<' commands and
2247
2244
when 'autoindent' is on. To insert a real tab when 'expandtab' is
2248
2245
on, use CTRL-V<Tab> . See also | :retab | and | ins-expandtab | .
2249
- This option is reset when the 'paste' option is set and restored when
2250
- the 'paste' option is reset.
2251
2246
2252
2247
*'exrc'* *'ex'* *'noexrc'* *'noex'*
2253
2248
'exrc' 'ex' boolean (default off)
@@ -2749,9 +2744,8 @@ A jump table for the options with a short description can be found at |Q_op|.
2749
2744
'formatoptions' 'fo' string (default: "tcqj")
2750
2745
local to buffer
2751
2746
This is a sequence of letters which describes how automatic
2752
- formatting is to be done. See | fo-table | . When the 'paste' option is
2753
- on, no formatting is done (like 'formatoptions' is empty). Commas can
2754
- be inserted for readability.
2747
+ formatting is to be done. See | fo-table | . Commas can be inserted for
2748
+ readability.
2755
2749
To avoid problems with flags that are added in the future, use the
2756
2750
"+=" and "-=" feature of ":set" | add-option-flags | .
2757
2751
@@ -3392,7 +3386,6 @@ A jump table for the options with a short description can be found at |Q_op|.
3392
3386
When this option is not empty, it overrules the 'cindent' and
3393
3387
'smartindent' indenting. When 'lisp' is set, this option is
3394
3388
is only used when 'lispoptions' contains "expr:1".
3395
- When 'paste' is set this option is not used for indenting.
3396
3389
The expression is evaluated with | v:lnum | set to the line number for
3397
3390
which the indent is to be computed. The cursor is also in this line
3398
3391
when the expression is evaluated (but it may be moved around).
@@ -3761,7 +3754,6 @@ A jump table for the options with a short description can be found at |Q_op|.
3761
3754
The '-' character is included in keyword characters. Redefines the
3762
3755
"=" operator to use this same indentation algorithm rather than
3763
3756
calling an external program if 'equalprg' is empty.
3764
- This option is not used when 'paste' is set.
3765
3757
3766
3758
*'lispoptions'* *'lop'*
3767
3759
'lispoptions' 'lop' string (default "")
@@ -4474,77 +4466,6 @@ A jump table for the options with a short description can be found at |Q_op|.
4474
4466
Specifies the nroff macros that separate paragraphs. These are pairs
4475
4467
of two letters (see | object-motions | ).
4476
4468
4477
- *'paste'* *'nopaste'*
4478
- 'paste' boolean (default off)
4479
- global
4480
- This option is obsolete; | bracketed-paste-mode | is built-in.
4481
-
4482
- Put Vim in Paste mode. This is useful if you want to cut or copy
4483
- some text from one window and paste it in Vim. This will avoid
4484
- unexpected effects.
4485
- Setting this option is useful when using Vim in a terminal, where Vim
4486
- cannot distinguish between typed text and pasted text. In the GUI, Vim
4487
- knows about pasting and will mostly do the right thing without 'paste'
4488
- being set. The same is true for a terminal where Vim handles the
4489
- mouse clicks itself.
4490
- This option is reset when starting the GUI. Thus if you set it in
4491
- your vimrc it will work in a terminal, but not in the GUI. Setting
4492
- 'paste' in the GUI has side effects: e.g., the Paste toolbar button
4493
- will no longer work in Insert mode, because it uses a mapping.
4494
- When the 'paste' option is switched on (also when it was already on):
4495
- - mapping in Insert mode and Command-line mode is disabled
4496
- - abbreviations are disabled
4497
- - 'autoindent' is reset
4498
- - 'expandtab' is reset
4499
- - 'hkmap' is reset
4500
- - 'revins' is reset
4501
- - 'ruler' is reset
4502
- - 'showmatch' is reset
4503
- - 'smarttab' is reset
4504
- - 'softtabstop' is set to 0
4505
- - 'textwidth' is set to 0
4506
- - 'wrapmargin' is set to 0
4507
- - 'varsofttabstop' is made empty
4508
- These options keep their value, but their effect is disabled:
4509
- - 'cindent'
4510
- - 'formatoptions' is used like it is empty
4511
- - 'indentexpr'
4512
- - 'lisp'
4513
- - 'smartindent'
4514
- NOTE: When you start editing another file while the 'paste' option is
4515
- on, settings from the modelines or autocommands may change the
4516
- settings again, causing trouble when pasting text. You might want to
4517
- set the 'paste' option again.
4518
- When the 'paste' option is reset the mentioned options are restored to
4519
- the value before the moment 'paste' was switched from off to on.
4520
- Resetting 'paste' before ever setting it does not have any effect.
4521
- Since mapping doesn't work while 'paste' is active, you need to use
4522
- the 'pastetoggle' option to toggle the 'paste' option with some key.
4523
-
4524
- *'pastetoggle'* *'pt'*
4525
- 'pastetoggle' 'pt' string (default "")
4526
- global
4527
- When non-empty, specifies the key sequence that toggles the 'paste'
4528
- option. This is like specifying a mapping: >
4529
- :map {keys} :set invpaste<CR>
4530
- < Where {keys} is the value of 'pastetoggle' .
4531
- The difference is that it will work even when 'paste' is set.
4532
- 'pastetoggle' works in Insert mode and Normal mode, but not in
4533
- Command-line mode.
4534
- Mappings are checked first, thus overrule 'pastetoggle' . However,
4535
- when 'paste' is on mappings are ignored in Insert mode, thus you can do
4536
- this: >
4537
- :map <F10> :set paste<CR>
4538
- :map <F11> :set nopaste<CR>
4539
- :imap <F10> <C-O>:set paste<CR>
4540
- :imap <F11> <nop>
4541
- :set pastetoggle=<F11>
4542
- < This will make <F10> start paste mode and <F11> stop paste mode.
4543
- Note that typing <F10> in paste mode inserts "<F10> ", since in paste
4544
- mode everything is inserted literally, except the 'pastetoggle' key
4545
- sequence.
4546
- When the value has several bytes 'ttimeoutlen' applies.
4547
-
4548
4469
*'pex'* *'patchexpr'*
4549
4470
'patchexpr' 'pex' string (default "")
4550
4471
global
@@ -4827,8 +4748,6 @@ A jump table for the options with a short description can be found at |Q_op|.
4827
4748
Inserting characters in Insert mode will work backwards. See "typing
4828
4749
backwards" | ins-reverse | . This option can be toggled with the CTRL-_
4829
4750
command in Insert mode, when 'allowrevins' is set.
4830
- This option is reset when 'paste' is set and restored when 'paste' is
4831
- reset.
4832
4751
4833
4752
*'rightleft'* *'rl'* *'norightleft'* *'norl'*
4834
4753
'rightleft' 'rl' boolean (default off)
@@ -4877,8 +4796,6 @@ A jump table for the options with a short description can be found at |Q_op|.
4877
4796
separated with a dash.
4878
4797
For an empty line "0-1" is shown.
4879
4798
For an empty buffer the line number will also be zero: "0,0-1".
4880
- This option is reset when 'paste' is set and restored when 'paste' is
4881
- reset.
4882
4799
If you don't want to see the ruler all the time but want to know where
4883
4800
you are, use "g CTRL-G " | g_CTRL-G | .
4884
4801
@@ -5610,8 +5527,6 @@ A jump table for the options with a short description can be found at |Q_op|.
5610
5527
show the match can be set with 'matchtime' .
5611
5528
A Beep is given if there is no match (no matter if the match can be
5612
5529
seen or not).
5613
- This option is reset when 'paste' is set and restored when 'paste' is
5614
- reset.
5615
5530
When the 'm' flag is not included in 'cpoptions' , typing a character
5616
5531
will immediately move the cursor back to where it belongs.
5617
5532
See the "sm" field in 'guicursor' for setting the cursor shape and
@@ -5733,8 +5648,6 @@ A jump table for the options with a short description can be found at |Q_op|.
5733
5648
mapping: ":inoremap # X^H#", where ^H is entered with CTRL-V CTRL-H .
5734
5649
When using the ">>" command, lines starting with '#' are not shifted
5735
5650
right.
5736
- This option is reset when 'paste' is set and restored when 'paste' is
5737
- reset.
5738
5651
5739
5652
*'smarttab'* *'sta'* *'nosmarttab'* *'nosta'*
5740
5653
'smarttab' 'sta' boolean (default on)
@@ -5749,8 +5662,6 @@ A jump table for the options with a short description can be found at |Q_op|.
5749
5662
What gets inserted (a <Tab> or spaces) depends on the 'expandtab'
5750
5663
option. Also see | ins-expandtab | . When 'expandtab' is not set, the
5751
5664
number of spaces is minimized by using <Tab> s.
5752
- This option is reset when 'paste' is set and restored when 'paste' is
5753
- reset.
5754
5665
5755
5666
*'softtabstop'* *'sts'*
5756
5667
'softtabstop' 'sts' number (default 0)
@@ -5763,8 +5674,6 @@ A jump table for the options with a short description can be found at |Q_op|.
5763
5674
commands like "x" still work on the actual characters.
5764
5675
When 'sts' is zero, this feature is off.
5765
5676
When 'sts' is negative, the value of 'shiftwidth' is used.
5766
- 'softtabstop' is set to 0 when the 'paste' option is set and restored
5767
- when 'paste' is reset.
5768
5677
See also | ins-expandtab | . When 'expandtab' is not set, the number of
5769
5678
spaces is minimized by using <Tab> s.
5770
5679
The 'L' flag in 'cpoptions' changes how tabs are used when 'list' is
@@ -6579,8 +6488,6 @@ A jump table for the options with a short description can be found at |Q_op|.
6579
6488
Maximum width of text that is being inserted. A longer line will be
6580
6489
broken after white space to get this width. A zero value disables
6581
6490
this.
6582
- 'textwidth' is set to 0 when the 'paste' option is set and restored
6583
- when 'paste' is reset.
6584
6491
When 'textwidth' is zero, 'wrapmargin' may be used. See also
6585
6492
'formatoptions' and | ins-textwidth | .
6586
6493
When 'formatexpr' is set it will be used to break the line.
0 commit comments