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... > > Agreed. And I've got

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 t

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 ")" motio

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: 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 addr

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/). It has levelled headings and wrapping body text right out of the box. > All the Vim commands you learn in this thread are equally useful in > VimOutliner, bu

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 s

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: 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 w

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 >>

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 t

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

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 c

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 wel

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*

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*

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 "v

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 gk >noremap k gk >noremap 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: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-14 Thread Gary Johnson
On 2011-04-14, David Ohlemacher wrote: > I just posted this, but in case you missed it... You might concider adding > these lines to your .vimrc. > > Or when > you paste from your > clipboard you may see > your text > mangled with indentations >

Re: Starting to write with Vim

2011-04-14 Thread Tim Gray
On Apr 14, 2011 at 03:08 PM -0400, Eric Weir wrote: If I'd invested in a new machine, instead of trying to get linux to work the way I wanted on a clunky old one, I probably wouldn't have had to flounder. But then I'd never discovered Mac. I'm glad I discovered Mac. It just works. Well just s

Re: Starting to write with Vim

2011-04-14 Thread Eric Weir
On Apr 14, 2011, at 2:45 PM, Tim Gray wrote: >> While I'm at it, in floundering around with Vim I've encountered paths that >> I can't navigate to in Finder [actually, Path Finder]. Some, maybe all, >> started with "/usr". Where the hell is "usr" on a Mac? > > it's a hidden folder in Finde

Re: Starting to write with Vim

2011-04-14 Thread Tim Gray
On Apr 14, 2011 at 02:32 PM -0400, Eric Weir wrote: '/user/ericweir/foobar' is equivalent to '~/foobar', but not to '/user/~/foobar' (which is meaningless). Furthermore, since you are on a Mac, it's '/Users/ericweir'. While I'm at it, in floundering around with Vim I've encountered paths that

Re: Starting to write with Vim

2011-04-14 Thread Eric Weir
On Apr 14, 2011, at 2:09 PM, Jean-Rene David wrote: > '/user/ericweir/foobar' is equivalent to '~/foobar', but not to > '/user/~/foobar' (which is meaningless). Thanks for the clarification. While I'm at it, in floundering around with Vim I've encountered paths that I can't navigate to in Find

Re: Starting to write with Vim

2011-04-14 Thread David Ohlemacher
I just posted this, but in case you missed it... You might concider adding these lines to your .vimrc. Or when you paste from your clipboard you may see your text mangled with indentations like this "The first line sets a mapping s

Re: Starting to write with Vim

2011-04-14 Thread Eric Weir
On Apr 14, 2011, at 10:19 AM, Stefan Klein wrote: > I found Derek Wyatts videos very inspiring. http://www.derekwyatt.org/ Thanks for suggestion this, Stefan. Yeah, the whole site looks interesting. I've bookmarked it. ---

Re: Starting to write with Vim

