junegunn / junegunn/fzf.vim

[New Feature, Question] auto run `:History` when run nvim without assigning any file name

Open
#1,383 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Vim Script
Stars
10.3k
Forks
608
Avg merge
5d 8h
Merged PRs (30d)
2

Description

Desired Function: Auto list the history files waiting to be choose when run `nvim` without assigning a file name. If a file name is assigned, for example, run `nvim xxx`, the recent file woud not be listed, and `xxx` is just being opened.

I tried to add `autocmd BufNewFile :History` in my init file. It does not work.
I added `autocmd BufNewFile *.vim :History` in my init file. When I created a new file by run `nvim xxx.vim`. The FZF_History terminal interface opened. However, I can't choose the history files. Because instead of entering a `Terminal mode` by run the command `:History` in an existing nvim interface, it entered an `insert mode`. Thus, I can't typing anyting into the FZF_History terminal interface.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.