Mercurial > vim
annotate runtime/ftplugin/cs.vim @ 32892:d5f7716fadde v9.0.1755
patch 9.0.1755: CI still fails with sodium mlock error
Commit: https://github.com/vim/vim/commit/25dec33c9bd286eacd1767ce2f5324117132b33a
Author: Christian Brabandt <cb@256bit.org>
Date: Sat Aug 19 22:15:44 2023 +0200
patch 9.0.1755: CI still fails with sodium mlock error
Problem: CI still fails with sodium mlock error
Solution: catch mlock failure
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 19 Aug 2023 22:30:03 +0200 |
parents | 15c80d8bc515 |
children | 8ae680be2a51 |
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> | |
31383 | 5 " Last Change: 2022-11-16 |
29104 | 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 | |
31383 | 28 let b:match_ignorecase = 0 |
29104 | 29 let b:match_words = '\%(^\s*\)\@<=#\s*region\>:\%(^\s*\)\@<=#\s*endregion\>,' |
31383 | 30 let b:undo_ftplugin .= ' | unlet! b:match_ignorecase b:match_words' |
7 | 31 endif |
3526
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
233
diff
changeset
|
32 |
29104 | 33 if (has('gui_win32') || has('gui_gtk')) && !exists('b:browsefilter') |
34 let b:browsefilter = "C# Source Files (*.cs *.csx)\t*.cs;*.csx\n" . | |
35 \ "C# Project Files (*.csproj)\t*.csproj\n" . | |
36 \ "Visual Studio Solution Files (*.sln)\t*.sln\n" . | |
37 \ "All Files (*.*)\t*.*\n" | |
38 let b:undo_ftplugin .= ' | unlet! b:browsefilter' | |
39 endif | |
40 | |
41 let &cpoptions = s:save_cpo | |
42 unlet s:save_cpo | |
43 | |
44 " vim:et:sw=2:sts=2 |