Re: Reannouncing vimplugin: A vim plugin for Eclipse

2007-04-01 Thread Silent1

Just a quick question about the overal goal of the project. Would vim
just become an editor inside eclipse? Or would we be able to still use
vim inside eclipse but still use code completion say from plugins like
zends php project for eclipse or phpeclipse or any of the languagle
specific plugins? Thanks
--Brendon

On 3/30/07, Sebastian Menge [EMAIL PROTECTED] wrote:

Hi all

After a long time of no activity we restarted the work on a small plugin
to embed vim into the Eclipse IDE.

See http://vimplugin.sf.net and http://sf.net/vimplugin for details.

If you are familiar with eclipse, there is an update site
http://vimplugin.sf.net/update with the latest build.

Microsoft users have to use the cygwin version of vim.

We also have a prototype of an eclipse-plugin that talks to a gvim that
acts as netbeans server (:help netbeans).

More detailed info on that can be found here:
http://vimplugin.svn.sourceforge.net/svnroot/vimplugin/branches/vimclient/doc/README

Both projects are standard eclipse projects that can be checked out
anonymously via subversion (you need subclipse then):

http://vimplugin.svn.sourceforge.net/svnroot/vimplugin/trunk/vimplugin
http://vimplugin.svn.sourceforge.net/svnroot/vimplugin/branches/vimclient

This time we'll keep an better eye on community building: So please try
it out and give some feedback. On http://sf.net/projects/vimplugin you
can find forums and of course mailinglists.

Best regards, Sebastian.




Spell checking in cwindow

2007-04-01 Thread Alexei Alexandrov
Hi All!

When spell checking is on by default, quick fix window is full of spell 
checking errors. Probably it should have off always, shouldn't it?

-- 
Alexei Alexandrov


Re: Spell checking in cwindow

2007-04-01 Thread A.J.Mechelynck

Alexei Alexandrov wrote:

Hi All!

When spell checking is on by default, quick fix window is full of spell 
checking errors. Probably it should have off always, shouldn't it?



Spell checking is off by default (the default for 'spell' is off). If it is on 
in a window you create, it must be because you set it yourself, maybe in your 
vimrc.


To avoid setting it in special windows, use something like

:autocmd BufNewFile,BufReadPost * if buftype != ''
\ | setlocal nospell | endif


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
157. You fum through a magazine, you first check to see if it has a web
 address.


Re: mapping for jumping to a tag

2007-04-01 Thread Dimitar
* Tobia [EMAIL PROTECTED] [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



Re: bracket completion

2007-04-01 Thread Fritz Mehner

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}UpEnd
: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.


In addition I use the following settings

vnoremap  (  s()EscPRight
vnoremap  [  s[]EscPRight
vnoremap  {  s{}EscPRight

to surround a  selection in visual mode.
Regards,
Fritz






Re: mapping for jumping to a tag

2007-04-01 Thread Tobia
Dimitar wrote:
 * Tobia [EMAIL PROTECTED] [070331 20:35]:
  :map C-J C-]  works here.

 Did you try this in a help file?
 :help
 then go to a tag and press c-j

Yes, I tried it in a help window, both in console Vim and in GVim,
before posting.  I don't know where else I can find tags!

Try starting vim -u NONE / gvim -U NONE and see if the problem persists.


Tobia


Re: mapping for jumping to a tag

2007-04-01 Thread Dimitar
* Tobia [EMAIL PROTECTED] [070401 11:30]:
 Dimitar wrote:
  * Tobia [EMAIL PROTECTED] [070331 20:35]:
   :map C-J C-]  works here.
 
  Did you try this in a help file?
  :help
  then go to a tag and press c-j
 
 Yes, I tried it in a help window, both in console Vim and in GVim,
 before posting.  I don't know where else I can find tags!
 
 Try starting vim -u NONE / gvim -U NONE and see if the problem persists.

It works. It seems to be a plugin I'm using.
Thanks for the help. I think I can fix it now.

Dimitar 

 
 
 Tobia


RE: Reannouncing vimplugin: A vim plugin for Eclipse

2007-04-01 Thread Sebastian Menge
Am Samstag, den 31.03.2007, 20:41 -0400 schrieb David Fishburn:
  for the UI-integration (simple textbased vim inside eclipse) 
  you need cygwin.
 
 Is there separate instructions for how to setup the integrated one?

From the vimplugin-devel list.

 I have set up an eclipse update site under
 
 http://vimplugin.sf.net/update
 
 In your eclipse use 
 1) help|updates|find and install
 2) search for new features
 3) new remote site with the URL given above
 4) finish. A dialog should popup presenting you the plugin to install.
 5) restart eclipse.
 
 The plugin runs equally well under windows with the vim version of
 cygwin. If you are under windows, the plugin tries to use
 c:/cygwin/bin/vim.exe, but you can specify another path in the
 preference page of the plugin.

To subscribe to that list go to:
http://lists.sourceforge.net/mailman/listinfo/vimplugin-devel

Your experience reports are greatly appreciated...

Thanks, Sebastian.



Re: Monospaced font problem

