David Fishburn | 1 Apr 02:41 2007

RE: Reannouncing vimplugin: A vim plugin for Eclipse


> -----Original Message-----
> From: Sebastian Menge [mailto:sebastian.menge <at> uni-dortmund.de] 
> Sent: Friday, March 30, 2007 1:12 PM
> To: David Fishburn
> Cc: vim <at> vim.org
> Subject: RE: Reannouncing vimplugin: A vim plugin for Eclipse
> 
> Am Freitag, den 30.03.2007, 12:24 -0400 schrieb David Fishburn:
> > The README indicates:
> > The only external dependency is a functional gvim compiled 
> with "netbeans" 
> > support.
> > 
> > But your email says:
> > > Microsoft users have to use the cygwin version of vim.
> > 
> > Can you confirm which is required.  Why would the cygwin version of 
> > Vim be required it is just talks to it over a protocol?
> > 
> > I have cygwin installed, but I have never actually compiled 
> an actual 
> > cygwin version of Vim, I just use the standard win32 
> version which I 
> > compile myself.
> 
> for the netbeans-prototype you need gvim. It fires up an 
> external gvim and talks with it via a socket. I havent tested 
> that under windows.

(Continue reading)

A.J.Mechelynck | 1 Apr 03:14 2007
Picon

Re: Monospaced font problem

Pablo Arantes wrote:
> Tony,
> 
> I very much suspect you're right about it: Pragmata must be lacking
> the specification of being a monospaced font. Other editors besides
> gvim also fail to recognize the font as a valid option. Ironically, I
> was able to set the font as the default in Emacs accepts, but I'm
> afraid it's too late for a change in my religious beliefs now :-)
> 
> I contacted the author of Pragmata to share my concerns but he
> couldn't help me much in this respect. I explained him the problem but
> I'm not sure he understood it. I wonder if there is a feasible way to
> change this specification myself.
> 
> Thanks for your help,
> 
> Pablo

