problem: vim can only yank for 50 lines in vim

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

problem: vim can only yank for 50 lines in vim

robert song-2
Hi, everyone.

I uses w3m to browse some pages and edit it with vim, but I can only
paste 50 lines in vim, so maybe some configuration is wrong in my vim,

Reproduce the problem.
  - download the w3m package.
    - sudo yum install w3m
  - open a site
    - w3m www.lwn.net
  - set the configuration of w3m.
    - press "o" key.
    - modify the editor to /usr/bin/vimx
  - edit the page with vim.
    - press "Esc-e".
  - yank for more than 50 lines.
    - 100yy
  - quit the vim
    - :q
  - edit the page once again
    - press "Esc-e".
  - paste the yanked lines.
    - p

you can see only 50 lines was added.
Does anyone know this problem?

My vim set option is as follows:


--- オプション ---
  aleph=224           encoding=euc-jp     key=
quoteescape=\       tagstack
noarabic              endofline           keymap=           noreadonly
           term=xterm
  arabicshape         equalalways         keymodel=           remap
         notermbidi
noallowrevins         equalprg=           keywordprg=man      report=2
           termencoding=
noaltkeymap         noerrorbells          langmap=          norevins
         noterse
  ambiwidth=single    esckeys             langmenu=
norightleft           textauto
noautochdir           eventignore=        laststatus=1        ruler
         notextmode
  autoindent        noexpandtab         nolazyredraw
rulerformat=        textwidth=70
noautoread          noexrc              nolinebreak
scroll=28           thesaurus=
noautowrite           fileformat=unix     lines=56
noscrollbind        notildeop
noautowriteall        filetype=           linespace=0
scrolljump=1        timeout
  background=light  nofkmap             nolisp
scrolloff=0         timeoutlen=1000
  backup              foldclose=        nolist              nosecure
           title
  backupcopy=auto     foldcolumn=0        listchars=eol:$
selectmode=         titlelen=85
  backupext=~         foldenable          loadplugins
