kb for j2ee development on vim:

2011-04-15 Thread B V Raghav
Hi Please help or point out a knowledge base/wiki/help, anything if possible to get started with the j2ee development on vim. What I want to understand is, what does an IDE exactly do, when they say create a project, add a Resource Class etc, and how to do that using vim. ---

syntax coloring

2011-04-15 Thread rameo
When I start VIM it shows my tabs and reloads my buffers from the last time. I use a session to do this. au VimEnter * exe so d:\\Session.vim au VimLeave * exe 'mksession! d:\\Session.vim' My reopened files do not have syntax coloring. I have to do :e in every file where I need syntax coloring

Strange key sequence behaviour

2011-04-15 Thread Steve
Hi, I've been experiencing a strange behaviour when typing several keys *quickly*. The email address I use for mailing lists is the one I use here. From time to time, I have to type it in a message. And lastly, when I type it *quickly*, the screen just erases itself, leaving a blank screen and I

Re: syntax coloring

2011-04-15 Thread Tony Mechelynck
On 15/04/11 09:06, rameo wrote: When I start VIM it shows my tabs and reloads my buffers from the last time. I use a session to do this. au VimEnter * exe so d:\\Session.vim au VimLeave * exe 'mksession! d:\\Session.vim' My reopened files do not have syntax coloring. I have to do :e in every

Re: Strange key sequence behaviour

2011-04-15 Thread Tony Mechelynck
On 15/04/11 09:41, Steve wrote: Hi, I've been experiencing a strange behaviour when typing several keys *quickly*. The email address I use for mailing lists is the one I use here. From time to time, I have to type it in a message. And lastly, when I type it *quickly*, the screen just erases

Re: syntax coloring

2011-04-15 Thread rameo
On Apr 15, 11:17 am, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 15/04/11 09:06, rameo wrote: When I start VIM it shows my tabs and reloads my buffers from the last time. I use a session to do this. au VimEnter * exe so d:\\Session.vim au VimLeave * exe 'mksession!

Re: pdf ref search

2011-04-15 Thread Erik Christiansen
On Wed, Apr 13, 2011 at 07:08:06PM -0500, Tim Chase wrote: On 04/13/2011 05:17 PM, Benjamin R. Haskell wrote: On Wed, 13 Apr 2011, Scottb wrote: I suppose that would mean [...] \d+\s\d+\sR [...] BTW... just noticing that characters classes (like \d for digits) don't seem to work in regular

Fwd: K not working correctly: WARNING: terminal is not fully functional

2011-04-15 Thread Tony Mechelynck
-- Forwarded message -- From: Ivan ive...@gmail.com Date: Apr 15, 4:49 am Subject: K not working correctly: WARNING: terminal is not fully functional To: vim_mac When pressing K on keyword, in terminal vim it will produce the man page correctly. However, in MacVim, it

Fwd: K not working correctly: WARNING: terminal is not fully functional

2011-04-15 Thread Tony Mechelynck
-- Forwarded message -- From: Tony Mechelynck antoine.mechely...@gmail.com Date: Apr 15, 12:01 pm Subject: K not working correctly: WARNING: terminal is not fully functional To: vim_mac On Apr 15, 4:49 am, Ivan ive...@gmail.com wrote: When pressing K on keyword, in terminal

Re: why the Up key doesn't work to go through the searching history

