view runtime/ftplugin/registry.vim @ 15458:0f8065d7d68c v8.1.0737

patch 8.1.0737: compiler warning for uninitialized variable commit https://github.com/vim/vim/commit/e519dfd7139d504ada44031a986482ac4fb1229a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 13 15:42:02 2019 +0100 patch 8.1.0737: compiler warning for uninitialized variable Problem: Compiler warning for uninitialized variable. Solution: Add initialization. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Jan 2019 15:45:07 +0100
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