vim-config icon indicating copy to clipboard operation
vim-config copied to clipboard

VimWiki Missing Commands

Open worldpe opened this issue 4 years ago • 1 comments

The only commands related to the vimwiki plugin that seem to work are VimwikiIndex & VimwikiUIselect, all of the other ones are seemingly missing, and I can't find any obvious reason why in the config file.

worldpe avatar Aug 19 '21 05:08 worldpe

@worldpe the triggers to load Vimwiki are one of:

  • Leader+W
  • :VimwikiIndex
  • :VimwikiUISelect

Once you run any one of these, all the rest of Vimwiki's commands will be available from :Vimwiki<Tab>

rafi avatar Sep 01 '21 15:09 rafi

Pushed a whole new rewrite of vim-config, 100% lua and lazy.nvim as package-manager. Vimwiki isn't included in default setup, but it's included in extras. You can add it like this:

Paste this to lua/plugins.lua or lua/plugins/<any name>.lua:

return {
  { import = 'rafi.plugins.extras.org.vimwiki' },
}

You can also override key-mappings like this:

return {
  { import = 'rafi.plugins.extras.org.vimwiki' },
  {
    'vimwiki/vimwiki',
    keys = {
      { '<Leader>W', '<cmd>VimwikiIndex<CR>', { noremap = true } },
    },
  }
}

rafi avatar Apr 07 '23 16:04 rafi