Re: VIM question

2008-05-02 Thread Alex Samad
On Wed, Apr 30, 2008 at 10:39:45PM -0700, Sean G. McLaughlin wrote: > On Wednesday 30 April 2008 06:18:27 pm Alex Samad wrote: > > but I can't change windows with . My first thought > You can also use gt and gT. > > > and I am not sure what syntax to use for control-page up is it > > > (and i_

Re: VIM question

2008-04-30 Thread Sean G. McLaughlin
On Wednesday 30 April 2008 06:18:27 pm Alex Samad wrote: > but I can't change windows with . My first thought You can also use gt and gT. > and I am not sure what syntax to use for control-page up is it > (and i_ or i_CTRL-). -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of

Re: VIM question

2008-04-30 Thread Alex Samad
On Thu, May 01, 2008 at 11:18:27AM +1000, Alex Samad wrote: > Hi > > I have just started using tab windows in gvim, thought I would try it > out in vim. > > but I can't change windows with . My first thought was > to use map to map c-pgup to tabn and c-pgdn to tabp. The next thought > was to f

VIM question

2008-04-30 Thread Alex Samad
Hi I have just started using tab windows in gvim, thought I would try it out in vim. but I can't change windows with . My first thought was to use map to map c-pgup to tabn and c-pgdn to tabp. The next thought was to find out the differences in the setup of gvim and vim why it worked in one an

Re: Vim question

2005-10-29 Thread thias . lelourd
On Sat, Oct 22, 2005 at 08:11:18PM -0500, Eric P wrote: > Paolo Pantaleo wrote: > > I just started learning python (i think it is great). Now i have the > > following problem: > > How can i comment 10 lines of code in a shot? That is, how can i add a > > # at the begenning of a range of lines? > >

Re: Vim question

2005-10-23 Thread m
Substitute every beginning of a line with //: :% substitute ?^?//?g Thanks to the vim manual hanging off the main vim page. Please do purchase a hard copy - the profits go towards feeding Ugandan orphans. Regards, Max -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsu

Re: Vim question

2005-10-23 Thread m
No idea about vim. Sorry. Would be nice to know though! Isn't emacs meant to be the infinitely programmable editor? Wd be nice to know how to program it in any editor. If you wanted to instead replace line 1 line 2 line 3 with /* line 1 line 2 line 3 */ Commenting out C - traditi

Re: Vim question

2005-10-23 Thread Eric P
>> > If you wanted to instead replace >> >>>line 1 >>>line 2 >>>line 3 >>> >>>with >>> >>>/* >>>line 1 >>>line 2 >>>line 3 >>>*/ >>> >>>I'm not sure how you'd do it. Perhaps others do. >>> >> >>Actually, I would like to know how to do this in VIM. >> >>Any takers? >> >>Eric > > > I have scripts c

Re: Vim question

2005-10-23 Thread Winston Smith
On Sat, Oct 22, 2005 at 08:16:52PM -0500, Eric P wrote: > > If you wanted to instead replace > > > > line 1 > > line 2 > > line 3 > > > > with > > > > /* > > line 1 > > line 2 > > line 3 > > */ > > > > I'm not sure how you'd do it. Perhaps others do. > > > > Actually, I would like to know ho

Re: Vim question

2005-10-23 Thread Dick Davies
On 23/10/05, Paolo Pantaleo <[EMAIL PROTECTED]> wrote: > I just started learning python (i think it is great). Now i have the > following problem: > How can i comment 10 lines of code in a shot? That is, how can i add a > # at the begenning of a range of lines? In command mode (hit 'escape' twice

Re: Vim question

2005-10-22 Thread Michael Marsh
On 10/22/05, Paolo Pantaleo <[EMAIL PROTECTED]> wrote: > I just started learning python (i think it is great). Now i have the > following problem: > How can i comment 10 lines of code in a shot? That is, how can i add a > # at the begenning of a range of lines? In command mode, I'd go to the *last

Re: Vim question

2005-10-22 Thread Olle Eriksson
On Sunday 23 October 2005 02.50, Paolo Pantaleo wrote: > I just started learning python (i think it is great). Now i have the > following problem: > How can i comment 10 lines of code in a shot? That is, how can i add a > # at the begenning of a range of lines? I usually use a macro for this, but

