Mercurial > vim
annotate runtime/ftplugin/cs.vim @ 31289:4f1e70a709bb v9.0.0978
patch 9.0.0978: build errors without the +channel feature
Commit: https://github.com/vim/vim/commit/3b8c7083b265c35861a7f96b01c079471ff45152
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 30 20:20:56 2022 +0000
patch 9.0.0978: build errors without the +channel feature
Problem: Build errors without the +channel feature. (John Marriott)
Solution: Adjust #ifdefs.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 30 Nov 2022 21:30:03 +0100 |
parents | c58baa6d6dda |
children | 15c80d8bc515 |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
29104 | 2 " Language: C# |
3 " Maintainer: Nick Jensen <nickspoon@gmail.com> | |
4 " Former Maintainer: Johannes Zellner <johannes@zellner.org> | |
5 " Last Change: 2021-12-07 | |
6 " License: Vim (see :h license) | |
7 " Repository: https://github.com/nickspoons/vim-cs | |
7 | 8 |
29104 | 9 if exists('b:did_ftplugin') |
7 | 10 finish |
11 endif | |
29104 | 12 let b:did_ftplugin = 1 |
7 | 13 |
29104 | 14 let s:save_cpo = &cpoptions |
15 set cpoptions&vim | |
7 | 16 |
17 " Set 'formatoptions' to break comment lines but not other lines, | |
18 " and insert the comment leader when hitting <CR> or using "o". | |
29104 | 19 setlocal formatoptions-=t formatoptions+=croql |
7 | 20 |
21 " Set 'comments' to format dashed lists in comments. | |
22 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// | |
23 | |
29104 | 24 let b:undo_ftplugin = 'setl com< fo<' |
25 | |
26 if exists('loaded_matchit') && !exists('b:match_words') | |
27 " #if/#endif support included by default | |
28 let b:match_words = '\%(^\s*\)\@<=#\s*region\>:\%(^\s*\)\@<=#\s*endregion\>,' | |
29 let b:undo_ftplugin .= ' | unlet! b:match_words' | |
7 | 30 endif |
3526
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
233
diff
changeset
|
31 |
29104 | 32 if (has('gui_win32') || has('gui_gtk')) && !exists('b:browsefilter') |
33 let b:browsefilter = "C# Source Files (*.cs *.csx)\t*.cs;*.csx\n" . | |
34 \ "C# Project Files (*.csproj)\t*.csproj\n" . | |
35 \ "Visual Studio Solution Files (*.sln)\t*.sln\n" . | |
36 \ "All Files (*.*)\t*.*\n" | |
37 let b:undo_ftplugin .= ' | unlet! b:browsefilter' | |
38 endif | |
39 | |
40 let &cpoptions = s:save_cpo | |
41 unlet s:save_cpo | |
42 | |
43 " vim:et:sw=2:sts=2 |