GithubHelp home page GithubHelp logo

vim-roam's People

Contributors

jeffmm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

r17x yohcop

vim-roam's Issues

Error at startup

After installation, I get this error when starting neovim:

Error detected while processing /home/jim/.local/share/nvim/plugged/vim-roam/plugin/roam.vim:
line   60:
E117: Unknown function: vimwiki#vars#get_global
E15: Invalid expression: vimwiki#vars#get_global('map_prefix')

I was able to fix it by changing the plugin listing of vimwiki from:
Plug 'vimwiki/vimwiki.vim'
to
Plug 'vimwiki/vimwiki'

I'm not sure if this is specific to my system or if the Readme should be updated.

Creating link from visual mode selection

Hello,

Thank you Jeff.

I'm getting the following error when creating a link from text selected in visual mode:

Error detected while processing function roam#vimwiki#normalize_link_visual:
line    2:
E117: Unknown function: vimwiki#u#get_selection
E15: Invalid expression: vimwiki#u#get_selection()

with vimwiki I can select a number of words and hit enter to create a link and new page

once I install vim-roam I get the above error.

(I'm running nvim in powershell on windows)

For now I'm hacking around the issue:

autoload\roam\vimwiki.vim

" " Normalize link in visual mode Enter keypress
function! roam#vimwiki#normalize_link_visual() abort
  " Get selection content (this isn't a builtin, unfortunately)
  " let visual_selection = vimwiki#u#get_selection()
  " let extension = fnamemodify(trim(visual_selection), ":e")
  " if extension ==? "png" || extension[:2] ==? "tif" || extension ==? "bmp" || extension ==? "jpg" || extension ==? "jpeg"
  "   call s:convert_to_image_link(visual_selection)
  "   return
  " else
    call vimwiki#base#normalize_link(1)
  "endif
endfunction

It looks like that function isn't in base.vim any more
https://github.com/vimwiki/vimwiki/blob/master/autoload/vimwiki/base.vim

though it looks like it was part of a fix at one point

vimwiki/vimwiki@ac38bb2

From reading the comments, perhaps the normalise functionality is now incorporated into vimwiki?

Kind regards

Mat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.