[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Favorite editor
From: |
Benjamin Esham |
Subject: |
Re: Favorite editor |
Date: |
Tue, 4 Oct 2005 18:13:34 -0400 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hans wrote:
I am new to the list, but I have been using Lilypond for the last
year or
so, currently version 2.4.5 on Debian Sarge.
Right now I edit ly-files with Midnight Commander, have a terminal
open
for making output and a file-manager to open the pdf or ps. Working
like
this means constant switching between windows (edit, save, run
lilypond
file.ly in the terminal, chech the pdf). Is there an editor for
Lilypond
like Bluefish for html? Or is there a smarter way to work. I would
love to
hear your experience. Thank you.
I use Vim (www.vim.org), and I have some commands in my ~/.vimrc to help
with LilyPond editing:
nmap <Leader>l :call LilyPondCompileOpen()<CR>
function! ChangeExt(name, ext)
let name = substitute(a:name, "\.[a-zA-Z0-9_]*$", "\.".a:ext, "")
return name
endfunction
function! LilyPondCompileOpen()
write
let pdfname = ChangeExt(expand("%"), "pdf")
let path = "/sw/bin:/sw/sbin:/bin:/usr/bin"
let fontconfig = "/sw/share/fontconfig-path/fontconfig-path.conf"
let setenv_command = "env PATH=".path."
FONTCONFIG_FILE=".fontconfig." "
exe "!" . setenv_command . "/sw/bin/lilypond -dno-point-and-
click --pdf
'%' && open '" . pdfname . "'"
endfunction
Obviously, these commands are specific to my system―I use fink with
Mac OS
X, so the /sw paths would be different, and I'm not sure whether
other OSes
have an "open" command. The idea is clear, however; when editing, I can
type "\l" and the current file will be processed with LilyPond and its
output displayed. I'm really happy with this system; it's pretty much
perfectly integrated into my editor, so the only program switching I
have to
do is between Vim and my PDF viewer.
HTH,
- --
Benjamin D. Esham
address@hidden | http://bdesham.net | AIM: bdesham128
"A witty saying proves nothing." ― Voltaire
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)
iD8DBQFDQv6kzOC3TdZ2u5oRAkWVAJ4leqUbAcU3F0xkeYxi39bvgmBAPQCdEaj4
oQq802LRHzDyaK5jYddVVB0=
=kEIC
-----END PGP SIGNATURE-----