mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 00:52:44 +00:00
doc: Recommend :silent! for :loadview.
ex_loadview() was changed in 9b1c939370 to check the file open result.
If user doesn't care about failure to open, using :silent! instead of
:silent is a reasonable, conventional approach.
Closes #3196
This commit is contained in:
@@ -922,7 +922,7 @@ You might want to clean up your 'viewdir' directory now and then.
|
||||
|
||||
To automatically save and restore views for *.c files: >
|
||||
au BufWinLeave *.c mkview
|
||||
au BufWinEnter *.c silent loadview
|
||||
au BufWinEnter *.c silent! loadview
|
||||
|
||||
==============================================================================
|
||||
8. The ShaDa file *shada* *shada-file*
|
||||
|
||||
Reference in New Issue
Block a user