Neovim: :Man doesn't work with vim-projectionist

Created on 31 Aug 2018  路  3Comments  路  Source: neovim/neovim

  • nvim --version:
NVIM v0.3.1
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20180721-48604-1emkq4l/neovim-0.3.1/build/config -I/tmp/neovim-20180721-48604-1emkq4l/neovim-0.3.1/src -I/usr/local/include -I/usr/local/opt/gettext/include -I/usr/include -I/tmp/neovim-20180721-48604-1emkq4l/neovim-0.3.1/build/src/nvim/auto -I/tmp/neovim-20180721-48604-1emkq4l/neovim-0.3.1/build/include
Skompilowany przez [email protected]

Features: +acl +iconv +jemalloc +tui 
See ":help feature-compile"

       vimrc systemu: "$VIM/sysinit.vim"
   odwet dla $VIM-a: "/usr/local/Cellar/neovim/0.3.1/share/nvim"

Run :checkhealth for more info
  • Operating system/version: Darwin Niuniobook.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64
  • Terminal name/version: iTerm2
  • $TERM: xterm-256color

Steps to reproduce using nvim -u NORC

Actual behaviour

Fails with error that it cannot close last window. If there are more than one window it fails due to unknown -l flag in macOS man.

Expected behaviour

It should display window with manpage for true.

bug good first issue help wanted runtime

Most helpful comment

@hauleth I posted investigation results in the related PR, as current workaround(or maybe a good solution) you can set let g:projectionist_ignore_man=1(see this guard)

All 3 comments

I have projectionist installed and this doesn't happen for me, so a backtrace would be helpful. Maybe this will give you a backtrace:

diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim                                                                                            
index 77ccbdf8889a..6efe79ef3acb 100644                                                  
--- a/runtime/autoload/man.vim                                                   
+++ b/runtime/autoload/man.vim                                                        
@@ -77,6 +77,7 @@ function! man#open_page(count, count1, mods, ...) abort                                       
     let page = s:get_page(path)                                                        
   catch                                                                                                                 
     if a:mods =~# 'tab' || !s:find_man()
+      throw 'xxx'
       " a new window was opened                                                            
       close                                                                              
     endif                                                                                                    

@hauleth I posted investigation results in the related PR, as current workaround(or maybe a good solution) you can set let g:projectionist_ignore_man=1(see this guard)

@dm1try workaround seems to resolve problem

Was this page helpful?
0 / 5 - 0 ratings