Skip to content

Commit

Permalink
update defaults.vim
Browse files Browse the repository at this point in the history
- Add "!" flag to guioptions on MS-Windows
- remove "i" flag from 'complete'
  • Loading branch information
chrisbra committed May 31, 2024
1 parent 393708c commit 490740d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 10 additions & 1 deletion runtime/defaults.vim
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,20 @@ endif
" confusing.
set nrformats-=octal

" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries.
" For Win32 GUI:
" remove 't' flag from 'guioptions': no tearoff menu entries.
" add '!' flag to guioptions so external commands are run in a terminal
if has('win32')
set guioptions-=t
if has("terminal")
set guioptions+=!
endif
endif

" do not include 'i' in complete option, it may slow down Vim because it
" has to scan all included files
set complete-=i

" Don't use Q for Ex mode, use it for formatting. Except for Select mode.
" Revert with ":unmap Q".
map Q gq
Expand Down
5 changes: 3 additions & 2 deletions runtime/doc/options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2042,7 +2042,8 @@ A jump table for the options with a short description can be found at |Q_op|.
'writebackup' + on or off depends on the |+writebackup| feature

*'complete'* *'cpt'* *E535*
'complete' 'cpt' string (default: ".,w,b,u,t,i")
'complete' 'cpt' string (default: ".,w,b,u,t,i"
"i" removed in |defaults.vim|)
local to buffer
This option specifies how keyword completion |ins-completion| works
when CTRL-P or CTRL-N are used. It is also used for whole-line
Expand Down Expand Up @@ -4025,7 +4026,7 @@ A jump table for the options with a short description can be found at |Q_op|.

*'guioptions'* *'go'*
'guioptions' 'go' string (default "egmrLtT" (MS-Windows,
"t" is removed in |defaults.vim|),
"egimrLT!" in |defaults.vim|),
"aegimrLtT" (GTK and Motif),
)
global
Expand Down

0 comments on commit 490740d

Please sign in to comment.