" along with this file. If not, see <http://www.gnu.org/licenses/>.
+" HELPER FUNCTIONS
+
+if has('eval')
+" Check if the given syntax group is available. Thanks to bairui in #vim on
+" Freenode (2012-02-19 01:15 CET) for the try/catch silent highlight idea.
+ function! s:HasSyntaxGroup(group)
+ try
+ execute 'silent highlight ' . a:group
+ " \a = [A-Za-z]
+ catch /^Vim\%((\a\+)\)\=:E411/ " 'highlight group not found'
+ return 0
+ endtry
+ return 1
+ endfunction
+
+" Check if the given Vim version and patch is available.
+ function! s:HasVersionAndPatch(version, patch)
+ return v:version > a:version
+ \ || (v:version == a:version && has('patch' . a:patch))
+ endfunction
+endif
+
+
" EDITOR SETTINGS
" Save 'runtimepath' in case it was changed by the system's configuration
endif
-" HELPER FUNCTIONS
-
-if has('eval')
-" Check if the given syntax group is available. Thanks to bairui in #vim on
-" Freenode (2012-02-19 01:15 CET) for the try/catch silent highlight idea.
- function! s:HasSyntaxGroup(group)
- try
- execute 'silent highlight ' . a:group
- " \a = [A-Za-z]
- catch /^Vim\%((\a\+)\)\=:E411/ " 'highlight group not found'
- return 0
- endtry
- return 1
- endfunction
-
-" Check if the given Vim version and patch is available.
- function! s:HasVersionAndPatch(version, patch)
- return v:version > a:version
- \ || (v:version == a:version && has('patch' . a:patch))
- endfunction
-endif
-
-
" TERMINAL SETTINGS
" Also enable fast terminal mode in GNU screen and tmux, but not for SSH