Re: Attach a sig in vim?



Troy Piggins <usenet-0707@xxxxxxxxx> wrote in
news:20070716071649@xxxxxxxxxxxxxxxx:

Try

:$r ~/.sig

If you use this often, you'll probably want to map it to something.
In my Usenet setup, I type \g to insert a signature (chosen
randomly by a Perl script). The mapping also turns on spell
checking, which is nice for the end of a post, but which can be
annoying when I'm trying to type.
Have you considered a VIM abbreviation?

iab xsig -- <CR>Fred Smith<CR>http://www.fredsmith.org/<CR>

Uhhhhh, what? What does all that mean? I am reading your page in your
sig, zz, but it is a lot to digest. I will have to bookmark this
under vim and come back to it again and again, I see.

:help iabbrev

When in insert mode, if you type "xsig" (without the "") it is
automatically expanded to the string following, which is the sig
delimiter followed by your sig. Try it.

Uh no, that did not do anything. Rats!

--
Troy Piggins | http://piggo.com/~troy __ ___
RLU#415538 \ \ / (_)_ __ ,-O
(o- O
\ V /| | ' \ O )
//\ O
Vim 7.1



--
~Ohmster
ohmster /a/t/ ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
.



Relevant Pages

  • Re: Attach a sig in vim?
    ... iab xsig -- Fred Smithhttp://www.fredsmith.org/ ... sig, zz, but it is a lot to digest. ... ~Ohmster | ohmster /a/t ohmster dot com ... Put "messageforohmster" in message body ...
    (alt.os.linux)
  • What was killing (dogging) my machine?
    ... I noticed just a little while ago that the screensaver on my Linux machine ... Maybe somebody in FTP dogging files? ... ohmster user logged in with gnome, ... Put "messageforohmster" in message body ...
    (alt.os.linux)
  • Re: Anybody get spice to install on Linux?
    ... moved all docs to "doc-pak" and then ran checkinstall ... install the build dependencies. ... ~Ohmster | ohmster /a/t/ ohmster dot com ... Put "messageforohmster" in message body ...
    (alt.os.linux)
  • Re: (Graphic) perfomance
    ... Read" Is there really such a thing as a newsreader ... college kid that authored News Express abandoned it and now Xnews is what ... ~Ohmster | ohmster /a/t/ ohmster dot com ... Put "messageforohmster" in message body ...
    (alt.os.linux)
  • Re: Is beowulf cool and should I setup a bunch of old PCs to try it out?
    ... software to make much use of parallel processing (either mulitple ... processors, multiple cores, or multiple computers) the code for the ... ohmster at ohmster dot com ... Put "messageforohmster" in message body ...
    (alt.os.linux)