From: Oleg Broytman Date: Thu, 9 May 2019 17:31:28 +0000 (+0300) Subject: .vimrc: Refactor `viminfo` settings X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=eb40e254360c1e19656666db61fb7b06614cb346;p=dotfiles.git .vimrc: Refactor `viminfo` settings --- diff --git a/.vimrc b/.vimrc index bcc859b..d06404d 100644 --- a/.vimrc +++ b/.vimrc @@ -185,15 +185,16 @@ set fileencodings=ucs-bom,us-ascii,utf-8,koi8-r,cp1251,cp866,latin1 " ' - number of files for which the marks are remembered; " " and < - maximum number of lines saved for a register; " s - maximum size of an item in Kbytes. +set viminfo=!,h,'50 if version < 603 - set viminfo=!,h,'50,\"1000 + set viminfo+=\"1000 else - set viminfo=!,h,'50,<1000,s10 + set viminfo+=<1000,s10 endif " c - convert viminfo to the current encoding; if has("iconv") - set viminfo^=c + set viminfo+=c endif " Removable media paths @@ -573,7 +574,7 @@ function! SlowTerm() set wildmode=list:longest set viminfo=!,h,'10,<100,s5 if has("iconv") - set viminfo^=c + set viminfo+=c endif syntax off highlight NonText cterm=NONE ctermfg=NONE