LeaderF
LeaderF copied to clipboard
[Question] How do I customize the commands that popup executes in normal mode?
- vim or neovim?
- [x] vim
- [ ] neovim
- Output of
vim --versionornvim --version:
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jan 21 2020 23:11:36)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-140
Compiled by appveyor@APPVYR-WIN
- Output of
:echo has("python"): - Output of
:echo has("python3"):1 - Output of
:echo &pythondll(only vim, not neovim): - Output of
:echo &pythonthreedll(only vim, not neovim): - Output of
:py print(sys.version): - Output of
:py3 print(sys.version):3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (Intel)] - Output of
:echo g:Lf_Debug_Cmd: - Output of
:echo g:Lf_FilesFromCache: - Operating system:
- [ ] Linux
- [ ] Mac OS X
- [x] Windows
- [ ] Etc.
- Configurations related to LeaderF in vimrc:
set encoding=utf-8
scriptencoding utf-8
syntax enable
filetype plugin indent on
set nocompatible
set runtimepath=~/ghq/github.com/Yggdroot/LeaderF
" no backup
set nobackup
set nowritebackup
" no swap
set noswapfile
set updatecount=0
nnoremap <silent> <Space>q :<C-u>quit<CR>
nnoremap <silent> <Space>Q :<C-u>quit!<CR>
let g:Lf_NormalMap = {
\ '_': [
\ ['<C-j>', 'j'],
\ ['<C-k>', 'k'],
\ ['K', '<Nop>'],
\ ['M', '<Nop>'],
\ ['E', ':echo '],
\ ],
\ 'File': [
\ ['M', ':exec g:Lf_py "fileExplManager.quit()" <bar> :LeaderfMru<CR>'],
\ ],
\}
colorscheme morning
Describe your question, feature request, or bug.
The above vimrc with g:Lf_NormalMap did not execute the command in normal mode for popup.
Is there any solution?
Steps to reproduce
gvim.exe -N -u min_vimrc -U NONE -i NONE:Leaderf! file --popupM(I want LeaderfMru to open.)
Actual behaviour
The normal mode commands cannot be customized in popup mode.
Expected behaviour
I want to be able to execute commands in popup normal mode, using options such as g:Lf_NormalMap
Thank you!