Mercurial > vim
annotate runtime/ftplugin/registry.vim @ 32513:57e589d18e7d v9.0.1588
patch 9.0.1588: Incsearch not triggered when pasting clipboard register
Commit: https://github.com/vim/vim/commit/9cf6ab133227ac7e9169941752293bb7178d8e38
Author: K.Takata <kentkt@csc.jp>
Date: Mon May 29 16:08:08 2023 +0100
patch 9.0.1588: Incsearch not triggered when pasting clipboard register
Problem: Incsearch not triggered when pasting clipboard register on the
command line.
Solution: Also set "literally" when using a clipboard register. (Ken Takata,
closes #12460)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 May 2023 17:15:04 +0200 |
parents | 350272cbf1fd |
children | 8ae680be2a51 |
rev | line source |
---|---|
5618 | 1 " Vim filetype plugin file |
2 " Language: Windows Registry export with regedit (*.reg) | |
3 " Maintainer: Cade Forester <ahx2323@gmail.com> | |
4 " Latest Revision: 2014-01-09 | |
5 | |
6 if exists("b:did_ftplugin") | |
7 finish | |
8 endif | |
9 let b:did_ftplugin = 1 | |
10 | |
11 let s:cpo_save = &cpo | |
12 set cpo&vim | |
13 | |
14 let b:undo_ftplugin = | |
15 \ 'let b:browsefilter = "" | ' . | |
16 \ 'setlocal ' . | |
17 \ 'comments< '. | |
18 \ 'commentstring< ' . | |
19 \ 'formatoptions< ' | |
20 | |
21 | |
22 if has( 'gui_win32' ) | |
23 \ && !exists( 'b:browsefilter' ) | |
24 let b:browsefilter = | |
25 \ 'registry files (*.reg)\t*.reg\n' . | |
26 \ 'All files (*.*)\t*.*\n' | |
27 endif | |
28 | |
29 setlocal comments=:; | |
30 setlocal commentstring=;\ %s | |
31 | |
32 setlocal formatoptions-=t | |
33 setlocal formatoptions+=croql | |
34 | |
35 let &cpo = s:cpo_save | |
36 unlet s:cpo_save |