I\'m getting back in touch with my inner (g)vim due to an unscheduled MacBook mother(board) of a meltdown (my emergency backup Linux box won\'t run TextMate). All told I\'m
I found this very helpful - works like a charm.
Basically I just added these lines in my vimrc
" not to break on words
set formatoptions=1
set linebreak
" fixing up moving line by line in the paragraph
nnoremap j gj
nnoremap k gk
vnoremap j gj
vnoremap k gk
If vim is adding in newline characters (not just wrapping the text) then you probably have textwidth turned on ...
:set textwidth=0
To turn on word wrapping:
:set wrap
:set linebreak
To copy & paste the original text and not any padding works for gvim. For vim in an xterm though, it copies the space padding at EOL (though not the newline). I thought this should work but it doesn't:
:set mouse=a