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

Re: how to reformat lines

Expand Messages
  • Mikael Jansson
    ... Two mappings I find useful: reformat current paragraph ... reformat current selection ... - Mikael
    Message 1 of 6 , Sep 30, 2007
      Ben Schmidt wrote:
      > Sandeep. R wrote:
      >> Hi, I added :set textwidth=80 in .vimrc. It sets line length to 80.
      >> But is there is a way to reformat lines which are typed in (with length
      >> more than 80) before i set "textwidth".
      >> Please help me out.
      >
      > The command is gq
      >
      Two mappings I find useful:

      " reformat current paragraph
      :nmap Q gqap

      " reformat current selection
      :vmap Q gq

      - Mikael

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.