Re: Attach a sig in vim?



* Ohmster is quoted & my replies are inline below :
On 2007-07-15, zzapper <zzapper@xxxxxxxxx> wrote:
On Jul 15, 5:37 am, Benjamin Esham <bdes...@xxxxxxxxx> wrote:
Ohmster wrote:
Can someone show me how to pull in a sig file at the bottom or cursor in
vim while editing? Thank you.

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.

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



Relevant Pages

  • Re: Quotelength with slrn and vim
    ... will wrap lines 18 through 77 at 80 characters. ... Works only if you have a sig. ... and do 'gwap' right after vim starts? ...
    (news.software.readers)
  • Re: OT - Dilbert on the ethics of e-mail etiquette
    ... I don't find this option in mutt (though I bet vim could do ... mailinglist where I often see some very bad postings: beneath the sig ... (Albert Einstein) ...
    (Debian-User)
  • Re: text editing in ubuntu
    ... "A simple, sane ~/.vimrc that starts vim in insertmode, and has shortcut ... for saving/quiting:" ...
    (Ubuntu)
  • Re: `And They Said the Mac Was Intuitive
    ... Go on then - what sort of things are you editing under ... vim: keymaps, macros, colour preferences. ... appropriate user priveliges. ... I'm saying I simply don't trust it. ...
    (uk.comp.sys.mac)
  • Re: Ping OHMSTER
    ... Do a bunch of editing; more than one para; make lines lengths ugly. ... When I use vim as my editor in slrn, the lines wrap by themselves so the F5 ... Look at the macro. ...
    (news.software.readers)