Loading ...
Sorry, an error occurred while loading the content.

141174Re: How to capitalize the first letter of each word?

Expand Messages
  • Tim Chase
    Feb 8, 2014
    • 0 Attachment
      On 2014-02-08 09:10, Peng Yu wrote:
      > >> I need to capitalize the first letter of each word within a
      > >> visual block. Is there a quick way to do it vim? Thanks.
      > >
      > > You might try
      > >
      > > :'<,'>s/\%V\<./\u&/g
      > I'm not ':help \u' and ':help &' give me the correct help pages. Do
      > mind where to find help for them? Thanks.

      :help s/\&
      :help s/\u

      Strangely, the help-target ":help s/\U" (upper-case "U") takes you to
      the same place as ":help s/\&" does rather than to the help on \U (at
      least in 7.3.547 which is stock on Debian Stable). Fortunately
      they're in the same block, but it looks like a bug in the


      You received this message from the "vim_use" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php

      You received this message because you are subscribed to the Google Groups "vim_use" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 9 messages in this topic