Can VIM be used for XAML editing?
A:
Sure. For a better experience try out some XML plugins (for folding and such) and turn on syntax highlighting.
Mohit Chakraborty
2009-02-25 01:02:32
+3
A:
Yeap. XAML is really just XML and thus plain text.
Here's a "Hello World" example.
<Canvas xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextBlock>Hello World!</TextBlock>
</Canvas>
If you don't already have an XML plugin you may want to try xmledit
Andrew Grant
2009-02-25 01:14:58
I have xml.vim already installed, but it does not recognize .xaml as .xml. Also it whould be cool to get xaml completion :-)
alex2k8
2009-02-25 01:25:37
:set filetype=xml
rampion
2009-02-25 02:22:30
+2
A:
Throw this line at the bottom of your source file and you should be compatible with VS2008:
<!-- vim: tw=120 ts=4 sw=4 et enc=utf8 syn=xml -->
Paul Betts
2009-02-25 01:39:29
+2
A:
If you want full intellisense etc... An option that may be worth exploring is ViEmu which brings vim keybindings to visual studio.
Sam Saffron
2009-02-25 01:50:28
+1
A:
Add the following to your filetype.vim (this will be in your $VIM/vim72 directory, or you can create one in your own personal .vim directory). This will tell Vim to automatically set the filetype for xaml files to xml.
" Xaml
au BufNewFile,BufRead *.xaml setf xml
Kris Erickson
2010-05-02 20:21:57