2007-04-01 Thread Tobia
Pablo Arantes wrote:
 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 emailed him too.  We share our first language, so maybe he will
understand me better.


 I wonder if there is a feasible way to change this specification myself.

I had a look at the TTF file format[1] and it's quite easy.  I have
attached a small Python script that will query, set or clear the
monospaced flag on a TTF file.  Run it with no arguments to get help.

Remember to operate on a copy of the font file and to install/uninstall
the font through Windows's Control Panel.  That is: make a copy of the
font file; set the flag on it; uninstall the currently installed font;
install the modified version; profit.


Tobia

[1]
http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6.html
http://developer.apple.com/textfonts/TTRefMan/RM06/Chap6post.html
#!/usr/bin/python

import sys, getopt, struct

def get_post_off(f):
f.seek(0)
data = f.read(512)
post_off = None
for i in range(30):
off = 12 + 16 * i
tag = data[off : off + 4]
if tag == 'post':
post_off = struct.unpack('I', data[off + 8 : off + 
12])[0]
break
if not post_off:
raise 'ERROR: cannot find table post in the font directory'
return post_off

def get_mono(f):
post_off = get_post_off(f)
f.seek(post_off + 12)
mono = struct.unpack('i', f.read(4))[0]
return mono

def set_mono(f, n):
post_off = get_post_off(f)
f.seek(post_off + 12)
f.write(struct.pack('i', n))

if __name__ == '__main__':
def usage():
print 'usage: ttfmono [-su] file.ttf'
print '  -s  set the monospaced flag'
print '  -u  unset the monospaced flag'
print '  otherwise: query the monospaced flag'
sys.exit(1)

opts, args = getopt.getopt(sys.argv[1:], 'su')
opts = dict(opts)
opt_set = '-s' in opts
opt_unset = '-u' in opts
if len(args) != 1: usage()
if opt_set and opt_unset: usage()

if opt_set or opt_unset:
ttf_file = open(args[0], 'r+')
else:
ttf_file = open(args[0])
if not ttf_file: usage()

if opt_set:
set_mono(ttf_file, 1)
elif opt_unset:
set_mono(ttf_file, 0)

print 'monospaced flag =', get_mono(ttf_file)
print sys.stderr, '(0 = variable-width, otherwise = monospaced)'
ttf_file.close()


VimNotes Script

2007-04-01 Thread Johan du Preez

After installing this utility/scipt in my plugging directory I have been
getting error code E484 on startup of gvim (can't open temp file).

Why is this, what can i do to solve this problem?



--
Kind regards
Johan du Preez


Re: gVim and Cygwin

2007-04-01 Thread Michael Schaap

On 30-Mar-2007 21:23, A.J.Mechelynck wrote:


OTOH, since (IIRC) builds of Vim available on the Cygwin site are 
usually console builds, to get a Cygwin/X11 build of gvim you would 
have to compile it yourself.


Actually, an X11 gvim *is* available using Cygwin's setup.exe.  It's not 
installed by default, but it is listed, under the 'Editors' category.


- Michael


Re: Reannouncing vimplugin: A vim plugin for Eclipse

2007-04-01 Thread Silent1

Just a quick question about the overal goal of the project. Would vim
just become an editor inside eclipse? Or would we be able to still use
vim inside eclipse but still use code completion say from plugins like
zends php project for eclipse or phpeclipse or any of the languagle
specific plugins? Thanks
--Brendon

On 3/30/07, Sebastian Menge [EMAIL PROTECTED] wrote:

Hi all

After a long time of no activity we restarted the work on a small plugin
to embed vim into the Eclipse IDE.

See http://vimplugin.sf.net and http://sf.net/vimplugin for details.

If you are familiar with eclipse, there is an update site
http://vimplugin.sf.net/update with the latest build.

Microsoft users have to use the cygwin version of vim.

We also have a prototype of an eclipse-plugin that talks to a gvim that
acts as netbeans server (:help netbeans).

More detailed info on that can be found here:
http://vimplugin.svn.sourceforge.net/svnroot/vimplugin/branches/vimclient/doc/README

Both projects are standard eclipse projects that can be checked out
anonymously via subversion (you need subclipse then):

http://vimplugin.svn.sourceforge.net/svnroot/vimplugin/trunk/vimplugin
http://vimplugin.svn.sourceforge.net/svnroot/vimplugin/branches/vimclient

This time we'll keep an better eye on community building: So please try
it out and give some feedback. On http://sf.net/projects/vimplugin you
can find forums and of course mailinglists.

Best regards, Sebastian.




Re: problem loading Python dll

2007-04-01 Thread Yongwei Wu

Hi Johan,

On 4/2/07, Johan du Preez [EMAIL PROTECTED] wrote:

Hi all,

When starting VIM I get the following: E370: Could not load library python25.dll

I have installed Python 2.5, but vim does not appear to see it? How do
I solve this one!.


It should be an installation problem of Python. On my system I can
find python24.dll in C:\WINNT\system32. Please verify it is there (or
in C:\WINDOWS\system32), and PATH includes this directory.

Best regards,

Yongwei

--
Wu Yongwei
URL: http://wyw.dcweb.cn/