view runtime/ftplugin/registry.vim @ 13858:245c053021d3 v8.0.1800

patch 8.0.1800: X11: getting color is slow commit https://github.com/vim/vim/commit/778df2a3cb8b58b07647952c708439acb0b06d17 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 6 19:19:36 2018 +0200 patch 8.0.1800: X11: getting color is slow Problem: X11: getting color is slow. Solution: Avoid using sprintf() and XParseColor(), put the RGB values in XColor directly.
author Christian Brabandt <cb@256bit.org>
date Sun, 06 May 2018 19:30:05 +0200
parents 350272cbf1fd
children 8ae680be2a51
line wrap: on
line source

" Vim filetype plugin file
" Language:         Windows Registry export with regedit (*.reg)
" Maintainer:       Cade Forester <ahx2323@gmail.com>
" Latest Revision:  2014-01-09

if exists("b:did_ftplugin")
  finish
endif
let b:did_ftplugin = 1

let s:cpo_save = &cpo
set cpo&vim

let b:undo_ftplugin =
  \ 'let b:browsefilter = "" | ' .
  \ 'setlocal ' .
  \    'comments< '.
  \    'commentstring< ' .
  \    'formatoptions< '


if has( 'gui_win32' )
\ && !exists( 'b:browsefilter' )
   let b:browsefilter =
      \ 'registry files (*.reg)\t*.reg\n' .
      \ 'All files (*.*)\t*.*\n'
endif

setlocal comments=:;
setlocal commentstring=;\ %s

setlocal formatoptions-=t
setlocal formatoptions+=croql

let &cpo = s:cpo_save
unlet s:cpo_save