diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2023-11-29 22:39:54 +0000 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2023-11-29 22:39:54 +0000 |
commit | 21cb7d04c387e4198ca8098a884c78b56ffcf4c2 (patch) | |
tree | 84fe5690df1551f0bb2bdfe1a13aacd29ebc1de7 /runtime/optwin.vim | |
parent | d9c904f85a23a496df4eb6be42aa43f007b22d50 (diff) | |
parent | 4a8bf24ac690004aedf5540fa440e788459e5e34 (diff) | |
download | rneovim-colorcolchar.tar.gz rneovim-colorcolchar.tar.bz2 rneovim-colorcolchar.zip |
Merge remote-tracking branch 'upstream/master' into colorcolcharcolorcolchar
Diffstat (limited to 'runtime/optwin.vim')
-rw-r--r-- | runtime/optwin.vim | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/runtime/optwin.vim b/runtime/optwin.vim index 200254321e..fc60f70335 100644 --- a/runtime/optwin.vim +++ b/runtime/optwin.vim @@ -1,7 +1,8 @@ " These commands create the option window. " -" Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2022 Dec 16 +" Maintainer: The Vim Project <https://github.com/vim/vim> +" Last Change: 2023 Aug 31 +" Former Maintainer: Bram Moolenaar <Bram@vim.org> " If there already is an option window, jump to that one. let buf = bufnr('option-window') @@ -106,11 +107,7 @@ func <SID>Update(lnum, line, local, thiswin) else let name = substitute(a:line, '^ \tset \(no\)\=\([a-z]*\).*', '\2', "") endif - if name == "pt" && &pt =~ "\x80" - let val = <SID>PTvalue() - else - let val = escape(eval('&' . name), " \t\\\"|") - endif + let val = escape(eval('&' . name), " \t\\\"|") if a:local exe a:thiswin . "wincmd w" endif @@ -211,14 +208,6 @@ func <SID>Header(text) let s:lnum = s:lnum + 1 endfunc -" Get the value of 'pastetoggle'. It could be a special key. -func <SID>PTvalue() - redir @a - silent set pt - redir END - return substitute(@a, '[^=]*=\(.*\)', '\1', "") -endfunc - " Restore the previous value of 'cpoptions' here, it's used below. let &cpo = s:cpo_save @@ -232,12 +221,6 @@ call <SID>AddOption("cpoptions", gettext("list of flags to specify Vi compatibil call <SID>OptionG("cpo", &cpo) call <SID>AddOption("paste", gettext("paste mode, insert typed text literally")) call <SID>BinOptionG("paste", &paste) -call <SID>AddOption("pastetoggle", gettext("key sequence to toggle paste mode")) -if &pt =~ "\x80" - call append("$", " \tset pt=" . <SID>PTvalue()) -else - call <SID>OptionG("pt", &pt) -endif call <SID>AddOption("runtimepath", gettext("list of directories used for runtime files and plugins")) call <SID>OptionG("rtp", &rtp) call <SID>AddOption("packpath", gettext("list of directories used for plugin packages")) @@ -323,6 +306,9 @@ call <SID>Header(gettext("displaying text")) call <SID>AddOption("scroll", gettext("number of lines to scroll for CTRL-U and CTRL-D")) call append("$", "\t" .. s:local_to_window) call <SID>OptionL("scr") +call <SID>AddOption("smoothscroll", gettext("scroll by screen line")) +call append("$", "\t" .. s:local_to_window) +call <SID>BinOptionL("sms") call <SID>AddOption("scrolloff", gettext("number of screen lines to show around the cursor")) call append("$", " \tset so=" . &so) call <SID>AddOption("wrap", gettext("long lines wrap")) @@ -494,7 +480,7 @@ call <SID>OptionG("swb", &swb) call <SID>AddOption("splitbelow", gettext("a new window is put below the current one")) call <SID>BinOptionG("sb", &sb) call <SID>AddOption("splitkeep", gettext("determines scroll behavior for split windows")) -call <SID>BinOptionG("spk", &spk) +call <SID>OptionG("spk", &spk) call <SID>AddOption("splitright", gettext("a new window is put right of the current one")) call <SID>BinOptionG("spr", &spr) call <SID>AddOption("scrollbind", gettext("this window scrolls together with other bound windows")) |