mirror of
https://github.com/neovim/neovim.git
synced 2026-07-15 13:50:33 +00:00
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
4bd9b2b246
Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Co-authored-by: Milly <milly.ca@gmail.com>
This commit is contained in:
@@ -228,6 +228,7 @@ LUA
|
||||
OPTIONS
|
||||
|
||||
• 'completeopt' flag "fuzzy" enables |fuzzy-matching| during |ins-completion|.
|
||||
• 'msghistory' controls maximum number of messages to remember.
|
||||
• 'tabclose' controls which tab page to focus when closing a tab page.
|
||||
|
||||
PERFORMANCE
|
||||
|
||||
@@ -3197,7 +3197,8 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
global
|
||||
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.
|
||||
|
||||
*'hlsearch'* *'hls'* *'nohlsearch'* *'nohls'*
|
||||
@@ -4289,6 +4290,12 @@ A jump table for the options with a short description can be found at |Q_op|.
|
||||
Defines the maximum time in msec between two mouse clicks for the
|
||||
second click to be recognized as a multi click.
|
||||
|
||||
*'msghistory'* *'mhi'*
|
||||
'msghistory' 'mhi' number (default 500)
|
||||
global
|
||||
Determines how many entries are remembered in the |:messages| history.
|
||||
The maximum value is 10000.
|
||||
|
||||
*'nrformats'* *'nf'*
|
||||
'nrformats' 'nf' string (default "bin,hex")
|
||||
local to buffer
|
||||
|
||||
12
runtime/lua/vim/_meta/options.lua
generated
12
runtime/lua/vim/_meta/options.lua
generated
@@ -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.
|
||||
|
||||
@@ -626,6 +626,8 @@ call <SID>AddOption("terse", gettext("add 's' flag in 'shortmess' (don't show se
|
||||
call <SID>BinOptionG("terse", &terse)
|
||||
call <SID>AddOption("shortmess", gettext("list of flags to make messages shorter"))
|
||||
call <SID>OptionG("shm", &shm)
|
||||
call <SID>AddOption("msghistory", gettext("how many messages are remembered"))
|
||||
call append("$", " \tset mhi=" . &mhi)
|
||||
call <SID>AddOption("showcmd", gettext("show (partial) command keys in location given by 'showcmdloc'"))
|
||||
let &sc = s:old_sc
|
||||
call <SID>BinOptionG("sc", &sc)
|
||||
|
||||
Reference in New Issue
Block a user