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

Re: Vim capitalize words.

Expand Messages
  • Mikolaj Machowski
    ... ^ Should do it. m. -- LaTeX + Vim = http://vim-latex.sourceforge.net/ Learn Touch Typing with Vim: http://vim.sourceforge.net/script.php?script_id=461
    Message 1 of 6 , Jan 31, 2003
    • 0 Attachment
      On Fri, Jan 31, 2003 at 09:00:12PM +0100, Robert Lindgren wrote:
      > Hi all,
      > Some quick help needed, need to capitalize some words in a file, tried:
      > :s/\<[a-z]/\u&/g
      > But that only capitalizes word on one line, best would be to do it in
      > visual mode but I only know of <visual>U and <visual>u, some advice
      > would be very appreciated.
      > /Robert Lindgren


      :%s/\<[a-z]/\u&/g
      ^
      Should do it.

      m.
      --
      LaTeX + Vim = http://vim-latex.sourceforge.net/
      Learn Touch Typing with Vim:
      http://vim.sourceforge.net/script.php?script_id=461
    Your message has been successfully submitted and would be delivered to recipients shortly.