2011-04-14 Thread Eric Weir
On Apr 14, 2011, at 1:55 PM, Jean-Rene David wrote: > But you're going to have to spell it right otherwise it won't work (it's > vimrc, not virmc). ;-) Yes, I'm having trouble with that. I have to double-check every time I type it! Thanks, ---

Re: Starting to write with Vim

2011-04-14 Thread Eric Weir
On Apr 14, 2011, at 1:47 PM, Vera, Pedro L. wrote: >> I assume you woudn't want multiple gvimrc files. Do I copy or move the >> gvimrc file to the home folder? > > Yes, either copy or move the file. > >> If I move it from the MacVim.app contents folder to the home folder, will >> MacVim be pr

Re: Starting to write with Vim

2011-04-14 Thread Eric Weir
On Apr 14, 2011, at 1:50 PM, Tony Mechelynck wrote: > In addition to all the good counsels others gave, see also (for GUI vim) > http://vim.wikia.com/wiki/Setting_the_font_in_the_GUI Thanks, Tony. Method 2 in this, which I take to be what several have suggested -- putting "set guifont=Monaco:h

Re: Starting to write with Vim

2011-04-14 Thread Jean-Rene David
* Vera, Pedro L. [2011.04.14 14:00]: > >I need to refresh myself about "home folder": In "user/ericweir", the > >"home folder"is "ericweir", for which I can substitute "~/"? > > Yes. Actually, not quite. In "/user/ericweir" (note the slash in the beginning), the home folder is the whole thing, n

Re: Starting to write with Vim

2011-04-14 Thread Tony Mechelynck
On 14/04/11 14:55, Eric Weir wrote: [...] Finally, can I specify a default font? If so, how do I determine what fonts are available? [...] In addition to all the good counsels others gave, see also (for GUI vim) http://vim.wikia.com/wiki/Setting_the_font_in_the_GUI Console Vim cannot st the

Re: Starting to write with Vim

2011-04-14 Thread Jean-Rene David
* Eric Weir [2011.04.14 13:50]: > Maybe I leave the gvirmc in the MacVim.app contents folder alone, and > put my personal configurations in virmc in my home folder?? Exactly. But you're going to have to spell it right otherwise it won't work (it's vimrc, not virmc). ;-) -- JR -- You received

Re: Starting to write with Vim

2011-04-14 Thread Eric Weir
On Apr 14, 2011, at 1:41 PM, Eric Weir wrote: > Maybe I leave the gvirmc in the MacVim.app contents folder alone, and put my > personal configurations in virmc in my home folder?? Yeah, I that works. Thanks again to all. ---

RE: Starting to write with Vim

2011-04-14 Thread Vera, Pedro L.
>I assume you woudn't want multiple gvimrc files. Do I copy or move the gvimrc >file to the home folder? Yes, either copy or move the file. >If I move it from the MacVim.app contents folder to the home folder, will >MacVim be properly configured when it starts up? Yes, it will look in your hom

Re: Starting to write with Vim

2011-04-14 Thread Eric Weir
On Apr 14, 2011, at 1:31 PM, Eric Weir wrote: > I'm assuming if I'm using MacVim I want to record configurations in gvirmc. > Doing ":e ~/.gvirmc" creates a new file. The gvirmc in the MacVim.app > contents folder already has a substantial amount of configuration in it, > which I assume is ess

Re: Starting to write with Vim

2011-04-14 Thread Eric Weir
On Apr 14, 2011, at 9:37 AM, Tim Gray wrote: > I think you'll want to edit the one that lives in your home directory. >> From Vim, try: > > :e ~/.vimrc On Apr 14, 2011, at 9:45 AM, Vera, Pedro L. wrote: > I copied it into my home directory and set it as a hidden file, using > terminal

Re: Starting to write with Vim

2011-04-14 Thread Stefan Klein
2011/4/14 Eric Weir > > I've started writing with Vim. For now it'll be mainly in my journal and to > keep todo lists. Very awkward, of course, but I can move around; insert and > delete text; create, save, and open files. > I found Derek Wyatts videos very inspiring. http://www.derekwyatt.org/

Re: Starting to write with Vim

2011-04-14 Thread Steve Litt
On Thursday 14 April 2011 08:55:04 Eric Weir wrote: > I've started writing with Vim. For now it'll be mainly in my journal and to > keep todo lists. Very awkward, of course, but I can move around; insert > and delete text; create, save, and open files. Hi Eric, Look at VimOutliner (http://www.tro

Re: Starting to write with Vim

2011-04-14 Thread Christian Brabandt
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, enter in insert mode: > > let guifont= > > then still in in

Re: Starting to write with Vim

2011-04-14 Thread Taylor Hedberg
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 your disposal. You could try , for the > equiv

Re: Starting to write with Vim

2011-04-14 Thread Scott Bicknell
On Thu, Apr 14, 2011 at 08:55:04AM -0400, Eric Weir wrote: > > I'm finding h, j, k, l; e, b; $, 0; and H, M, L a bit limited > as ways to move around the screen. Is there a way to move up or > down from what is displayed as one line on the screen when > "linebreak" is set to another, i.e., with

Re: Starting to write with Vim

2011-04-14 Thread Ben Fritz
On Apr 14, 7:55 am, Eric Weir wrote: > I'm finding h, j, k, l; e, b; $, 0; and H, M, L a bit limited as ways to move > around the screen. Is there a way to move up or down from what is displayed > as one line on the screen when "linebreak" is set to another, i.e., within > what Vim actually c

Re: Starting to write with Vim

2011-04-14 Thread Tim Chase
On 04/14/2011 07:55 AM, Eric Weir 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? As others have mentioned, put set linebreak in your ~/.vimrc which, can be done from the command-prompt with ech

Re: Starting to write with Vim

2011-04-14 Thread Jean-Rene David
* Eric Weir [2011.04.14 09:00]: > I've started writing with Vim. Congratulations! > For now it'll be mainly in my journal and to keep todo lists. Very > awkward, of course, but I can move around; insert and delete text; > create, save, and open files. That's how we all started. > I did ":set

RE: Starting to write with Vim

2011-04-14 Thread Vera, Pedro L.
> I've found gvimrc in the finder, i.e., in the MacVim.app package. How do I > open it in Vim? I copied it into my home directory and set it as a hidden file, using terminal (I suppose you can use Finder, but I don't like Finder much). Having the .gvimrc file in your home file makes it easier

Re: Starting to write with Vim

2011-04-14 Thread Tim Gray
On Apr 14, 2011 at 09:28 AM -0400, Eric Weir wrote: I've found gvimrc in the finder, i.e., in the MacVim.app package. How do I open it in Vim? I think you'll want to edit the one that lives in your home directory. From Vim, try: :e ~/.vimrc -- You received this message from the "vim_us

Re: Starting to write with Vim

2011-04-14 Thread Eric Weir
On Apr 14, 2011, at 9:08 AM, Reid Thompson wrote: > in your .[g]vimrc put > set linebreak I've found gvimrc in the finder, i.e., in the MacVim.app package. How do I open it in Vim? -- Eric Weir Decatur, GA

RE: Starting to write with Vim

2011-04-14 Thread Vera, Pedro L.
>Finally, can I specify a default font? If so, how do I determine what fonts >are available? >For now I'm using MacVim for now, since it allows me to started a little more >quickly than I would be able to with regular Vim, especially with file >handling. Since you are using macvim, an easy

Re: Starting to write with Vim

2011-04-14 Thread Tim Gray
On Apr 14, 2011 at 08:55 AM -0400, Eric Weir wrote: I'm finding h, j, k, l; e, b; $, 0; and H, M, L a bit limited as ways to move around the screen. Is there a way to move up or down from what is displayed as one line on the screen when "linebreak" is set to another, i.e., within what Vim actua

Re: Starting to write with Vim

2011-04-14 Thread Reid Thompson
On Thu, Apr 14, 2011 at 08:55:04AM -0400, Eric Weir wrote: > > I've started writing with Vim. For now it'll be mainly in my journal and to > keep todo lists. Very awkward, of course, but I can move around; insert and > delete text; create, save, and open files. > > I did ":set linebreak" in a

Starting to write with Vim

2011-04-14 Thread Eric Weir
I've started writing with Vim. For now it'll be mainly in my journal and to keep todo lists. Very awkward, of course, but I can move around; insert and delete text; create, save, and open files. I did ":set linebreak" in a file. I see that it isn't retained when I save, close, and then reopen