Re: Coding in Java using Vim

2009-11-25 Thread Srikanth Venkateswaran
Hi, Thanks for all the replies. I didn't expect so many and so quick. >> Eclim probably won't solve the speed issues for you. Actually it partly did. The background eclipse runs on the server (half the world away) and doesn't have to transport the entire GUI across the n/w since the frontend s o

Re: Filetype plugins strategy

2009-11-25 Thread Gary Johnson
On 2009-11-26, Tony Mechelynck wrote: > On 26/10/09 21:23, Charles Campbell wrote: > > Don't modify the global filetype.vim -- next time you upgrade, your > > modification(s) will be overwritten. > > > > Modify/create $HOME/.vim/filetype.vim . An example of a typical entry: > > > > if exists(

RE: Indenting ruby code

2009-11-25 Thread Tuo Pe
> That's correct to use a tab for each indent. Read more > here: > > http://vim.wikia.com/wiki/Indenting_source_code > > John Thanks, John, for answering and providing me with the link. Originally, I put the settings into the .vim/indent/ruby.vim file, but I will move them to .vim/after/ftplu

Re: [off] Need help to design Vim T-shirts

2009-11-25 Thread Ismael Barros²
On Thu, Nov 26, 2009 at 7:38 AM, Marczis, Peter (NSN - HU/Budapest) wrote: > > Hi, > where can I have VIM T-shirt ? The font will be good, unfortunately I > don't know which is it... It will be available at http://www.freewear.org/ in around one or two weeks --~--~-~--~~

[off] Need help to design Vim T-shirts

2009-11-25 Thread Marczis, Peter (NSN - HU/Budapest)
Hi, where can I have VIM T-shirt ? The font will be good, unfortunately I don't know which is it... Br, Peter. -Original Message- From: vim_use@googlegroups.com [mailto:vim_...@googlegroups.com] On Behalf Of ext Ismael Barros2 Sent: Thursday, November 26, 2009 2:37 AM To: B

Need good tab-page tips on Vim Tips wiki

2009-11-25 Thread Benjamin Fritz
I sometimes hang out on the #vim channel on Freenode, where use of tab pages is often discouraged in favor of efficient use of the buffer/argument lists, split windows, and the 'hidden' option. Personally, I prefer using tab pages in many circumstances, but have never really had any specific adva

Re: Filetype plugins strategy

2009-11-25 Thread Tony Mechelynck
On 26/10/09 21:23, Charles Campbell wrote: > > Pablo Giménez wrote: >> Hi all. >> I am writinga global plugin that, among other things, will override >> some filetype settings. >> So basically I have my plugin in the runtime and I want to know what >> is the more ellegant/best wasy to: >> - Overri

Re: Rather newbie question

2009-11-25 Thread Tony Mechelynck
On 26/10/09 18:02, Gary Johnson wrote: > > On 2009-10-26, Gabor Urban wrote: >> Hi guys, >> >> I have written an own vim file which contains some function. Let >> suppose, it is called 'myfuncs.vim'. How can I execute function >> "PrtHeading" from the file. Should I load it before, and how. > > As

Re: X11 selection mechanism fails in slackware 13.0 x86_64

2009-11-25 Thread Gary Johnson
On 2009-11-25, Peter Berntsen wrote: > Hi, > I'm running slackware 13 with Xfce or KDE desktop. > > I doesn't work to paste text to and from one Vim into another separate > Vim, terminal or Firefox. > Basically I can't reproduce what is discussed in the help section; > Making GUI Selections *clip

Re: vimgrep: not jump to finding result

2009-11-25 Thread Steven Woody
On Wed, Nov 4, 2009 at 12:01 AM, Ben Fritz wrote: > > > > On Nov 1, 12:25 am, Steven Woody wrote: >> >> After vimgrep finished searching, it put findings in a quickfix buffer >> and open and jump to the first entry in the finding list. > > If you read :help :vimgrep or the nice tip we have on th

Re: A quick way to get abstract from a very _long_ article?

2009-11-25 Thread Tim Chase
> Now I know with this command: > :g/\(Lesson \d\{1,3}\)\|Abstract\|\(-\)/t$ Depending on the complexity of your document and how whitespace is treated, you can do most of them pretty easily: :g/^Lesson \d\+//^Abstract/;/^...@!/t$ This assumes that there are no blank lines between your "-"

