RE: Few questions

2011-04-28 Thread Roy Fulbright
> 3. How can I get vi to close out my (..), '..', {..}, and so on (this > might become annoying but I'd like to try something like this anyway). I have a few simple mappings that are specific to Perl IF statements, but they could easily be modified to any structure: " 1-2. Open Perl IF sta

Re: Few questions

2011-04-28 Thread shawn wilson
On Thu, Apr 28, 2011 at 2:39 PM, Taylor Hedberg wrote: > shawn wilson, Thu 2011-04-28 @ 14:08:31-0400: >> yeah, i am going to have to play with :nmap a bit... something like: >> :nmap i_l_r >> (which doesn't do it exactly, maybe a_ ... > > Try the following instead: > >    nnoremap i r > that d

Re: Few questions

2011-04-28 Thread Taylor Hedberg
shawn wilson, Thu 2011-04-28 @ 14:08:31-0400: > yeah, i am going to have to play with :nmap a bit... something like: > :nmap i_l_r > (which doesn't do it exactly, maybe a_ ... Try the following instead: nnoremap i r -- You received this message from the "vim_use" maillist. Do not top-post

Re: Few questions

2011-04-28 Thread shawn wilson
Taylor, Ben, thanks. On Wed, Apr 27, 2011 at 9:02 PM, Taylor Hedberg wrote: > shawn wilson, Wed 2011-04-27 @ 10:46:20-0400: >> 1. In visual mode how do I select to a line number? I know I can do iB >> or whatever but if I don't want to work with the whole function I just >> have to hold down j. >

Re: Few questions

2011-04-28 Thread Ben Fritz
On Apr 27, 9:46 am, shawn wilson wrote: > > 3. How can I get vi to close out my (..), '..', {..}, and so on (this might > become annoying but I'd like to try something like this anyway). > http://vim.wikia.com/wiki/Automatically_append_closing_characters > 4. Can I get the output of :shell or

Re: Few questions

2011-04-27 Thread Taylor Hedberg
shawn wilson, Wed 2011-04-27 @ 10:46:20-0400: > 1. In visual mode how do I select to a line number? I know I can do iB > or whatever but if I don't want to work with the whole function I just > have to hold down j. Use the G command. `nG` moves the cursor to line n. So if you want to select from h