Well, I suppose there is, either by means of a font editor (I suppose such a 
program exists but I don't know under what name) or by binary editing (but I 
don't know what must be changed).

Another question is of course the copyright: by editing that font in such a 
way, you would quite likely be infringeing the terms of the license under 
which you got it. Not that it would matter much as long as you don't 
redistribute the modified version.

Best regards,
Tony.
--

-- 
(Continue reading)

Greg Fitzgerald | 1 Apr 05:30 2007
Picon

bracket completion

Anyone know of a way to achieve bracket completion? For example if your 
typing a if statement, if (something) { once you type the first bracket
the 2nd one is inserted below for you. Scribes and a few other editors
have this functionality and was hoping to achieve it with Vim. Another
thing that this does, if you were to type $data[' for example. The 2nd '
would be inserted for you after your cursor. Just seems to save time
when I played with scribes a few days ago. I was looking through the
help, scripts and mailing list archives for something like this but have
not hit any matches. Just wondering if people have ideas on how this
could be done or maybe know of an existing way. Thanks in advance.

--Greg

Guillaume Bog | 1 Apr 05:35 2007
Picon

Re: invoking yanked register into colon command

On 01/04/07, Georg Dahn <gorgyd <at> yahoo.co.uk> wrote:
> Hi!
>
> > For example, I do often want to
> > replace a name in the text with another. What I used to do is
> > selecting it with mouse and type
> > :%s/<ctrl-ins>/newname/gc
> > Is there a way to do this with the mouse (and without retyping the name) ?
> > What I want is maybe something like 'invoking a yanked register in my
> > colon command'
>
> I have the following in my vimrc file:
>
> function MakeSearchString(str)
>      return substitute(escape( <at> ", '\\/.*$^~[]'), '\n', '\\n', 'g')
> endfunction
>
> function! <SID>VisualSearch(direction)
>      if a:direction == '#'
>          let l:rhs = "y?"
>      else
>          let l:rhs = "y/"
>      endif
>      let l:rhs = l:rhs . "\<C-R>=MakeSearchString( <at> \")\<CR>\<CR>gV"
>      return l:rhs
> endfunction
>
> vnoremap <expr> * <SID>VisualSearch('*')
> vnoremap <expr> # <SID>VisualSearch('#')
>
(Continue reading)

John Wiersba | 1 Apr 05:45 2007
Picon

Re: Why does "<F2>" sometimes get inserted in the text?

No, this is a sporadic thing.  The weird thing is that vim is obviously recognizing that I hit the F2 key (since
it inserts <F2>) but it isn't performing the action that's associated with F2.

----- Original Message ----
From: John Little <john.b.little <at> gmail.com>
To: vim <at> vim.org
Sent: Saturday, March 31, 2007 4:40:17 AM
Subject: Re: Why does "<F2>" sometimes get inserted in the text?

John Wiersba wrote:
> When I press F2, rather than doing the action associated with F2?  Sometimes when this >happens, it will
happen again, but often it won't repeat for a while.

It sounds like you have the mapping defined in normal mode, with :map,
but not in insert mode, with :map!.  Often with Vim one needs two
mappings; for example, I use

map  <F7>    :noh<CR>
map! <F7>   <C-O>:noh<cr>

to turn off search highlighting till the next search.  Note that the
:map! version has to leave insert mode temporarily; that's why they're
separate.  vi was like this.

Apologies if I'm off the mark.

John

 
____________________________________________________________________________________
(Continue reading)

A.J.Mechelynck | 1 Apr 05:46 2007
Picon

Re: bracket completion

Greg Fitzgerald wrote:
> Anyone know of a way to achieve bracket completion? For example if your 
> typing a if statement, if (something) { once you type the first bracket
> the 2nd one is inserted below for you. Scribes and a few other editors
> have this functionality and was hoping to achieve it with Vim. Another
> thing that this does, if you were to type $data[' for example. The 2nd '
> would be inserted for you after your cursor. Just seems to save time
> when I played with scribes a few days ago. I was looking through the
> help, scripts and mailing list archives for something like this but have
> not hit any matches. Just wondering if people have ideas on how this
> could be done or maybe know of an existing way. Thanks in advance.
> 
> --Greg
> 

	:inoremap { {<CR>}<Up><End>
	:inoremap [ []<Left>
	:inoremap ( ()<Left>

etc.

This assumes brace indenting is taken care of (by 'cindent' or 'indentexpr').

IIUC, you can still enter an "unpaired brace" (or bracket or paren) by 
prefixing it with Ctrl-V (or with Ctrl-Q if Ctrl-V pastes).

Best regards,
Tony.
--

-- 
Experience varies directly with equipment ruined.
(Continue reading)

A.J.Mechelynck | 1 Apr 06:01 2007
Picon

Re: bracket completion

A.J.Mechelynck wrote:
> Greg Fitzgerald wrote:
>> Anyone know of a way to achieve bracket completion? For example if 
>> your typing a if statement, if (something) { once you type the first 
>> bracket
>> the 2nd one is inserted below for you. Scribes and a few other editors
>> have this functionality and was hoping to achieve it with Vim. Another
>> thing that this does, if you were to type $data[' for example. The 2nd '
>> would be inserted for you after your cursor. Just seems to save time
>> when I played with scribes a few days ago. I was looking through the
>> help, scripts and mailing list archives for something like this but have
>> not hit any matches. Just wondering if people have ideas on how this
>> could be done or maybe know of an existing way. Thanks in advance.
>>
>> --Greg
>>
> 
>     :inoremap { {<CR>}<Up><End>
>     :inoremap [ []<Left>
>     :inoremap ( ()<Left>
> 
> etc.
> 
> This assumes brace indenting is taken care of (by 'cindent' or 
> 'indentexpr').
> 
> IIUC, you can still enter an "unpaired brace" (or bracket or paren) by 
> prefixing it with Ctrl-V (or with Ctrl-Q if Ctrl-V pastes).
> 
> Best regards,
(Continue reading)

Greg Fitzgerald | 1 Apr 06:19 2007
Picon

Re: bracket completion

On Sun, Apr 01, 2007 at 06:01:34AM +0200, A.J.Mechelynck wrote:

> A.J.Mechelynck wrote:
> >Greg Fitzgerald wrote:
> >>Anyone know of a way to achieve bracket completion? For example if 
> >>your typing a if statement, if (something) { once you type the first 
> >>bracket
> >>the 2nd one is inserted below for you. Scribes and a few other editors
> >>have this functionality and was hoping to achieve it with Vim. Another
> >>thing that this does, if you were to type $data[' for example. The 2nd '
> >>would be inserted for you after your cursor. Just seems to save time
> >>when I played with scribes a few days ago. I was looking through the
> >>help, scripts and mailing list archives for something like this but have
> >>not hit any matches. Just wondering if people have ideas on how this
> >>could be done or maybe know of an existing way. Thanks in advance.
> >>
> >>--Greg
> >>
> >
> >    :inoremap { {<CR>}<Up><End>
> >    :inoremap [ []<Left>
> >    :inoremap ( ()<Left>
> >
> >etc.
> >
> >This assumes brace indenting is taken care of (by 'cindent' or 
> >'indentexpr').
> >
> >IIUC, you can still enter an "unpaired brace" (or bracket or paren) by 
> >prefixing it with Ctrl-V (or with Ctrl-Q if Ctrl-V pastes).
(Continue reading)

Dimitar | 1 Apr 10:00 2007

Re: mapping for jumping to a tag

* Tobia <tobia.conforto <at> linux.it> [070331 20:35]:
> Dimitar wrote:
> > I also tried to map c-j to c-] but it also didn't work.
> 
> Uh?  :map <C-J> <C-]>  works here.
Did you try this in a help file?
:help
then go to a tag and press c-j

<F12> Works for me too but I hoped I can use the c-j, I do not know
why should there be a problem with nomodifiable files like vimhelp

Dimitar

Fritz Mehner | 1 Apr 10:15 2007
Picon

Re: bracket completion

A.J.Mechelynck schrieb:

> Greg Fitzgerald wrote:
>
>> Anyone know of a way to achieve bracket completion? For example if 
>> your typing a if statement, if (something) { once you type the first 
>> bracket
>> the 2nd one is inserted below for you. Scribes and a few other editors
>> have this functionality and was hoping to achieve it with Vim. Another
>> thing that this does, if you were to type $data[' for example. The 2nd '
>> would be inserted for you after your cursor. Just seems to save time
>> when I played with scribes a few days ago. I was looking through the
>> help, scripts and mailing list archives for something like this but have
>> not hit any matches. Just wondering if people have ideas on how this
>> could be done or maybe know of an existing way. Thanks in advance.
>>
>> --Greg
>>
>
>     :inoremap { {<CR>}<Up><End>
>     :inoremap [ []<Left>
>     :inoremap ( ()<Left>
>
> etc.
>
> This assumes brace indenting is taken care of (by 'cindent' or 
> 'indentexpr').
>
> IIUC, you can still enter an "unpaired brace" (or bracket or paren) by 
> prefixing it with Ctrl-V (or with Ctrl-Q if Ctrl-V pastes).
(Continue reading)


Gmane