Mercurial > vim
annotate runtime/ftplugin/cs.vim @ 29248:6a718a4e17ce
Added tag v8.2.5142 for changeset 5f314b2ed4940d2de3442f11ecb6fd03fc54fded
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Jun 2022 18:45:08 +0200 |
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 |