shell=/bin/bash     titlestring=
  backupskip=/tmp/*   foldexpr=0          magic
shellcmdflag=-ic  nottimeout
  balloondelay=600    foldignore=#        makeef=
shellquote=         ttimeoutlen=-1
noballooneval         foldlevel=0         makeprg=make
shelltemp           ttybuiltin
  balloonexpr=        foldlevelstart=-1   matchtime=5
shellxquote=        ttyfast
nobinary              foldmethod=manual   maxcombine=2
noshiftround          ttymouse=xterm2
nobomb                foldminlines=1      maxfuncdepth=100
shiftwidth=2        ttyscroll=999
  browsedir=last      foldnestmax=20      maxmapdepth=1000
noshortname           ttytype=xterm
  bufhidden=          formatexpr=         maxmem=1037616
showbreak=          undolevels=1000
  buflisted           formatprg=          maxmemtot=1037616   showcmd
           updatecount=200
  buftype=            fsync               menuitems=25
noshowfulltag         updatetime=4000
  cdpath=,,         nogdefault            modeline
noshowmatch           verbose=0
  cedit=^F            guifont=            modelines=5         showmode
           verbosefile=
  charconvert=        guifontwide=        modifiable
showtabline=1       virtualedit=
nocindent             guiheadroom=50      modified
sidescroll=0        visualbell
  cinoptions=         guipty              more
sidescrolloff=0     warn
  cmdheight=1         guitablabel=        mouse=a
nosmartcase         noweirdinvert
  cmdwinheight=7      guitabtooltip=    nomousefocus
nosmartindent         whichwrap=b,s
  columns=102         helpheight=20       mousehide         nosmarttab
           wildchar=<Tab>
nocompatible          helplang=ja         mousemodel=extend
softtabstop=0       wildcharm=0
  completefunc=       hidden              mousetime=500     nospell
           wildignore=
noconfirm             history=100         number
spellfile=        nowildmenu
nocopyindent        nohkmap               numberwidth=4
spelllang=en        wildoptions=
  cpoptions=aABceFs nohkmapp              omnifunc=
spellsuggest=best   winaltkeys=menu
  cscopepathcomp=0    hlsearch            operatorfunc=
nosplitbelow          window=55
  cscopetag           icon              nopaste
nosplitright          winheight=1
  cscopetagorder=0    iconstring=         pastetoggle=
startofline       nowinfixheight
  cscopeverbose       ignorecase          patchexpr=
statusline=       nowinfixwidth
nocursorcolumn        imactivatekey=      patchmode=
suffixesadd=        winminheight=0
  cursorline        noimcmdline         nopreserveindent      swapfile
           winminwidth=1
  debug=            noimdisable           previewheight=12
swapsync=fsync      winwidth=20
nodelcombine          iminsert=2        nopreviewwindow
switchbuf=          wrap
  dictionary=         imsearch=2          printdevice=
synmaxcol=3000      wrapmargin=0
nodiff                includeexpr=        printencoding=
syntax=conf       nowrapscan
  diffexpr=           incsearch           printfont=courier   tabline=
           write
  diffopt=filler      indentexpr=         printmbcharset=
tabpagemax=10     nowriteany
nodigraph           noinfercase           printmbfont=
tabstop=8           writebackup
  display=          noinsertmode          printoptions=
tagbsearch          writedelay=0
  eadirection=both    isprint=@,161-255   prompt              taglength=0
noedcompatible        joinspaces          pumheight=0         tagrelative
  backspace=indent,eol,start
  backupdir=.,~/tmp,~/
  breakat= ^I!@*-+;:,./?
  casemap=internal,keepascii
  cinkeys=0{,0},0),:,0#,!^F,o,O,e
  cinwords=if,else,while,do,for,switch
  clipboard=autoselect,exclude:cons\|linux
  comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
  commentstring=/*%s*/
  complete=.,w,b,u,t,i
  completeopt=menu,preview
  cscopeprg=/usr/bin/cscope
  cscopequickfix=s-,c-,d-,i-,t-,e-,g-
  define=^\s*#\s*define
  directory=.,~/tmp,/var/tmp,/tmp
  errorfile=errors.err
  errorformat=%*[^"]"%f"%*\D%l: %m,"%f"%*\D%l: %m,%-G%f:%l: (Each
undeclared identifier is reported only once,%-G%f:%l: for each
function it appears in.),%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,"%f"\, line
%l%*\D%c%*[^ ] %m,%D%*\a[%*\d]: Entering directory `%f',%X%*\a[%*\d]:
Leaving directory `%f',%D%*\a: Entering directory `%f',%X%*\a: Leaving
directory `%f',%DMaking %*\a in %f,%f|%l| %m
  fileencoding=iso-2022-jp
  fileencodings=iso-2022-jp,euc-jp,utf-8,latin1,utf-16
  fileformats=unix,dos
  fillchars=vert:|,fold:-
  foldmarker={{{,}}}
  foldopen=block,hor,mark,percent,quickfix,search,tag,undo
  foldtext=foldtext()
  formatoptions=cqmt
  formatlistpat=^\s*\d\+[\]:.)}\t ]\s*
  grepformat=%f:%l:%m,%f:%l%m,%f  %l%m
  grepprg=grep -n $* /dev/null
  guicursor=n-v-c:block-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor,sm:block-Cursor-blinkwait175-blinkoff150-blinkon175
  guioptions=aegimrLtT
  helpfile=/usr/share/vim/vim70/doc/help.txt
  highlight=8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,>:SignColumn,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal,+:Pmenu,=:PmenuSel,x:PmenuSbar,X:PmenuThumb,*:TabLine,#:TabLineSel,_:TabLineFill,!:CursorColumn,.:CursorLine
  include=^\s*#\s*include
  indentkeys=0{,0},:,0#,!^F,o,O,e
  isfname=@,48-57,/,.,-,_,+,,,#,$,%,~,=
  isident=@,48-57,_,192-255
  iskeyword=@,48-57,_,192-255
  lispwords=defun,define,defmacro,set!,lambda,if,case,let,flet,let*,letrec,do,do*,define-syntax,let-syntax,letrec-syntax,destructuring-bind,defpackage,defparameter,defstruct,deftype,defvar,do-all-symbols,do-external-symbols,do-symbols,dolist,dotimes,ecase,etypecase,eval-when,labels,macrolet,multiple-value-bind,multiple-value-call,multiple-value-prog1,multiple-value-setq,prog1,progv,typecase,unless,unwind-protect,when,with-input-from-string,with-open-file,with-open-stream,with-output-to-string,with-package-iterator,define-condition,handler-bind,handler-case,restart-bind,restart-case,with-simple-restart,store-value,use-value,muffle-warning,abort,continue,with-slots,with-slots*,with-accessors,with-accessors*,defclass,defmethod,print-unreadable-object
  matchpairs=(:),{:},[:]
  maxmempattern=1000
  mkspellmem=460000,2000,500
  mouseshape=i-r:beam,s:updown,sd:udsizing,vs:leftright,vd:lrsizing,m:no,ml:up-arrow,v:rightup-arrow
  nrformats=octal,hex
  paragraphs=IPLPPPQPP LIpplpipbp
  path=.,include,/usr/include,,
  printexpr=system('lpr' . (&printdevice == '' ? '' : ' -P' .
&printdevice) . ' ' . v:fname_in) . delete(v:fname_in) + v:shell_error
  printheader=%<%f%h%m%=%N ページ
  rightleftcmd=search
  runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim70,/usr/share/vim/vimfiles/after,~/.vim/after
  scrollopt=ver,jump
  sections=SHNHH HUnhsh
  selection=inclusive
  sessionoptions=blank,buffers,curdir,folds,help,options,tabpages,winsize
  shellpipe=2>&1| tee
  shellredir=>%s 2>&1
  shortmess=filnxtToO
  spellcapcheck=[.?!]\_[\])'"^I ]\+
  suffixes=.bak,~,.o,.h,.info,.swp,.obj
  tags=./tags,./TAGS,tags,TAGS
  titleold=Vim を使ってくれてありがとう
  toolbar=icons,tooltips
  toolbariconsize=small
  viewdir=~/.vim/view
  viewoptions=folds,options,cursor
  viminfo='20,<50,s10,h
  wildmode=longest,list


Best Wishes
  robert

--
You received this message from the "vim_use" 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
Reply | Threaded
Open this post in threaded view
|

Re: problem: vim can only yank for 50 lines in vim

Jürgen Krämer-4

Hi,

robert song wrote:

> Hi, everyone.
>
> I uses w3m to browse some pages and edit it with vim, but I can only
> paste 50 lines in vim, so maybe some configuration is wrong in my vim,
>
> Reproduce the problem.
>   - download the w3m package.
>     - sudo yum install w3m
>   - open a site
>     - w3m www.lwn.net
>   - set the configuration of w3m.
>     - press "o" key.
>     - modify the editor to /usr/bin/vimx
>   - edit the page with vim.
>     - press "Esc-e".
>   - yank for more than 50 lines.
>     - 100yy
>   - quit the vim
>     - :q
>   - edit the page once again
>     - press "Esc-e".
>   - paste the yanked lines.
>     - p
>
> you can see only 50 lines was added.
> Does anyone know this problem?
>
> My vim set option is as follows:
>
[snip]
>   viminfo='20,<50,s10,h
[snip]

the contents of the remembered registers is restricted to 50 lines. If
you want to store more, you can

  :set viminfo='20,<1000,s10,h

in your ~/.vimrc. This will allow you to store 1000 lines per registers.

Or you can use the clipboard to store the yanked lines between
subsequent invocations of Vim.

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

--
You received this message from the "vim_use" 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
Reply | Threaded
Open this post in threaded view
|

Re: problem: vim can only yank for 50 lines in vim

Nikolay Aleksandrovich Pavlov
In reply to this post by robert song-2
Reply to message «problem: vim can only yank for 50 lines in vim»,
sent 13:29:34 22 October 2010, Friday
by robert song:

> I uses w3m to browse some pages and edit it with vim, but I can only
> paste 50 lines in vim, so maybe some configuration is wrong in my vim,
>
> Reproduce the problem.
>   - download the w3m package.
>     - sudo yum install w3m
>   - open a site
>     - w3m www.lwn.net
>   - set the configuration of w3m.
>     - press "o" key.
>     - modify the editor to /usr/bin/vimx
>   - edit the page with vim.
>     - press "Esc-e".
>   - yank for more than 50 lines.
>     - 100yy
>   - quit the vim
>     - :q
>   - edit the page once again
>     - press "Esc-e".
>   - paste the yanked lines.
>     - p
It is not related to w3m anyhow. You are quiting vim and whenever you quit, the
viminfo file is written where registers are saved. But by default length of
registers is limited to 50 lines or 10 kiB (which hits first). To remove all
limitations, add the following to the vimrc (it is the default with all
limitations removed):
    set viminfo='100,h
If you want just to adjust this limitation and do not remove it (for example, to
forbid your viminfo to grow too large), see description of `<' and `s'
characters in ``:help viminfo''.

