VIM可以用于编辑XAML吗?
" Xaml
au BufNewFile,BufRead *.xaml setf xml
<!-- vim: tw=120 ts=4 sw=4 et syn=xml :
-->
E518: 未知选项:-->
。 - Dan Garthwaite<Canvas xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextBlock>Hello World!</TextBlock>
</Canvas>
好的。为了更好的体验,请尝试一些XML插件(用于折叠等),并开启语法高亮功能。
vim.api.nvim_create_autocmd({"BufNewFile", "BufRead"},{ pattern = {"*.xaml"}, command = "setf xml" })
- Martin Braun