From: Teemu Likonen <tlikonen@iki.fi>
To: Thomas Adam <thomas.adam22@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Extremely simple Vim interface for Git
Date: Sun, 7 Sep 2008 16:59:52 +0300 [thread overview]
Message-ID: <20080907135952.GD3387@mithlond.arda.local> (raw)
In-Reply-To: <18071eea0809070623v4a54cbb8j2face0724651ef56@mail.gmail.com>
Thomas Adam wrote (2008-09-07 14:23 +0100):
> 2008/9/6 Teemu Likonen <tlikonen@iki.fi>:
> > Here's a very simple idea for using Git from Vim editor. Add these lines
> > to your ~/.vimrc file:
> >
> >
> > command! -complete=file -nargs=* Git call s:RunShellCommand('git '.<q-args>)
> > command! -complete=file -nargs=* Svn call s:RunShellCommand('svn '.<q-args>)
> > command! -complete=file -nargs=+ Shell call s:RunShellCommand(<q-args>)
>
> Looks interesting. Have you seen this though:
>
> http://code.google.com/p/vcscommand/
I have tried it but I made my own because I'm familiar with git's
command line interface and want to use it inside Vim without (too many)
restrictions. I find this approach easier because I don't need to learn
another interface layer.
I'd like to add a hint that Vim command line expands % to current file
name. Examples:
:Git add %
:Git blame -C %
next prev parent reply other threads:[~2008-09-07 14:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-06 19:37 Extremely simple Vim interface for Git Teemu Likonen
2008-09-07 10:32 ` Michael Wookey
2008-09-07 13:13 ` Teemu Likonen
2008-09-07 17:46 ` Teemu Likonen
2008-09-07 22:47 ` Michael Wookey
2008-09-08 5:26 ` Teemu Likonen
2008-09-07 13:23 ` Thomas Adam
2008-09-07 13:59 ` Teemu Likonen [this message]
2008-09-07 14:11 ` Thomas Adam
2008-09-08 17:41 ` Bob Hiestand
2008-09-09 6:26 ` "Peter Valdemar Mørch (Lists)"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080907135952.GD3387@mithlond.arda.local \
--to=tlikonen@iki.fi \
--cc=git@vger.kernel.org \
--cc=thomas.adam22@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).