You can also use system registers instead of viminfo: prepend «"+» to all paste
and yank commands, so they look like this: «"+100yy» and «"+p». Your system is
likely not to have such limitations, see section 7 in `:help registers'.

signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: problem: vim can only yank for 50 lines in vim

robert song-2
Nice,
thank you very much.
I modified the viminfo varaible, and now it works.

Best Wishes,
robert


On 10/22/10, ZyX <[hidden email]> wrote:

> Reply to message «problem: vim can only yank for 50 lines in vim»,
> sent 13:29:34 22 October 2010, Friday
> by robert song:
>
>> I uses w3m to browse some pages and edit it with vim, but I can only
>> paste 50 lines in vim, so maybe some configuration is wrong in my vim,
>>
>> Reproduce the problem.
>>   - download the w3m package.
>>     - sudo yum install w3m
>>   - open a site
>>     - w3m www.lwn.net
>>   - set the configuration of w3m.
>>     - press "o" key.
>>     - modify the editor to /usr/bin/vimx
>>   - edit the page with vim.
>>     - press "Esc-e".
>>   - yank for more than 50 lines.
>>     - 100yy
>>   - quit the vim
>>     - :q
>>   - edit the page once again
>>     - press "Esc-e".
>>   - paste the yanked lines.
>>     - p
> It is not related to w3m anyhow. You are quiting vim and whenever you quit,
> the
> viminfo file is written where registers are saved. But by default length of
> registers is limited to 50 lines or 10 kiB (which hits first). To remove all
> limitations, add the following to the vimrc (it is the default with all
> limitations removed):
>     set viminfo='100,h
> If you want just to adjust this limitation and do not remove it (for
> example, to
> forbid your viminfo to grow too large), see description of `<' and `s'
> characters in ``:help viminfo''.
>
> You can also use system registers instead of viminfo: prepend «"+» to all
> paste
> and yank commands, so they look like this: «"+100yy» and «"+p». Your system
> is
> likely not to have such limitations, see section 7 in `:help registers'.
>

--
You received this message from the "vim_use" 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