BartlebyScrivener | 1 Oct 2007 04:12
Picon

Re: Abbreviations Tips


> It also happens to put a space in the parens when
> expanded, so I stumbled across
>
>    :iab f long_function_name()<left><c-o>

Hey, that's great. That extra space has bugged me for a year or so. I
make headings with H="blah blah" and had
iab hh H=""<Left> for an abbreviation.

Where did you stumble across that solution?

rd

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Tim Chase | 1 Oct 2007 04:20

Re: Abbreviations Tips


>> It also happens to put a space in the parens when
>> expanded, so I stumbled across
>>
>>    :iab f long_function_name()<left><c-o>
> 
> Where did you stumble across that solution?

Experimenting.  I have no idea if it's a documented feature, or
if I'm abusing a bug. :)

I would suggest that Tony's recommendation to use control+] to
expand the abbreviation instead of using <space> is a better
solution.  I'm trying to get into my muscle memory, though I must
confess that I don't make great use of abbreviations, usually
just when I really tire of typing the same thing time and again.

-tim

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Normandie Azucena | 1 Oct 2007 04:52

indents for vera


hello all
can any guru contribute an indent script for vera?
me and my colleagues will appreciate it greatly. 
tnx 

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

A.Politz | 1 Oct 2007 05:09
Picon

Re: Abbreviations Tips


Tim Chase wrote:

>>>It also happens to put a space in the parens when
>>>expanded, so I stumbled across
>>>
>>>   :iab f long_function_name()<left><c-o>
>>>      
>>>
>>Where did you stumble across that solution?
>>    
>>
>
>Experimenting.  I have no idea if it's a documented feature, or
>if I'm abusing a bug. :)
>
>I would suggest that Tony's recommendation to use control+] to
>expand the abbreviation instead of using <space> is a better
>solution.  I'm trying to get into my muscle memory, though I must
>confess that I don't make great use of abbreviations, usually
>just when I really tire of typing the same thing time and again.
>
>-tim
>
>
>
>
>>
>  
>
(Continue reading)

A.Politz | 1 Oct 2007 05:12
Picon

Re: indents for vera


Normandie Azucena wrote:

>hello all
>can any guru contribute an indent script for vera?
>me and my colleagues will appreciate it greatly. 
>tnx 
>
>
>>
>
>  
>
Can't she ask for it herself ? I have one script laying around
which I could spare.

-ap

--

-- 
Ich hab geträumt, der Krieg wär vorbei.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Normandie Azucena | 1 Oct 2007 05:17

RE: indents for vera


-----Original Message-----
From: vim_use <at> googlegroups.com [mailto:vim_use <at> googlegroups.com] On Behalf Of A.Politz
Sent: Monday, October 01, 2007 4:12 AM
To: vim_use <at> googlegroups.com
Subject: Re: indents for vera

Normandie Azucena wrote:

>hello all
>can any guru contribute an indent script for vera?
>me and my colleagues will appreciate it greatly. 
>tnx 
>
>
>>
>
>  
>
Can't she ask for it herself ? I have one script laying around
which I could spare.

-ap

--

-- 
Ich hab geträumt, der Krieg wär vorbei.

can you put it inside vim.org scripts section? tnx

--~--~---------~--~----~------------~-------~--~----~
(Continue reading)

Ben Schmidt | 1 Oct 2007 05:39
Picon
Gravatar

Re: indents for vera


> hello all
> can any guru contribute an indent script for vera?
> me and my colleagues will appreciate it greatly. 
> tnx 

Perhaps try asking the maintainer of the vera.vim syntax file:

" Maintainer:   Dave Eggum (opine at bluebottle dOt com)

I or someone else on the list may be able to help, but I for one would need more 
info, as I am not familiar with Vera. But if you could provide examples of what is 
required and/or a link to documentation of the language with example code showing 
indenting, I would at least have a chance of helping. Though not for a while. Bit 
busy for a week or two.

Ben.

Send instant messages to your online friends http://au.messenger.yahoo.com 

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Richard Hartmann | 1 Oct 2007 12:19
Picon
Gravatar

vimdiff optimisation


Hi all,

I have two issues which I need help with:

1) Is there any way to do to cursor position what scrollbind does to
scroll position? I want to jump to the 'same' line every time I switch
focus.

2) Is there any way to tell vim 'take this line[s] and overwrite the
according line[s] in the other buffer' other than yy^w<scroll>Pdd? I
would be happy to script this if I had a reliable way to go to the line
on the same heigth in the other buffer, so this is highly related to 1)

Thanks,
Richard

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Jürgen Krämer | 1 Oct 2007 13:06

Re: vimdiff optimisation


Hi,

Richard Hartmann wrote:
> 
> 
> I have two issues which I need help with:
> 
> 1) Is there any way to do to cursor position what scrollbind does to
> scroll position? I want to jump to the 'same' line every time I switch
> focus.

I don't know a solution for this, ...

> 2) Is there any way to tell vim 'take this line[s] and overwrite the
> according line[s] in the other buffer' other than yy^w<scroll>Pdd? I
> would be happy to script this if I had a reliable way to go to the line
> on the same heigth in the other buffer, so this is highly related to 1)

but you can use

  do

and

  dp

to copy the differences from and to the other buffer, respectively.

Regards,
(Continue reading)

Tim Chase | 1 Oct 2007 13:15

Re: vimdiff optimisation


> 1) Is there any way to do to cursor position what scrollbind
> does to scroll position? I want to jump to the 'same' line
> every time I switch focus.

While I don't have an answer for this, as sometimes vim seems to
track cursor location, and sometimes it doesn't.  But yes, this
would be useful to know how to do.

> 2) Is there any way to tell vim 'take this line[s] and
> overwrite the according line[s] in the other buffer' other
> than yy^w<scroll>Pdd? I would be happy to script this if I had
> a reliable way to go to the line on the same heigth in the
> other buffer, so this is highly related to 1)

You might be interested in the

  :diffput
  :diffget

pair of commands.  I find diffput more useful because if the line
is missing in the file, you can't move the cursor there to do a
diffget, so you have to move to the cursor to the other file and
do a diffput instead.  There are also "do" and "dp" commands in
normal mode to do this.  It does push around the entire
change-block that you're in, rather than just the current line,
but I've found that usually I want the whole block of changes,
rather than doing it line by line.

You can read about it at
(Continue reading)


Gmane