Closed delphinus closed 5 years ago
You should map <CR>
in denite buffer.
autocmd FileType denite call <SID>denite_my_setting()
function! s:denite_my_setting() abort
nnoremap <silent><buffer><expr> i denite#do_map('open_filter_buffer')
nnoremap <silent><buffer><expr> q denite#do_map('quit')
nnoremap <silent><buffer><expr> o denite#do_map('do_action', 'test')
nnoremap <silent><buffer><expr> <CR> denite#do_map('do_action')
endfunction
It works for me.
It did not fix this. :Denite file
does NOTHING. It does not show even the Denite window.
But I tried without LANG=C
, it goes good. strange...
Reproduced.
You need to set encoding=utf-8
in vimrc.
set encoding=utf-8
set runtimepath+=~/test/vim-hug-neovim-rpc
set runtimepath+=~/test/nvim-yarp
set runtimepath+=~/test/denite.nvim
autocmd FileType denite call <SID>denite_my_setting()
function! s:denite_my_setting() abort
nnoremap <silent><buffer><expr> i denite#do_map('open_filter_buffer')
nnoremap <silent><buffer><expr> q denite#do_map('quit')
nnoremap <silent><buffer><expr> o denite#do_map('do_action', 'test')
endfunction
filetype plugin indent on
syntax enable
Reason: vim-hug-neovim-rpc
requires set encoding=utf-8
.
If you use LANG=C
, set encoding=latin1
is set automatically.
Note: The problem is only Vim8.
It does not show even the Denite window.
This is bug. So I have fixed it.
Warning: I will close the issue without the minimal init.vim and the reproduction instructions.
Problems summary
minimal on Vim8 does not make Denite work.
Expected
Tell me valid minimal vimrc.
Environment Information (Required!)
denite version (SHA1): f2fea7e
OS: macOS Mojave 10.14.5
Vim/neovim version: Vim 8.1.1600
:checkhealth
or:CheckHealth
result(neovim only):Provide a minimal init.vim with less than 50 lines (Required!)
How to reproduce problems from neovim startup (Required!)
LANG=C vim -N -u ~/test/vimrc -U NONE -i NONE
:Denite file
Generate a logfile if appropriate
Screenshot (if possible)
Upload the log file