Mercurial > vim
view runtime/ftplugin/msmessages.vim @ 7465:71e2aca45b81 v7.4.1035
commit https://github.com/vim/vim/commit/a3306958dcb9aadff1e1e8521d908d86b10ac99a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 2 21:41:06 2016 +0100
patch 7.4.1035
Problem: An Ex range gets adjusted for folded lines even when the range is
not using line numbers.
Solution: Only adjust line numbers for folding. (Christian Brabandt)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 02 Jan 2016 21:45:04 +0100 |
parents | 73fe8baea242 |
children | 8ae680be2a51 |
line wrap: on
line source
" Vim filetype plugin file " Language: MS Message files (*.mc) " Maintainer: Kevin Locke <kwl7@cornell.edu> " Last Change: 2008 April 09 " Location: http://kevinlocke.name/programs/vim/syntax/msmessages.vim " Based on c.vim " Only do this when not done yet for this buffer if exists("b:did_ftplugin") finish endif " Don't load another plugin for this buffer let b:did_ftplugin = 1 " Using line continuation here. let s:cpo_save = &cpo set cpo-=C let b:undo_ftplugin = "setl fo< com< cms< | unlet! b:browsefilter" " Set 'formatoptions' to format all lines, including comments setlocal fo-=ct fo+=roql " Comments includes both ";" which describes a "comment" which will be " converted to C code and variants on "; //" which will remain comments " in the generated C code setlocal comments=:;,:;//,:;\ //,s:;\ /*\ ,m:;\ \ *\ ,e:;\ \ */ setlocal commentstring=;\ //\ %s " Win32 can filter files in the browse dialog if has("gui_win32") && !exists("b:browsefilter") let b:browsefilter = "MS Message Files (*.mc)\t*.mc\n" . \ "Resource Files (*.rc)\t*.rc\n" . \ "All Files (*.*)\t*.*\n" endif let &cpo = s:cpo_save unlet s:cpo_save