Moving between Java methods

2011-07-27 Thread Russell Bateman
A long-time vi, then Vim user, I was also a long-time C/assembly guy. For the last several years, I've been using Eclipse and Vim to edit Java files. However belatedly I make this request, I would finally want to know how to modify .vimrc to allow me to move between Java methods just as I used to

Re: Moving between Java methods

2011-07-27 Thread Russell Bateman
So there is and it works great. Problem solved. Thanks! Russ On 27-Jul-11 16:25, David Lam wrote: On Wed, Jul 27, 2011 at 2:41 PM, Russell Bateman mailto:r...@windofkeltia.com>> wrote: A long-time vi, then Vim user, I was also a long-time C/assembly guy. For the last several

Consuming 'filetype' stuff from .vimrc

2011-08-26 Thread Russell Bateman
I would like to know how how to adjust the width (set columns) in gvim based on filetype that, I assume, Vim knows by reason of the file I've launched it on. For example, if it's a Java file (.java), I'd like to make it 120 columns wide, but leave it maybe 80 for all others. I realize that I might

Re: Consuming 'filetype' stuff from .vimrc

2011-08-26 Thread Russell Bateman
Thank you very much, Simon! It seems to work perfectly. On Fri, Aug 26, 2011 at 3:27 PM, Simon Nicolussi wrote: > Russell Bateman wrote: >> For example, if it's a Java file (.java), I'd like to make it 120 >> columns wide, but leave it maybe 80 for all others. >

Re: O-Reilly's Learning the vi and Vim Editors

2011-09-02 Thread Russell Bateman
Everyone learns differently, but the O'Reilly book is just about the only one there is and it's not bad. I learned vi 30 years ago rubbing shoulders with UNIX guys for that's what came with UNIX and worked nearly identically no matter which flavor (System V or BSD). It's a lot to bite off and

Repeat last search and replace

2011-09-14 Thread Russell Bateman
Once I've typed in a command to search and replace for something, for example: %s/search/replace/g how can I re-execute that command without retyping it? (I have a string of source files between which I'm moving via :n each time and I don't want to have to retype the command; dot won't w