2011-04-15 Thread wxuyec
thank you very much. I tried in vim command-line to run what you suggested. It still doesn't work. I think I have to give up. best regards, YC On 4月14日, 下午6时42分, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 14/04/11 15:53, wxuyec wrote: when I run echo -e '\033[?1h\033=' ; cat ;

Re: Eliminating EOL in text files

2011-04-15 Thread Anthony Campbell
On 10 Apr 2011, Ben Schmidt wrote: On 9/04/11 6:51 PM, Andy Wokula wrote: Am 16.12.2010 17:21, schrieb Tim Chase: On 12/16/2010 10:05 AM, Anthony Campbell wrote: That joins ALL the lines. What I need to do is to have each paragraph as a contimuous line, so that when I import the file into

Re: syntax coloring

2011-04-15 Thread Tony Mechelynck
On 15/04/11 11:31, rameo wrote: On Apr 15, 11:17 am, Tony Mechelynckantoine.mechely...@gmail.com wrote: On 15/04/11 09:06, rameo wrote: When I start VIM it shows my tabs and reloads my buffers from the last time. I use a session to do this. au VimEnter * exe so d:\\Session.vim au

Re: syntax coloring

2011-04-15 Thread rameo
On Apr 15, 11:31 am, rameo rai...@gmail.com wrote: On Apr 15, 11:17 am, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 15/04/11 09:06, rameo wrote: When I start VIM it shows my tabs and reloads my buffers from the last time. I use a session to do this. au VimEnter

Re: pdf ref search

2011-04-15 Thread Tim Chase
On 04/15/2011 04:35 AM, Erik Christiansen wrote: Tim, have you tried using /\v to start all regexes in Vim? I know about it, but don't think to use it often because by the time I think grr, I should have used \v, I've got a sufficiently-complex regex that I'd have to go back and modify it

Re: syntax coloring

2011-04-15 Thread Tony Mechelynck
On 15/04/11 12:47, rameo wrote: On Apr 15, 11:31 am, rameorai...@gmail.com wrote: On Apr 15, 11:17 am, Tony Mechelynckantoine.mechely...@gmail.com wrote: On 15/04/11 09:06, rameo wrote: When I start VIM it shows my tabs and reloads my buffers from the last time. I use a session

Re: syntax coloring

2011-04-15 Thread ZyX
Reply to message «syntax coloring», sent 11:06:33 15 April 2011, Friday by rameo: When I start VIM it shows my tabs and reloads my buffers from the last time. I use a session to do this. au VimEnter * exe so d:\\Session.vim au VimLeave * exe 'mksession! d:\\Session.vim' You have made

Re: why the Up key doesn't work to go through the searching history

2011-04-15 Thread Benjamin R. Haskell
On Fri, 15 Apr 2011, wxuyec wrote: thank you very much. I tried in vim command-line to run what you suggested. It still doesn't work. I think I have to give up. I came into this conversation late. Did anyone ask these standard questions: What OS are you using? If you're using Linux,

Re: Strange key sequence behaviour

2011-04-15 Thread Steve
Hi Tony, Thanks for your answer. I've been experiencing a strange behaviour when typing several keys *quickly*. The email address I use for mailing lists is the one I use here. From time to time, I have to type it in a message. And lastly, when I type it *quickly*, the screen just erases

Re: Strange key sequence behaviour

2011-04-15 Thread Tony Mechelynck
On 15/04/11 14:27, Steve wrote: Hi Tony, Thanks for your answer. I've been experiencing a strange behaviour when typing several keys *quickly*. The email address I use for mailing lists is the one I use here. From time to time, I have to type it in a message. And lastly, when I type it

Re: Strange key sequence behaviour

2011-04-15 Thread Ben Schmidt
:verbose map! d It shows my mapping which is ! dlist dl...@bluewin.ch which I put in ~/.vim/mappings If I comment out this line, the problem dissapears. The strange thing is that I have other mappings for email addresses, but no problem with those. I guess you've got a recursive

Re: Strange key sequence behaviour

2011-04-15 Thread Tony Mechelynck
On 15/04/11 15:09, Ben Schmidt wrote: :verbose map! d It shows my mapping which is ! dlist dl...@bluewin.ch which I put in ~/.vim/mappings If I comment out this line, the problem dissapears. The strange thing is that I have other mappings for email addresses, but no problem with those. I

Re: Strange key sequence behaviour

2011-04-15 Thread Ben Schmidt
It shows my mapping which is ! dlist dl...@bluewin.ch which I put in ~/.vim/mappings If I comment out this line, the problem dissapears. The strange thing is that I have other mappings for email addresses, but no problem with those. I guess you've got a recursive mapping there, since the

Re: Starting to write with Vim

2011-04-15 Thread Eric Weir
On Apr 14, 2011, at 9:08 AM, Reid Thompson wrote: I did :set linebreak in a file. I see that it isn't retained when I save, close, and then reopen a file. How do I make this default? in your .[g]vimrc put set linebreak Thanks, Reid. This was my first line in my new vimrc.

Re: Starting to write with Vim

2011-04-15 Thread Eric Weir
On Apr 14, 2011, at 9:13 AM, Tim Gray wrote: Try setting this in your .vimrc: noremap Up gk noremap k gk noremap Down gj noremap j gj That remaps the j, k, and up/down arrows to the gk and gj commands, which move you by screen lines. Finally, can I specify a default

Re: Starting to write with Vim

2011-04-15 Thread Eric Weir
On Apr 14, 2011, at 9:54 AM, Jean-Rene David wrote: I did :set linebreak in a file. I see that it isn't retained when I save, close, and then reopen a file. How do I make this default? You need to put that command in a file that vim reads when it starts up. That file is called a vimrc

Re: Starting to write with Vim

2011-04-15 Thread Eric Weir
On Apr 14, 2011, at 9:55 AM, Tim Chase wrote: I'm finding h, j, k, l; e, b; $, 0; and H, M, L a bit limited While Tim Gray mentioned mappings for gj/gk, I also notice your list omits the f/F/t/T/;/, motions as well as the sentence ( and ) motions. I use the fFtT;, motions *ALL* the

Re: Strange key sequence behaviour

2011-04-15 Thread Tony Mechelynck
On 15/04/11 15:17, Ben Schmidt wrote: It shows my mapping which is ! dlist dl...@bluewin.ch which I put in ~/.vim/mappings If I comment out this line, the problem dissapears. The strange thing is that I have other mappings for email addresses, but no problem with those. I guess you've got a

Re: Strange key sequence behaviour

2011-04-15 Thread Steve
Le 15-04-2011, à 23:09:00 +1000, Ben Schmidt (mail_ben_schm...@yahoo.com.au) a écrit : :verbose map! d It shows my mapping which is ! dlist dl...@bluewin.ch which I put in ~/.vim/mappings If I comment out this line, the problem dissapears. The strange thing is that I have other

File path completion relative to current file directory

2011-04-15 Thread Martin Lundberg
Hi, Is it possible to make the file path completion relative to the current files directory? I don't want to set autochdir but only want for file path completion. Best wishes, -Martin -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

Re: Fwd: K not working correctly: WARNING: terminal is not fully functional

2011-04-15 Thread Taylor Hedberg
I usually see that message when my terminal is not in the system's terminfo/termcap database. My terminal is rxvt-unicode, but I frequently SSH in to systems that don't know about that terminal, and therefore can't figure out what the proper escape sequences are. I solve that problem either by

Re: Strange key sequence behaviour

2011-04-15 Thread Tony Mechelynck
On 15/04/11 16:14, Steve wrote: Le 15-04-2011, à 23:09:00 +1000, Ben Schmidt (mail_ben_schm...@yahoo.com.au) a écrit : :verbose map! d It shows my mapping which is ! dlistdl...@bluewin.ch which I put in ~/.vim/mappings If I comment out this line, the problem dissapears. The

Re: Fwd: K not working correctly: WARNING: terminal is not fully functional

2011-04-15 Thread Tony Mechelynck
On 15/04/11 16:32, Taylor Hedberg wrote: I usually see that message when my terminal is not in the system's terminfo/termcap database. My terminal is rxvt-unicode, but I frequently SSH in to systems that don't know about that terminal, and therefore can't figure out what the proper escape

Re: Starting to write with Vim

2011-04-15 Thread Eric Weir
On Apr 14, 2011, at 9:55 AM, Tim Chase wrote: I'm finding h, j, k, l; e, b; $, 0; and H, M, L a bit limited While Tim Gray mentioned mappings for gj/gk, I also notice your list omits the f/F/t/T/;/, motions as well as the sentence ( and ) motions. I use the fFtT;, motions *ALL* the

Re: Starting to write with Vim

2011-04-15 Thread Reid Thompson
On Fri, Apr 15, 2011 at 10:50:27AM -0400, Eric Weir wrote: On Apr 14, 2011, at 9:55 AM, Tim Chase wrote: I'm finding h, j, k, l; e, b; $, 0; and H, M, L a bit limited While Tim Gray mentioned mappings for gj/gk, I also notice your list omits the f/F/t/T/;/, motions as well as the

Re: Starting to write with Vim

2011-04-15 Thread Reid Thompson
On Fri, Apr 15, 2011 at 10:56:17AM -0400, Reid Thompson wrote: On Fri, Apr 15, 2011 at 10:50:27AM -0400, Eric Weir wrote: Thanks for bringing these to my attention, Tim -- and for the other suggestions. I get ( and ) and w/W/b/B/e/E, but f/F/t/T are eluding me at the moment. I can't tell

Re: Starting to write with Vim

2011-04-15 Thread Tony Mechelynck
On 15/04/11 16:50, Eric Weir wrote: On Apr 14, 2011, at 9:55 AM, Tim Chase wrote: I'm finding h, j, k, l; e, b; $, 0; and H, M, L a bit limited While Tim Gray mentioned mappings for gj/gk, I also notice your list omits the f/F/t/T/;/, motions as well as the sentence ( and ) motions. I use

Re: Starting to write with Vim

2011-04-15 Thread Eric Weir
On Apr 14, 2011, at 11:04 AM, Scott Bicknell wrote: w/b move forward/backward by word W/B move forward/backward by word including punctuation (/) move backward/forward by sentence {/} move backward/forward by paragraph /,? search forward, backward These may be used with d, c or y to dw

Re: Starting to write with Vim

2011-04-15 Thread Eric Weir
On Apr 14, 2011, at 11:07 AM, Taylor Hedberg wrote: Jean-Rene David, Thu, Apr 14, 2011 at 09:54:36AM -0400: I'm finding h, j, k, l; e, b; $, 0; and H, M, L a bit limited as ways to move around the screen. And indeed they are, but they barely scratch the surface of the motion commands at

Re: Starting to write with Vim

2011-04-15 Thread Tim Gray
On Apr 15, 2011 at 10:50 AM -0400, Eric Weir wrote: Thanks for bringing these to my attention, Tim -- and for the other suggestions. I get ( and ) and w/W/b/B/e/E, but f/F/t/T are eluding me at the moment. I can't tell what they do. It might be worth checking out one of the vim books and

Re: syntax coloring

2011-04-15 Thread rameo
On Apr 15, 1:43 pm, ZyX zyx@gmail.com wrote: Reply to message «syntax coloring», sent 11:06:33 15 April 2011, Friday by rameo: When I start VIM it shows my tabs and reloads my buffers from the last time. I use a session to do this. au VimEnter * exe so d:\\Session.vim au

Re: Starting to write with Vim

2011-04-15 Thread Tim Chase
On 04/15/2011 09:50 AM, Eric Weir wrote: but f/F/t/T are eluding me at the moment. I can't tell what they do. They allow you to jump to (f/F) or one-character-shy-of (t/T) the Nth (default N=1) match of the subsequent letter. So in this paragraph, if I'm at the beginning (on the T in They),

Re: File path completion relative to current file directory

2011-04-15 Thread Gary Johnson
On 2011-04-15, Martin Lundberg wrote: Hi, Is it possible to make the file path completion relative to the current files directory? I don't want to set autochdir but only want for file path completion. This may not be exactly what you're looking for, but here's what I do. :e C-R% where

Re: Starting to write with Vim

2011-04-15 Thread Eric Weir
On Apr 14, 2011, at 11:23 AM, Christian Brabandt wrote: On Thu, April 14, 2011 5:01 pm, Ben Fritz wrote: After you find a font you can set it permanently in your .gvimrc as others have suggested. The best way I've found to do this is, while editing your .gvimrc, with the desired font set,

Re: syntax coloring

2011-04-15 Thread ZyX
Reply to message «Re: syntax coloring», sent 19:13:18 15 April 2011, Friday by rameo: Please let me ask you one more question... How do you close this session and reopens a custom one (happens once in a while)? I don't use one continious vim session and don't load any sessions at vim startup

Re: File path completion relative to current file directory

2011-04-15 Thread ZyX
Reply to message «Re: File path completion relative to current file directory», sent 19:27:22 15 April 2011, Friday by Gary Johnson: This may not be exactly what you're looking for, but here's what I do. :e C-R% where :e can be any ex command requiring a file name and C-R means

Re: Starting to write with Vim

2011-04-15 Thread Eric Weir
On Apr 14, 2011, at 11:57 AM, Steve Litt wrote: Look at VimOutliner (http://www.troubleshooters.com/projects/alt-vimoutliner-litt/). Sorry, Steve. Missed this in your message. [*How* is that possible?] And wordwrap in the message caused me to overlook the last five characters in the

Re: Starting to write with Vim

2011-04-15 Thread David Ohlemacher
Try :help f ... On 04/15/2011 10:50 AM, Eric Weir wrote: On Apr 14, 2011, at 9:55 AM, Tim Chase wrote: I'm finding h, j, k, l; e, b; $, 0; and H, M, L a bit limited While Tim Gray mentioned mappings for gj/gk, I also notice your list omits the f/F/t/T/;/, motions as well as the sentence (

Re: File path completion relative to current file directory

2011-04-15 Thread Gary Johnson
On 2011-04-15, ZyX wrote: Reply to message «Re: File path completion relative to current file directory», sent 19:27:22 15 April 2011, Friday by Gary Johnson: This may not be exactly what you're looking for, but here's what I do. :e C-R% where :e can be any ex command

Re: Starting to write with Vim

2011-04-15 Thread Eric Weir
On Apr 15, 2011, at 11:03 AM, Tony Mechelynck wrote: On 15/04/11 16:50, Eric Weir wrote: On Apr 14, 2011, at 9:55 AM, Tim Chase wrote: While Tim Gray mentioned mappings for gj/gk, I also notice your list omits the f/F/t/T/;/, motions as well as the sentence ( and ) motions. I use the

Re: Starting to write with Vim

2011-04-15 Thread Eric Weir
On Apr 15, 2011, at 11:15 AM, Tim Chase wrote: On 04/15/2011 09:50 AM, Eric Weir wrote: but f/F/t/T are eluding me at the moment. I can't tell what they do. They allow you to jump to (f/F) or one-character-shy-of (t/T) the Nth (default N=1) match of the subsequent letter. So in this

Re: Starting to write with Vim

2011-04-15 Thread Eric Weir
On Apr 15, 2011, at 11:12 AM, Tim Gray wrote: It might be worth checking out one of the vim books and working through it. If you don't feel like paying for one, this pdf is linked to for free from vim.org... ftp://ftp.vim.org/pub/vim/doc/book/vimbook-OPL.pdf Agreed. And I've got the

Re: File path completion relative to current file directory

2011-04-15 Thread Martin Lundberg
On Friday, April 15, 2011 5:52:40 PM UTC+2, ZyX wrote: I guess he wanted insert mode completion as it makes more sense (for example, for «#include ...» preprocesser statement). In this case he has to write custom vim function to do completion (:h complete()). Yes I meant insert mode

Unsubscribe

2011-04-15 Thread Karl
/ktb -Original Message- From: Martin Lundberg martin.lundb...@gmail.com Sender: vim_use@googlegroups.com Date: Fri, 15 Apr 2011 11:57:56 To: vim_use@googlegroups.com Reply-To: vim_use@googlegroups.com Cc: zyx@gmail.com Subject: Re: File path completion relative to current file

Re: syntax coloring

2011-04-15 Thread rameo
On Apr 15, 8:55 pm, ZyX zyx@gmail.com wrote: Reply to message «Re: syntax coloring», sent 21:39:21 15 April 2011, Friday by rameo: Still have a little problem. I had also a VimLeave argdel command in my _vimrc. Is this correct?: augroup SaveRestoreSessions autocmd! autocmd

Re: syntax coloring

2011-04-15 Thread ZyX
Reply to message «Re: syntax coloring», sent 23:02:40 15 April 2011, Friday by rameo: Tnx.. this is what I added: autocmd VimLeave * if argc() != 0 | 'argdel *' endif Reread help. This is false: you should not use strikes around `argdel *' and you should have bar before `endif' just like you

Re: syntax coloring

2011-04-15 Thread rameo
On Apr 15, 9:14 pm, ZyX zyx@gmail.com wrote: Reply to message «Re: syntax coloring», sent 23:02:40 15 April 2011, Friday by rameo: Tnx.. this is what I added: autocmd VimLeave * if argc() != 0 | 'argdel *' endif Reread help. This is false: you should not use strikes around `argdel *'

Re: syntax coloring

2011-04-15 Thread Karl
Unsubscribe /ktb -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

Re: syntax coloring

2011-04-15 Thread rameo
On Apr 15, 9:14 pm, ZyX zyx@gmail.com wrote: Reply to message «Re: syntax coloring», sent 23:02:40 15 April 2011, Friday by rameo: Tnx.. this is what I added: autocmd VimLeave * if argc() != 0 | 'argdel *' endif Reread help. This is false: you should not use strikes around `argdel *'

Re: syntax coloring

2011-04-15 Thread rameo
On Apr 15, 5:43 pm, ZyX zyx@gmail.com wrote: Reply to message «Re: syntax coloring», sent 19:13:18 15 April 2011, Friday by rameo: Please let me ask you one more question... How do you close this session and reopens a custom one (happens once in a while)? I don't use one continious

Re: syntax coloring

2011-04-15 Thread Tim Gray
On Apr 15, 2011 at 07:29 PM +, Karl wrote: Unsubscribe Why not try sending an email to: mailto:vim_use+unsubscr...@googlegroups.com -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit

[no subject]

2011-04-15 Thread Karl
Help /ktb -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php

Re: syntax coloring

2011-04-15 Thread ZyX
Reply to message «Re: syntax coloring», sent 23:29:29 15 April 2011, Friday by rameo: I found a new way to integrate argdel: augroup SaveRestoreSessions autocmd! autocmd VimEnter * nested source $VIM\vimfiles\sessions\Session.vim autocmd VimLeave * call MakeSession() autocmd VimLeave *

Re: syntax coloring

2011-04-15 Thread rameo
On Apr 15, 10:02 pm, ZyX zyx@gmail.com wrote: Reply to message «Re: syntax coloring», sent 23:29:29 15 April 2011, Friday by rameo: I found a new way to integrate argdel: augroup SaveRestoreSessions autocmd! autocmd VimEnter * nested source $VIM\vimfiles\sessions\Session.vim

Re: syntax coloring

2011-04-15 Thread ZyX
Reply to message «Re: syntax coloring», sent 00:32:32 16 April 2011, Saturday by rameo: Is this the correct one? augroup SaveRestoreSessions autocmd! autocmd VimEnter * nested source D:\Session.vim autocmd VimLeave * call ClearArgs() autocmd VimLeave * nested mksession! D:\Session.vim