Re: Need help to design Vim T-shirts

2009-11-25 Thread Ismael Barros²
The T-shirt is almost here. A little question: which font would look better for the ":wq!" on the back? The font in "http://www.vim.org/images/vim_header.gif"; looks appropiate, does any of you know which one is it? Regards, Ismael --~--~-~--~~~---~--~~ You receiv

Re: Size of icons under Vim

2009-11-25 Thread Tony Mechelynck
On 25/11/09 21:06, epanda wrote: > > > On 25 nov, 10:36, Tony Mechelynck > wrote: >> On 25/11/09 09:47, epanda wrote: >> >> > >> >> So yes, you may construct larger images, but when you apply them to your >> toolbar menus, they will be scaled, at least for Windows and GTK. It >> isn't clear to me

Re: X11 selection mechanism fails in slackware 13.0 x86_64

2009-11-25 Thread Tim Chase
> I'm running slackware 13 with Xfce or KDE desktop. > > I doesn't work to paste text to and from one Vim into another separate > Vim, terminal or Firefox. It may be that you have a build that doesn't include clipboard support. Could you provide the output of :version (I'm most interested

Re: Weird behaviour with the manpage view plugin

2009-11-25 Thread Charles E Campbell Jr
P.L. Francisco wrote: > Hi, > > I've been using the Man page view plugin for a while now, and it's really > good, > but there's a little issue who keeps me annoying. Right now I'm programming > mostly > on php, and since I'm not really a pro, I use the man plugin a lot, what I've > seen >

RE: Indenting ruby code

2009-11-25 Thread John Beckett
Tuo Pe wrote: > What is the proper way and place to change this? After > > :set sw=2 > :set ts=2 > > indentation seemed to be alright. Anyway, what is the proper > way to change the indentation size? That's correct to use a tab for each indent. Read more here: http://vim.wikia.com/wiki/Inden

X11 selection mechanism fails in slackware 13.0 x86_64

2009-11-25 Thread Peter Berntsen
Hi, I'm running slackware 13 with Xfce or KDE desktop. I doesn't work to paste text to and from one Vim into another separate Vim, terminal or Firefox. Basically I can't reproduce what is discussed in the help section; Making GUI Selections *clipboard*. If Shift + marking text works from Vim to

A quick way to get abstract from a very _long_ article?

2009-11-25 Thread Isaac
Hi, I have a very long article, I want to get abstract from every lesson quickly, like this: Lesson 1 "This is what i want to get Some Body text here.. "This is _not_ what i want to get Some Body text here..

Weird behaviour with the manpage view plugin

2009-11-25 Thread P.L. Francisco
Hi, I've been using the Man page view plugin for a while now, and it's really good, but there's a little issue who keeps me annoying. Right now I'm programming mostly on php, and since I'm not really a pro, I use the man plugin a lot, what I've seen is that when it doesn't find the functi

Func does not do the job when no file is opened

2009-11-25 Thread epanda
Hi, I don't understand why this func is working when I start Gvim and have an opened file and not just after starting Gvim without opening a file? func! RestoreMyVimfiles() " maj chemin destination perso vers cle usb let cheminSource = FindMyUsbKeyDrive() . '\Perso_Nico\utilit

creating syntax files

2009-11-25 Thread Nathaniel Echols
I'm trying to create a syntax file for a config file format used internally by our code - we use the files as GUI templates, so I spend a lot of time editing the metadata. I've hacked existing syntax definitions before, but I'm missing some of the subtleties of region matching. The syntax itself

Re: Size of icons under Vim

2009-11-25 Thread epanda
On 25 nov, 10:36, Tony Mechelynck wrote: > On 25/11/09 09:47, epanda wrote: > > > > So yes, you may construct larger images, but when you apply them to your > toolbar menus, they will be scaled, at least for Windows and GTK. It > isn't clear to me what will happen if you invoke nonstandard-size

Re: how let the vim script know that the tags search failed

2009-11-25 Thread Charles Campbell
Christian Brabandt wrote: > Hi yixiaodafang! > > On Mi, 25 Nov 2009, yixiaodaf...@gmail.com wrote: > > >> The v:errmsg does help me to know there are any error when running the >> command. However, I am experiancing another issue. Every time when the >> command exe "tag " . searchsymbol could n

Re: Problem with ctags