Re: Vim question

2005-10-22 Thread Eric P
> If you wanted to instead replace > > line 1 > line 2 > line 3 > > with > > /* > line 1 > line 2 > line 3 > */ > > I'm not sure how you'd do it. Perhaps others do. > Actually, I would like to know how to do this in VIM. Any takers? Eric -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] wi

Re: Vim question

2005-10-22 Thread Eric P
Paolo Pantaleo wrote: > I just started learning python (i think it is great). Now i have the > following problem: > How can i comment 10 lines of code in a shot? That is, how can i add a > # at the begenning of a range of lines? > > just to be more clear, i want to rasform > > a=['a','b','c'] > f

Re: Vim question

2005-10-22 Thread kamaraju kusumanchi
Paolo Pantaleo wrote: I just started learning python (i think it is great). Now i have the following problem: How can i comment 10 lines of code in a shot? That is, how can i add a # at the begenning of a range of lines? just to be more clear, i want to rasform a=['a','b','c'] for i in a: d

Re: Vim question

2005-10-22 Thread Stephen R Laniel
On Sun, Oct 23, 2005 at 02:50:48AM +0200, Paolo Pantaleo wrote: > How can i comment 10 lines of code in a shot? That is, how can i add a 1) Go to the first line of the code that you want to comment. 2) Press to get into command mode rather than insert mode. 3) Press 'v' to begin Visual Sele

Vim question

2005-10-22 Thread Paolo Pantaleo
I just started learning python (i think it is great). Now i have the following problem: How can i comment 10 lines of code in a shot? That is, how can i add a # at the begenning of a range of lines? just to be more clear, i want to rasform a=['a','b','c'] for i in a: do_something(i) print

Re: A Vi (Vim) question

2005-05-14 Thread Dave Ewart
On Tuesday, 10.05.2005 at 08:29 +0100, Anthony Campbell wrote: > Why not make (i)mappings for insert mode to do what you want, using > Alt plus the other keys? E.g. Mapping your own chosen combo is a good idea too. I use a double semi-colon as a replacement for Esc: imap ;; Dave. -- Please d

Re: A Vi (Vim) question

2005-05-10 Thread Anthony Campbell
On 09 May 2005, Ritesh Raj Sarraf wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Deboo Geek wrote: > > > On 5/8/05, Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA1 > >> > >> Deboo Geek wrote: > >> > >> > A small Vi question: How

Re: A Vi (Vim) question

2005-05-09 Thread Deboo ^
On 5/9/05, Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Deboo Geek wrote: > > > On 5/8/05, Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: > >> -BEGIN PGP SIGNED MESSAGE- > >> Hash: SHA1 > >> > >> Deboo Geek wrote: > >> > >> > A small Vi

Re: A Vi (Vim) question

2005-05-09 Thread Ritesh Raj Sarraf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Deboo Geek wrote: > On 5/8/05, Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Deboo Geek wrote: >> >> > A small Vi question: How to move ahead/forward a line when in insert >> > mode. I always

Re: A Vi (Vim) question

2005-05-08 Thread Cameron Hutchison
Once upon a time Deboo Geek said... > On 5/8/05, Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: > > > > Hit Escape, return to Normal mode and then use your H,J,K,L keys to move. > > I wish there was a way or some shortcut instead of extending the left > hand and hitting Escape. Thanks anyway. You c

Re: A Vi (Vim) question

2005-05-08 Thread s. keeling
Incoming from Deboo Geek: > On 5/8/05, Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: > > Deboo Geek wrote: > > > > > > A small Vi question: How to move ahead/forward a line when in insert > > > mode. I always have to use the arrow keys to move forward, when in > > > > You can't do that in insert m

Re: A Vi (Vim) question

2005-05-08 Thread Deboo Geek
On 5/8/05, Deepak, R. (Masatran, R.) <[EMAIL PROTECTED]> wrote: > * Deboo Geek <[EMAIL PROTECTED]> 2005-05-08 > > A small Vi question: How to move ahead/forward a line when in insert > > mode. I always have to use the arrow keys to move forward, when in > > insert mode. Is there any way to move ahe

Re: A Vi (Vim) question

