annotate runtime/ftplugin/registry.vim @ 26811:f0fdd992cfb9 v8.2.3934

patch 8.2.3934: repeating line comment is undesired for "O" command Commit: https://github.com/vim/vim/commit/5ea5f373729589acb38ce3f3ca338e8a6d398bdc Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 29 15:15:47 2021 +0000 patch 8.2.3934: repeating line comment is undesired for "O" command Problem: Repeating line comment is undesired for "O" command. Solution: Do not copy line comment leader for "O". (closes https://github.com/vim/vim/issues/9426)
author Bram Moolenaar <Bram@vim.org>
date Wed, 29 Dec 2021 16:30:03 +0100
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