On Wed, Sep 7, 2016 at 6:22 AM, Charles E Campbell
<[email protected]> wrote:
> Hello:
>
> With the following 6 lines: (the last three are empty)
> -----------------
> hello world!
> hello world!
> hello world!
>
>
>
> -----------------
> Put cursor on line 4, use ctrl-v and move down 2 lines.
> Press "ad . This operation grabs the visually selected text and puts it
> into register a. (ie. the three blank lines)
At this point, (for me) the register contains ^J^J^J (three
carriage-return characters)
> :goto 1 . This puts the cursor on the h in the first hello.
> "ap
>
> I rather expected that nothing would happen -- instead, a blank is inserted
> after each h.
With me, it inserts three empty lines immediately after the current
line (i.e., between lines 1 and 2)
>
> Is this correct behavior?
>
> Chip Campbell
My results make more sense to me than yours. I'm using gvim (Huge)
with GTK3 GUI. See below is the output of ":set" with no arguments as
seen with the same buffer being current. Maybe you are using some
different option(s) which make it behave otherwise for you?
I haven't tried the same experiment in console mode. Are you in a
console or in the GUI? What is your 'paste' setting? (Mine is at its
'nopaste' default.)
--- Options ---
autoindent cursorcolumn helpheight=9999
imsearch=-1 list ruler
sidescrolloff=1 ttimeout winminheight=0
autowriteall cursorline helplang=en
incsearch modified scroll=28 smartcase
ttimeoutlen=250
bomb delcombine history=200
keymodel=startsel mouse=a scrolloff=6
smartindent verbose=1
cmdheight=2 display=lastline hlsearch
langnoremap mousemodel=popup showcmd splitbelow
wildmenu
cscoperelative noequalalways ignorecase
nolangremap nrformats= showtabline=2
synmaxcol=0 window=67
cscopeverbose errorbells iminsert=0
laststatus=2 regexpengine=1 sidescroll=1
timeoutlen=5000 winheight=9999
backspace=indent,eol,start
clipboard=exclude:cons\|linux
cscopequickfix=s-,c-,d-,i-,t-,e-
fileencoding=utf-8
fileencodings='ucs-bom,utf-8,latin1'
guifont=Bitstream Vera Sans Mono 8
guioptions=cgimrLtTp
listchars=eol:¶,tab:|_,extends:>,precedes:<,conceal:*,nbsp:·
previewheight=9999
runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vim74/pack/dist/opt/matchit,/usr/share/vim/vimfiles/after,~/.vim/after
selectmode=mouse,key
statusline=%<%f
%h%m%r%=%k[%{(&fenc==''?&enc:&fenc)}%{(&bomb?',BOM':'')}][U+%04B]
%-12.(%l,%c%V%) %P
tabline=%!MyTabLine()
termencoding=utf-8
toolbariconsize=tiny
viminfo='500,!,%,c,r/mnt/
whichwrap=b,s,<,>,[,]
wildmode=longest:full,full
Best regards,
Tony.
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.