2005-05-08 Thread Deepak, R. (Masatran, R.)
* Deboo Geek <[EMAIL PROTECTED]> 2005-05-08 > A small Vi question: How to move ahead/forward a line when in insert > mode. I always have to use the arrow keys to move forward, when in > insert mode. Is there any way to move ahead without shifting my right > hand from the alphabets to the arrow keys

Re: A Vi (Vim) question

2005-05-08 Thread Deboo Geek
On 5/8/05, Ritesh Raj Sarraf <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Deboo Geek wrote: > > > A small Vi question: How to move ahead/forward a line when in insert > > mode. I always have to use the arrow keys to move forward, when in > > insert mode. Is the

Re: A Vi (Vim) question

2005-05-08 Thread Ritesh Raj Sarraf
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Deboo Geek wrote: > A small Vi question: How to move ahead/forward a line when in insert > mode. I always have to use the arrow keys to move forward, when in > insert mode. Is there any way to move ahead without shifting my right > hand from the alpha

A Vi (Vim) question

2005-05-08 Thread Deboo Geek
A small Vi question: How to move ahead/forward a line when in insert mode. I always have to use the arrow keys to move forward, when in insert mode. Is there any way to move ahead without shifting my right hand from the alphabets to the arrow keys? Deboo -- Please don't Cc: me, I'm subscribed to

Re: Vim question SOLVED

2002-04-14 Thread Patrick Kirk
On Sun, 2002-04-14 at 07:57, Eric G. Miller wrote: > On Sun, Apr 14, 2002 at 07:41:43AM +0100, Patrick Kirk wrote: > > Hi all, > > > > What is the command to save a file under another name? For example, > > if I have editted a Makefile and do not have write access, how can I > > save it as ~/pkMa

Re: Vim question

2002-04-14 Thread Eric G. Miller
On Sun, Apr 14, 2002 at 07:41:43AM +0100, Patrick Kirk wrote: > Hi all, > > What is the command to save a file under another name? For example, > if I have editted a Makefile and do not have write access, how can I > save it as ~/pkMakefile :w ~/pkMakefile Note, after the file is written, Vim d

Vim question

2002-04-14 Thread Patrick Kirk
Hi all, What is the command to save a file under another name? For example, if I have editted a Makefile and do not have write access, how can I save it as ~/pkMakefile Thanks in advance, Patrick -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact

vim question

1999-09-13 Thread Shao Zhang
Hi, talking about the C programming style, are we supposed to use tabstoplength=8 or softtabstop=2? I have always been using tabstoplength=8, but all the program src I got(mutt for example) all use the softtabstop=2. Anyway, I am quite happy with softtabsto

RE: vim question

1999-07-20 Thread Alexis Villagra
Please, unsubscribe me from this list. Thanks > -Mensaje original- > De: debian-user@lists.debian.org [SMTP:[EMAIL PROTECTED] > Enviado el: 13/07/1999 8:09 AM > Para: [EMAIL PROTECTED] > CC: recipient list not shown > Asunto: Re: vim question > > &

Re: vim question

1999-07-13 Thread Samuel R. Scarano
> > insert a single(or two) tab at the beginning of the next 10 lines. > > single: 10>> Wait! Wait! You can do it in fewer keystrokes: 9>j :-D Sorry about that original post with the unoptimized vi commands. How un-vi-like of me!

Re: vim question

1999-07-13 Thread Samuel R. Scarano
> insert a single(or two) tab at the beginning of the next 10 lines. single: 10>> or two: 10>>. I consider the > and < commands to be two of vi's biggest advantages over emacs. I love those commands.

Re: vim question

1999-07-13 Thread Ernie Pasveer
On Mon, 12 Jul 1999, Shao Zhang wrote: --Hi, -- Is there any easy way to: -- -- insert a single(or two) tab at the beginning of the next 10 lines. -- -- ?? -- -- Thanks. -- --Shao. :.,.+10s/^/^I/g where: your cursor is on the line you want to start from ^I is the tab k

vim question

1999-07-13 Thread Shao Zhang
Hi, Is there any easy way to: insert a single(or two) tab at the beginning of the next 10 lines. ?? Thanks. Shao. -- Shao Zhang - Running Debian 2.1 ___ _ _ Departme