Re: Attach a sig in vim?
- From: Troy Piggins <usenet-0707@xxxxxxxxx>
- Date: Mon, 16 Jul 2007 07:20:56 +1000
* 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:Have you considered a VIM abbreviation?
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.
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
.
- Follow-Ups:
- Re: Attach a sig in vim?
- From: Ohmster
- Re: Attach a sig in vim?
- From: Ohmster
- Re: Attach a sig in vim?
- Prev by Date: Re: Dell ubuntu uk laptops
- Next by Date: Stats alt.os.linux (last 7 days)
- Previous by thread: Re: Attach a sig in vim?
- Next by thread: Re: Attach a sig in vim?
- Index(es):
Relevant Pages
|