From 94985e3f9245b6df3f93d8fdfb2b756e5fb6397d Mon Sep 17 00:00:00 2001 From: Heikki Junes Date: Sun, 10 Nov 2002 14:52:30 +0000 Subject: [PATCH] vimrc: (Un)commenting with <(S-)F12>, tidy. --- ChangeLog | 2 ++ vimrc | 23 ++++++++++++++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 913b700607..2f2d5ad5a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ * emacs-mode.el: Added spanish-note-replacements (). + * vimrc: (Un)commenting with <(S-)F12>, tidy. + 2002-11-08 Heikki Junes * lilypond.vim: Do not fontify cises, desis, etc. diff --git a/vimrc b/vimrc index 4a4de52138..e8457217ec 100644 --- a/vimrc +++ b/vimrc @@ -1,36 +1,41 @@ -:version 4.0 +:version 6.1 set autoindent set shiftwidth=2 " " some handy key mappings " -" F4 save & make and play midi +" save & make and play midi map :w:se makeprg=ly2dvi\ -m\ %<:make:!timidity %<.midi " -" F5 save & make dvi, midi, ps +" save & make dvi, midi, ps map :w:se makeprg=ly2dvi\ -P\ %<:make " -" F6 view ps +" view ps map :!gv -watch %<.ps & " " view dvi map :!xdvi %<.dvi & " -" F7 prev error +" prev error map :cp " -" F8 next error +" next error map :cn " -" F9 make +" make map :w:se makeprg=make\ -k:make " -" F10 run buffer through lily +" run buffer through lily map :w:se makeprg=lilypond\ %:t:make " -" shift F10: run buffer through lily -M +" run buffer through lily -M map :w:se makeprg=lilypond\ -M\ %:t:make " +" comment region +map :g!/%.*/normal 0i% +" +" remove comments in region +map :g/%.*/normal 0x " " errorformat for lily (with columns) and gcc " (how to see multiple-line error messages?) -- 2.39.5