Posted by Nikolaus Gradwohl
Sat, 28 Mar 2009 07:14:00 GMT
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.
Tags vim | no comments | no trackbacks
Posted by Nikolaus Gradwohl
Tue, 09 Dec 2008 15:27:00 GMT
__
__/ \__
/ \__/ \ ()
\__/ \__/ O//)-
/ \__/ \ ()
\__/ \__/
\__/
|| __
|| / /|
|| / / |
||/ / /
|| / /
||/_/
Tags asciiart, flower, vim | no comments
Posted by Nikolaus Gradwohl
Sat, 11 Oct 2008 07:51:00 GMT
() ()
\ /
__\___________/__
/ \
/ ___ ___ \
| / \ / \ |
| | H || H | |
| \___/ \___/ |
| |
| \ / |
| \___________/ |
\ /
\_________________/
_________|__|_______
_| |_
/ | | \
/ | O O O | \
| | | |
| | O O O | |
| | | |
/ | | \
| /| |\ |
\| | | |/
|____________________|
| | | |
|__| |__|
/ __ \ / __ \
OO OO OO OO
Tags asciiart, robot, vim | 1 comment
Posted by Nikolaus Gradwohl
Sun, 17 Aug 2008 07:35:00 GMT
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.
Tags osc, supercollider, vim | no comments