aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-09-19 20:18:06 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-09-19 20:18:06 +1200
commitf8a8c741b91f636538a0083a8b60cf17dfd24606 (patch)
tree1e8fcdf7e4af2664ad224e45a145b5f32e9b98fb
parentMerge branch 'release/v10.9.0' into develop (diff)
downloaddotfiles-f8a8c741b91f636538a0083a8b60cf17dfd24606.tar.gz
dotfiles-f8a8c741b91f636538a0083a8b60cf17dfd24606.zip
Lower 'history' to 300 to keep startup snappy
-rw-r--r--vim/vimrc20
1 files changed, 9 insertions, 11 deletions
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