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

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

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 file. I

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

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 way

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

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

Re: Starting to write with Vim

2011-04-14 Thread Ben Fritz
On Apr 14, 7:55 am, Eric Weir eew...@bellsouth.net 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

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., within

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 C-F, C-B for the

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 insert

Re: Starting to write with Vim

2011-04-14 Thread Stefan Klein
2011/4/14 Eric Weir eew...@bellsouth.net 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.

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

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

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 folderis 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, not just the

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

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 properly

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

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

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

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 Finder. So you

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

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