annotate runtime/ftplugin/registry.vim @ 14214:68166b841ee9 v8.1.0124

patch 8.1.0124: has('vcon') returns true even for non-win32 terminal commit https://github.com/vim/vim/commit/d8b37a53bd29cab78c6997aa75207385213f23e2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 28 15:50:28 2018 +0200 patch 8.1.0124: has('vcon') returns true even for non-win32 terminal Problem: has('vcon') returns true even for non-win32 terminal. Solution: Check the terminal type. (Nobuhiro Takasaki, closes https://github.com/vim/vim/issues/3106)
author Christian Brabandt <cb@256bit.org>
date Thu, 28 Jun 2018 16:00:07 +0200
parents 350272cbf1fd
children 8ae680be2a51
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5618
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim filetype plugin file
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 " Language: Windows Registry export with regedit (*.reg)
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 " Maintainer: Cade Forester <ahx2323@gmail.com>
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 " Latest Revision: 2014-01-09
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 if exists("b:did_ftplugin")
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 finish
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 endif
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 let b:did_ftplugin = 1
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 let s:cpo_save = &cpo
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 set cpo&vim
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 let b:undo_ftplugin =
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 \ 'let b:browsefilter = "" | ' .
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 \ 'setlocal ' .
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 \ 'comments< '.
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 \ 'commentstring< ' .
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 \ 'formatoptions< '
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 if has( 'gui_win32' )
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 \ && !exists( 'b:browsefilter' )
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 let b:browsefilter =
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 \ 'registry files (*.reg)\t*.reg\n' .
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 \ 'All files (*.*)\t*.*\n'
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 endif
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 setlocal comments=:;
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 setlocal commentstring=;\ %s
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 setlocal formatoptions-=t
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 setlocal formatoptions+=croql
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 let &cpo = s:cpo_save
350272cbf1fd Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 unlet s:cpo_save