diff options
author | Christian Clason <c.clason@uni-graz.at> | 2021-12-16 21:46:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 21:46:13 +0100 |
commit | b1757e1c29d07c7958c62427e19e85916670049d (patch) | |
tree | f159b36ae8607f2545685e9ef995c86649a07166 /runtime/ftplugin | |
parent | 80210c189f2abb668614fc6d98ac9f51433d4c47 (diff) | |
download | rneovim-b1757e1c29d07c7958c62427e19e85916670049d.tar.gz rneovim-b1757e1c29d07c7958c62427e19e85916670049d.tar.bz2 rneovim-b1757e1c29d07c7958c62427e19e85916670049d.zip |
vim-patch:0e6adf8a29d5 (#16682)
Update runtime files
https://github.com/vim/vim/commit/0e6adf8a29d5c2c96c42cc7157f71bf22c2ad471
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/i3config.vim | 13 | ||||
-rw-r--r-- | runtime/ftplugin/solution.vim | 37 |
2 files changed, 50 insertions, 0 deletions
diff --git a/runtime/ftplugin/i3config.vim b/runtime/ftplugin/i3config.vim new file mode 100644 index 0000000000..4204510e64 --- /dev/null +++ b/runtime/ftplugin/i3config.vim @@ -0,0 +1,13 @@ +" Vim filetype plugin file +" Language: i3 config file +" Original Author: Mohamed Boughaba <mohamed dot bgb at gmail dot com> +" Maintainer: Quentin Hibon +" Version: 0.4 +" Last Change: 2021 Dec 14 + +if exists("b:did_ftplugin") | finish | endif +let b:did_ftplugin = 1 + +let b:undo_ftplugin = "setlocal cms<" + +setlocal commentstring=#\ %s diff --git a/runtime/ftplugin/solution.vim b/runtime/ftplugin/solution.vim new file mode 100644 index 0000000000..bd30c7bb19 --- /dev/null +++ b/runtime/ftplugin/solution.vim @@ -0,0 +1,37 @@ +" Vim filetype plugin file +" Language: Microsoft Visual Studio Solution +" Maintainer: Doug Kearns <dougkearns@gmail.com> +" Last Change: 2021 Dec 15 + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let s:cpo_save = &cpo +set cpo&vim + +setlocal comments=:# +setlocal commentstring=#\ %s + +let b:undo_ftplugin = "setl com< cms<" + +if exists("loaded_matchit") && !exists("b:match_words") + let b:match_words = + \ '\<Project\>:\<EndProject\>,' .. + \ '\<ProjectSection\>:\<EndProjectSection\>,' .. + \ '\<Global\>:\<EndGlobal\>,' .. + \ '\<GlobalSection\>:\<EndGlobalSection\>' + let b:undo_ftplugin ..= " | unlet! b:match_words" +endif + +if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") + let b:browsefilter = "Microsoft Visual Studio Solution Files\t*.sln\n" .. + \ "All Files (*.*)\t*.*\n" + let b:undo_ftplugin ..= " | unlet! b:browsefilter" +endif + +let &cpo = s:cpo_save +unlet s:cpo_save + +" vim: nowrap sw=2 sts=2 ts=8 noet: |