Skip to content

Commit

Permalink
Use v:true and v:false instead of 1 and 0 for config.
Browse files Browse the repository at this point in the history
This way, it's clearer that these options are not arbitrary integers.
  • Loading branch information
dstein64 committed Jun 3, 2023
1 parent 6638aad commit fd468f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions doc/win.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ The following variables can be used to customize the behavior of |vim-win|.
*g:win_resize_width* `2`
Number of columns to shift when
resizing
*g:win_disable_version_warning* `0`
Set to 1 to disable the version
warning
*g:win_disable_version_warning* |v:false|
Set to |v:true| to disable the
version warning
*g:win_ext_command_map* `{}`
A dictionary for extending
|vim-win|
Expand Down
3 changes: 2 additions & 1 deletion plugin/win.vim
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ endif

let g:win_resize_height = get(g:, 'win_resize_height', 2)
let g:win_resize_width = get(g:, 'win_resize_width', 2)
let g:win_disable_version_warning = get(g:, 'win_disable_version_warning', 0)
let g:win_disable_version_warning =
\ get(g:, 'win_disable_version_warning', v:false)
" g:win_ext_command_map allows additional commands to be added to win.vim. It
" maps command keys to command strings. These will override the built-in
" vim-win commands that use the same keys, except for 1) <esc>, which is used
Expand Down

0 comments on commit fd468f1

Please sign in to comment.