How do you open vimwiki in a new split?

Viewed 293

I'd like to be able to open my wiki in a similar way that :vsplit some/file.md works.

1 Answers

This might be a known issue with some terminals, as seen in this answer.

You can still remap the command if you'd like, for example:

:nmap <Leader>vs <Plug>VimwikiVSplitLink

Or if it does not interfere with your bindings:

:nmap <Leader>vs :VimwikiVSplitLink<CR>

EDIT

Now that I finally understood your request, to launch vimwiki from vim in a split you can just chain commands, i.e.:

:sp | :VimwikiIndex
:vs | :VimwikiIndex

This should do the trick.

For remapping, as @DavidVII pointed out, just escape the |:

nmap <Leader>vs :vs \| :VimwikiIndex<CR>
Related