2009-11-25 Thread Tuo Pe
> That's pretty much up to you, but I find it easier to > manage > filetype-specific settings if they're put in > ~/.vim/ftplugin or > ~/.vim/after/ftplugin.  To make sure that my settings > override any > made in the standard $VIMRUNTIME/ftplugin files, I > generally put > mine in the ~/.vim/aft

Re: how let the vim script know that the tags search failed

2009-11-25 Thread Christian Brabandt
Hi yixiaodafang! On Mi, 25 Nov 2009, yixiaodaf...@gmail.com wrote: > The v:errmsg does help me to know there are any error when running the > command. However, I am experiancing another issue. Every time when the > command exe "tag " . searchsymbol could not find the tag, it will > print the err

Re: how let the vim script know that the tags search failed

2009-11-25 Thread yixiaodaf...@gmail.com
Thanks for the quick help. The v:errmsg does help me to know there are any error when running the command. However, I am experiancing another issue. Every time when the command exe "tag " . searchsymbol could not find the tag, it will print the error messages and ask me to press any key. Even whe

perl-support plugin problems

2009-11-25 Thread Pete Barlow
Hi, I'm having a few problems with this plugin and I wonder if someone can point me in the right direction. I've installed the plugin following the instructions for MSWIN and when running GVIM the plugin loads and the menu items are available. However I've noticed a couple of things that don'

perl-support plugin problems

2009-11-25 Thread Pete Barlow
Hi, I'm having a few problems with this plugin and I wonder if someone can point me in the right direction. I've installed the plugin following the instructions for MSWIN and when running GVIM the plugin loads and the menu items are available. However I've noticed a couple of things that don'

Re: Problem with ctags

