Is there a way to view the list of recent documents you've opened in Vim? I realize I could view the cursor jump list, :ju
, and then go to a cursor position in the list but this is not ideal because there will be multiple listings of the same document in the list. Is there another command which would do what I'm looking for?
相关问题
- Emacs shell: save commit message
- How to change the first two uppercase characters o
- Insert text into current buffer from function
- Hot reload on save
- Substituting zero-width match in vim script
相关文章
- 如何让 vim 支持 .cshtml 文件的代码高亮
- Auto-save in VIM as you type
- How can I use gcc's -I command to add recursiv
- Vim: overloaded mapping for multiple modes
- How to use relative line numbering universally in
- How to copy the value of a vim option to a registe
- E185: Cannot find color scheme*
- How do I fix vim to properly indent folds containi
Start Vim and hit Ctrl-o-o to open previously edited file. Keep hitting o (while still pressing the Ctrl key) to cycle back through earlier files. See https://dev.to/jovica/3-little-known-but-useful-vim-tips-1pbg
Besides
:oldfiles
, fzf.vim has:History
.In addition to
oldfiles
there's a nice thing called tinyMRU.It's very simple:
https://github.com/romainl/vim-tinyMRU/blob/master/plugin/tinymru.vim
Don't use a plugin, unless you want a nice menu. From Vim Documentation: Starting (or
:help old
):Then to open one of the listed files, use:
'0
,'1
,'2
, ...'9
List the files that have marks stored in the
viminfo
file.List file names as with
:oldfiles
, and then prompt for a number. When the number is valid that file from the list is edited. Use!
to abandon a modified buffer.The easiest way for me to access recent files is to add the following to one's .gvimrc file:
These lines get netrw to sort files by those most recently modified. Then one simply calls :e. and selects the file one wants.
This solution presupposes files are saved in one main directory so specified in .gvimrc. E.g.
vim plugin: minibufexpl may help you. the opened file list is displayed on the top or bottom of the screen:
in vim normal mode, type :b${bufid} to jump to the ${bufid}_th buffer, for example: type :b13 to jump to the 13th buffer, ie. ngx_mail_ssl_module.c.
besidies, you can map some convenient bindings in your vimrc, such as:
Get the plugin from here: https://github.com/fholgado/minibufexpl.vim