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

Re: ctrl+J without adding a space

Expand Messages
  • Peng Yu
    ... I meant shift-J rather than ctrl-J. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php
    Message 1 of 8 , Dec 1, 2009
    • 0 Attachment
      On Nov 30, 6:55 pm, Dave Land <l...@...> wrote:
      > On Nov 30, 2009, at 2:17 PM, Dominique Pellé wrote:
      >
      > > Peng  Yu wrote:
      >
      > >> I use ctrl+J to join two lines. However, there will always be a space
      > >> added between the two lines that are joined. I'm wondering how to
      > >> configure gvim not to add this extra space?
      >
      > > See :help gJ
      >
      > Thanks to this question and answer, my .vimrc just gained a new mapping:
      >
      > map <D-j> gJ
      >
      > (I'm on a Mac, so <D-j> is Command-j, which was previously unmapped.)
      >
      > That said, "ctrl+J"? Isn't that just a newline? On my keyboard, shift-J
      > joins two lines, adding a space between them (and trimming any leading
      > space that may have been on the line below).

      I meant shift-J rather than ctrl-J.

      --
      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.