2009-11-25 Thread Gary Johnson
On 2009-11-25, Tuo Pe wrote: > Most likely I added this line, > > autocmd FileType python set complete+=k~/.vim/syntax/python.vim isk+=.,( > > to my .vimrc based on the advice I got from > > > Maybe the author meant

Re: Problem with ctags

2009-11-25 Thread Gary Johnson
On 2009-11-25, Tuo Pe wrote: > --- On Wed, 11/25/09, Gary Johnson wrote: > > > From: Gary Johnson > > > Note that vim complains about not finding the tag > > "init_gnome(", not > > "init_gnome".  This suggests that "(" is included in > > the 'iskeyword' > > option.  It isn't by default.  To ve

Re: Problem with ctags

2009-11-25 Thread Tuo Pe
Most likely I added this line, autocmd FileType python set complete+=k~/.vim/syntax/python.vim isk+=.,( to my .vimrc based on the advice I got from Maybe the author meant it should be added to the file ~/.vim/syntax

Re: Problem with ctags

2009-11-25 Thread Tuo Pe
--- On Wed, 11/25/09, Gary Johnson wrote: > From: Gary Johnson > Note that vim complains about not finding the tag > "init_gnome(", not > "init_gnome".  This suggests that "(" is included in > the 'iskeyword' > option.  It isn't by default.  To verify that the > "(" is there and > to see what

Re: how let the vim script know that the tags search failed

2009-11-25 Thread Gary Johnson
On 2009-11-25, frank wang wrote: > Hi, > > I am writing a vim script and I need to know whether the tag search > failed or not. Does anyone know how to do it? For example, after > execution > > exe "tag " . searchsymbol > > How do i know it fails to find the tag symbol? You could test the valu

how let the vim script know that the tags search failed

2009-11-25 Thread frank wang
Hi, I am writing a vim script and I need to know whether the tag search failed or not. Does anyone know how to do it? For example, after execution exe "tag " . searchsymbol How do i know it fails to find the tag symbol? Thanks Frank --~--~-~--~~~---~--~~ You r

Re: Problem with ctags

2009-11-25 Thread Gary Johnson
On 2009-11-25, Tuo Pe wrote: > Hello! > > I have Vim 7.2.245 on Ubuntu 9.10. > > I am browsing through this source code: > > def __open(argv=None): > uris = __get_uris(argv) > __open_via_dbus(uris) > from Utils import init_gnome > init_gnome() > from InstanceMana

Re: iconv() problem

2009-11-25 Thread Yongwei Wu
2009/11/26 Bram Moolenaar : > > Yongwei Wu wrote: > >> The help on iconv() writes: >> >>               When the conversion fails an empty string is returned. >> >> In fact, I have not found a way to make the conversion fail. >> >> When a file containing the following text encoded in cp936 is read i

Problem with ctags

2009-11-25 Thread Tuo Pe
Hello! I have Vim 7.2.245 on Ubuntu 9.10. I am browsing through this source code: def __open(argv=None): uris = __get_uris(argv) __open_via_dbus(uris) from Utils import init_gnome init_gnome() from InstanceManager import Manager Manager().open_f

Re: iconv() problem

2009-11-25 Thread Bram Moolenaar
Yongwei Wu wrote: > The help on iconv() writes: > > When the conversion fails an empty string is returned. > > In fact, I have not found a way to make the conversion fail. > > When a file containing the following text encoded in cp936 is read in > Vim as euc-jp, Vim complains "[

Re: expression to match dirname pattern

2009-11-25 Thread rob
"^.[^|]*/" does it. --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Indenting ruby code

2009-11-25 Thread Tuo Pe
Hello! I have installed the files from and the script . However, when editing ruby code, tab size seems to eight (8), which is too much. What is the proper way and place to change this? After :set sw=2

Re: expression to match dirname pattern

2009-11-25 Thread rob
Any help on this anyone? --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: Create menu with for ?

2009-11-25 Thread Maxim Kim
On 25 ноя, 13:28, "Marczis, Peter (NSN - HU/Budapest)" wrote: > Hi, > what should be the good syntax in this case ? > >             for item in sacks >                 menu ]environments.{item} echo "coool" >             endfor > > sacks is a list. and I would like to create a menu from this li

RE: Create menu with for ?

2009-11-25 Thread Marczis, Peter (NSN - HU/Budapest)
Sorry, by the time I found the answare for myself... for v in vers let command = 'menu ]environments.' . substitute(strpart(v,3), '\', '.', "g") . ' :let $sack="' . substitute(strpart(v,3), '\', ' ', "g") . '"' exec command e

Create menu with for ?

2009-11-25 Thread Marczis, Peter (NSN - HU/Budapest)
Hi, what should be the good syntax in this case ? for item in sacks menu ]environments.{item} echo "coool" endfor sacks is a list. and I would like to create a menu from this list... but, how can I use the item variable to create the menu ? thanks for al

RE: How to get directory list from script ?

2009-11-25 Thread Marczis, Peter (NSN - HU/Budapest)
Hi, thanks for the answers ! This way (see below) is the best for me. Br, Peter. -Original Message- From: vim_use@googlegroups.com [mailto:vim_...@googlegroups.com] On Behalf Of ext Luc Hermitte Sent: Wednesday, November 25, 2009 11:37 AM To: vim use Subject: Re: How to get

Re: Something is messing up a simple mapping.

2009-11-25 Thread Jan-Herbert Damm
Chris Jones wrote on 24.11.09: > What started this in the first place, is that a couple of months ago, I > decided to tidy up my .vimrc and among many other different things I > blissfully decided to change: > [...] thanks for the instructive lesson on small causes and big effects! jan --~-

Re: Size of icons under Vim

2009-11-25 Thread Tony Mechelynck
On 25/11/09 09:47, epanda wrote: > > Hi, > > I would like to know if we can use icon that have more than 20x20 > pixels of (widthxheight). > > Or if I can augment the size of icon's menu ? > > Thanks See ":help toolbar-icon" about installing nonstandard icons, and in particular this: > For

Re: How to get directory list from script ?

2009-11-25 Thread Luc Hermitte
Hello, "Peter Marczis (NSN - HU/Budapest)" wrote : > I would like to write a vim script which reads into a list , the > directory tree… > how it is possible to get the subdirectories into a list ? (from PWD > for example.) You can also play with: echo filter(split(globpath(getcwd(), '**'), '\

Re: Help: Formatting comments

2009-11-25 Thread Tony Mechelynck
On 26/10/09 16:17, Gregory Margo wrote: > > On Mon, Oct 26, 2009 at 03:15:29PM +0530, Rajesh Kannan wrote: >> I use the Baan programming language where "|" is the comment. I tried >> to add the following to .vmrc but of no avail. >> >> set comments+=n:|.* >> >> There are no errors when vim starts

Size of icons under Vim

2009-11-25 Thread epanda
Hi, I would like to know if we can use icon that have more than 20x20 pixels of (widthxheight). Or if I can augment the size of icon's menu ? Thanks --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://