From 3e29d5a95693a5ffd5e78622f560f415743b0736 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 10 Nov 2017 21:48:23 +1300 Subject: Adjust some whitespace and comment layout --- vim/config/windows.vim | 1 + 1 file changed, 1 insertion(+) (limited to 'vim/config/windows.vim') diff --git a/vim/config/windows.vim b/vim/config/windows.vim index a54b8997..a0492c76 100644 --- a/vim/config/windows.vim +++ b/vim/config/windows.vim @@ -24,4 +24,5 @@ if has('windows') if has('folding') let &fillchars = 'diff: ,fold: ,vert: ' endif + endif -- cgit v1.2.3 From 8b79ec9365491f8fb2bd48452b6aca68d2b673d2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 10 Nov 2017 21:54:42 +1300 Subject: Use exists+ test rather than exists& From :help hidden-options: >Not all options are supported in all versions. This depends on the >supported features and sometimes on the system. A remark about this is >in curly braces below. When an option is not supported it may still be >set without getting an error, this is called a hidden option. You can't >get the value of a hidden option though, it is not stored. > >To test if option "foo" can be used with ":set" use something like this: > if exists('&foo') >This also returns true for a hidden option. To test if option "foo" is >really supported use something like this: > if exists('+foo') --- vim/config/windows.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vim/config/windows.vim') diff --git a/vim/config/windows.vim b/vim/config/windows.vim index a0492c76..88b38f8c 100644 --- a/vim/config/windows.vim +++ b/vim/config/windows.vim @@ -16,7 +16,7 @@ if has('windows') endif " Only show the tab bar if there's more than one tab - if exists('&showtabline') + if exists('+showtabline') set showtabline=1 endif -- cgit v1.2.3