view runtime/ftplugin/xdefaults.vim @ 15127:31a0127813cb v8.1.0574

patch 8.1.0574: 'commentstring' not used when adding fold marker in C commit https://github.com/vim/vim/commit/4af7259b2b35e85c590d54908fcd248d2c733be8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 9 15:00:52 2018 +0100 patch 8.1.0574: 'commentstring' not used when adding fold marker in C Problem: 'commentstring' not used when adding fold marker in C. Solution: Require white space before middle comment part. (mostly by Hirohito Higashi)
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 Dec 2018 15:15:06 +0100
parents 1218c5353e2b
children 7c7432a53a6c
line wrap: on
line source

" Vim filetype plugin file
" Language:             X resources files like ~/.Xdefaults (xrdb)
" Previous Maintainer:  Nikolai Weibull <now@bitwi.se>
" Latest Revision:      2008-07-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 = "setl com< cms< inc< fo<"

setlocal comments=s1:/*,mb:*,ex:*/,:! commentstring& inc&
setlocal formatoptions-=t formatoptions+=croql

let &cpo = s:cpo_save
unlet s:cpo_save