From f8a8c741b91f636538a0083a8b60cf17dfd24606 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 19 Sep 2020 20:18:06 +1200 Subject: Lower 'history' to 300 to keep startup snappy --- vim/vimrc | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc index 23ba5098..59655021 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -2,7 +2,7 @@ " Tom Ryder (tejr)’s Literate Vimrc " ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ " -" Last updated: Fri, 18 Sep 2020 09:04:53 UTC +" Last updated: Sat, 19 Sep 2020 08:17:28 UTC " " │ And I was lifted up in heart, and thought " │ Of all my late-shown prowess in the lists, @@ -193,16 +193,14 @@ if s:xdgcachehome !=# '' endif " Speaking of recorded data in viminfo files, the default Vim limit of a mere -" 50 entries for command and search history is pretty stingy. Because I don’t -" think I’m ever likely to be in a situation where remembering several -" thousand Vim commands and search patterns is going to severely tax memory, -" let alone disk space, I’d rather this limit were much higher. It’s -" sometimes really handy to dig up commands from many days ago. -" -" The maximum value for the 'history' option is documented in ‘:help -" 'history'’ as 10000, so let’s just use that, and see if anything breaks. -" -set history=10000 +" 50 entries for command and search history is pretty stingy. The documented +" maximum value for this option is 10000. I used that for a while, but +" eventually found that on lower-powered machines, keeping this much command +" history slowed Vim startup down a bit much for my liking, so I've scaled +" this back to a more conservative 300. If I end up missing useful commands, +" I might try switching this on available memory instead. +" +set history=300 " We’ll now enable automatic backups of most file buffers, since that’s off by " default. In practice, I don’t need these backups very much, at least if I’m -- cgit v1.2.3