diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-11-15 08:04:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-15 08:04:49 +0800 |
commit | fa0dcde3d9f17f85baa9dd41aa751c123281ced3 (patch) | |
tree | ef8336f8d67f8dfb363cf9d755be7871ada567ca /runtime/lua/vim | |
parent | 05d354e2165c2c331a33949d49095eef3503a32f (diff) | |
download | rneovim-fa0dcde3d9f17f85baa9dd41aa751c123281ced3.tar.gz rneovim-fa0dcde3d9f17f85baa9dd41aa751c123281ced3.tar.bz2 rneovim-fa0dcde3d9f17f85baa9dd41aa751c123281ced3.zip |
vim-patch:9.1.0864: message history is fixed to 200 (#31215)
Problem: message history is fixed to 200
Solution: Add the 'msghistory' option, increase the default
value to 500 (Shougo Matsushita)
closes: vim/vim#16048
https://github.com/vim/vim/commit/4bd9b2b2467e696061104a029000e9824c6c609e
Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Co-authored-by: Milly <milly.ca@gmail.com>
Diffstat (limited to 'runtime/lua/vim')
-rw-r--r-- | runtime/lua/vim/_meta/options.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua index 45ab14a774..cb783720ac 100644 --- a/runtime/lua/vim/_meta/options.lua +++ b/runtime/lua/vim/_meta/options.lua @@ -3016,7 +3016,8 @@ vim.go.hid = vim.go.hidden --- A history of ":" commands, and a history of previous search patterns --- is remembered. This option decides how many entries may be stored in ---- each of these histories (see `cmdline-editing`). +--- each of these histories (see `cmdline-editing` and 'msghistory' for +--- the number of messages to remember). --- The maximum value is 10000. --- --- @type integer @@ -4378,6 +4379,15 @@ vim.o.mouset = vim.o.mousetime vim.go.mousetime = vim.o.mousetime vim.go.mouset = vim.go.mousetime +--- Determines how many entries are remembered in the `:messages` history. +--- The maximum value is 10000. +--- +--- @type integer +vim.o.msghistory = 500 +vim.o.mhi = vim.o.msghistory +vim.go.msghistory = vim.o.msghistory +vim.go.mhi = vim.go.msghistory + --- This defines what bases Vim will consider for numbers when using the --- CTRL-A and CTRL-X commands for adding to and subtracting from a number --- respectively; see `CTRL-A` for more info on these commands. |