* John ([EMAIL PROTECTED]) wrote:
> Hi. I have 3 questions that may seem dumb but I can't find an answer
> for.  I'm trying to kill a few nagging problems with one email here so
> hope you can help me in my quest to master vi and mc.
> 
> 1. Using vim, how could I replace tabs with spaces ? Not just reduce
> or enlarge the tabsize like with 'set ts=' but phsyically replace them
> with a number of spaces. I've tried variations of the %s/ / /g command
> but can't get vim to actually recognise my tab parameter.

Type
:%s/^v{tab}/ /g

By this I mean :%s/ then ctrl+v then tab. This will insert a literal
tab character. The other way is probably :%s/\t/ /g, although I can't
remember if \t is tab. Should be :)
 
> 2. Using vim (again), how could I find a matching brace or bracket '}'
> or ')'   for a brace or bracket that the cursor is on?  I'm using vim
> to brush up on some programming skills and need a quick way of finding
> a match for a brace, not just the 'next brace'.

Put the cursor on the bracket or brace, and press %

> 3. I can't find a way to get mc (Midnight Commander) to let me select
> individual files at a time. I can select a group using the '+' key but
> not a group of differently named files.   NOTE: I"m weaning myself off
> using ZtreeWin on my Windows system which is something I really miss.

Dunno ;)

> 
> I did have another question but don't want to push my luck :-)

Keep 'em coming =P

Tom.
-- 
            .-------------------------------------------------------.
    .^.     | Tom Gilbert, England | [EMAIL PROTECTED] |
    /V\     |----------------------| www.tomgilbert.freeserve.co.uk |
   // \\    | Sites I recommend:   `--------------------------------|
  /(   )\   | www.freshmeat.net www.enlightenment.org slashdot.org  |
   ^^-^^    `-------------------------------------------------------'

Reply via email to