junegunn / junegunn/fzf.vim

Run a command just after a completion

Open
#575 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
10.3k
Forks
608
Avg merge
5d 8h
Merged PRs (30d)
2

Description

- Category
- [x] Question
- [ ] Bug
- [x] Suggestion
- OS
- [x] Linux
- [ ] macOS
- [ ] Windows
- [ ] Etc.
- Vim
- [ ] Vim
- [x] Neovim

I want to execute a command just after entering in a file. In my case, I want to go to the last cursor position after executing `:Mark`.

I tried
```
function! Jump2()
exec ':Marks'
exec "normal g\""
endfunc
```

or

:Marks | norm "g\""

But it doesn't work. The second command seems to be ignored. I didn't any any triggers that runs after the completion in the source code.

Is it possible? Do you think it's a good idea? Is it the fzf.vim's job?

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.