formating xml in vim
i often have to work with xml files that are autogenerated and look very ugly i defined a short keymapping in my .vimrc file that calls xmllint --format - on the current buffer
map xf <ESC>:%!xmllint --format -<CR>
open any xml file and press 'xf' in command mode.
read more ...ascii flower with bee
__
__/ \__
/ \__/ \ ()
\__/ \__/ O//)-
/ \__/ \ ()
\__/ \__/
\__/
|| __
|| / /|
|| / / |
||/ / /
|| / /
||/_/
read more ...Ascii-art robot
() ()
\ /
__\___________/__
/ \
/ ___ ___ \
| / \ / \ |
| | H || H | |
| \___/ \___/ |
| |
| \ / |
| \___________/ |
\ /
\_________________/
_________|__|_______
_| |_
/ | | \
/ | O O O | \
| | | |
| | O O O | |
| | | |
/ | | \
| /| |\ |
\| | | |/
|____________________|
| | | |
|__| |__|
/ __ \ / __ \
OO OO OO OO
read more ...SuperCollider on Linux
Today i have installed supercollider on my ubutu system following this instructions. SuperCollider is a environment and programming language for audio synthesis simliar to chuck. SuperCollider can run on a network and uses OSC events for comunication.
After looking around in the source tree i found a plugin for vim :-)
Installations is a bit quirky (the folders 'ftpplugin', 'syntax' and 'intend' needed to be copied to ~/.vim by hand) but now i can edit my sc code using my vim - veeeery cool :-)
single lines of code can be sent to the server using F6 codeblocks are sent to the server using F5.
s.boot
(
c = { arg f=900;
var x;
x = SinOsc.ar(f);
x * 0.1
}.play;
)
c.set(, 400);
c.set(, 670);
to start te server the first line has to be sent to sclang (using F6). Then the code block starting line 2 is sent to the server (using F5)... tata - a sine wave.
sending the last 2 lines (F6 again) change the frequency of the running synth.
F12 can be used to turn all sounds off.
read more ...

