Coder Social home page Coder Social logo

Comments (6)

lervag avatar lervag commented on July 29, 2024 1

Thanks! I sometimes forget that people use different languages and therefore have some catch statements that explicitly assumes english language. Should be relatively easy to fix, and I'll see if I can push a fix later tonight.

from wiki.vim.

lervag avatar lervag commented on July 29, 2024

The g:wiki_link_target_type option should be a string, not a list. Try setting it to 'md'.

I think I fixed the language specific issue now. Please test.

from wiki.vim.

Zeitvertreib avatar Zeitvertreib commented on July 29, 2024

Ty for your fast response, and it seems to work like a charm now.

Also ty for the hint with the g:wiki_link_target_type, that solved the other error as well.

However, links do not seem to 'collapse'. And I am not sure if that is the intended behavior. When the cursor is on word and I hit enter it turns into [word](word). (With the link, and all created properly, e.g. red and green coloring.) But when I move the cursor away, I would expect it to collapse, so it would read word, but it still reads [word](word).

There are prob little chances that this is related, but I would like to not miss out on that.

Edit: I just discovered for testing purpose, that when i open a .wiki file, and hit :WikiEnable, and there I can create the links like described above (except the coloring) and there the 'collapsing' works just fine. On other filetypes it seems to have no effect. (e.g. .txt) (<leader>ww opens up a index.md with the above setting.)

..but I guess I missed out on something in the manual. Sry for the inconvenience in that case.

from wiki.vim.

lervag avatar lervag commented on July 29, 2024

..but I guess I missed out on something in the manual. Sry for the inconvenience in that case.

No inconvenience. First, the feature you are talking about is the conceal feature from syntax highlighting, see :help syn-conceal. And yes, you did miss something from the docs (see :help wiki-intro):

Note: |wiki.vim| is `not` a filetype plugin. It is designed so that it may be used
      along with filetype plugins, e.g. for dedicated Markdown plugins. One
      may also use `wiki-ft.vim` (https://github.com/lervag/wiki-ft.vim) for
      simple syntax highlighting and folding of `.wiki` files, if desired.

The main point is that is does not include syntax rules or filetype specific rules. As suggested, one could use the wiki-ft.vim plugin for .wiki files. This implements folding and syntax highlighting. For Markdown files, there are a lot of other and probably better plugins, e.g. see this blog post. Personally, I use vim-markdown, which works quite well.

from wiki.vim.

Zeitvertreib avatar Zeitvertreib commented on July 29, 2024

Good work and thanks for pointing me into the co-related subject of the vim universe, and the implementation means of this plugin!

(Also the blog post is awesome.)

from wiki.vim.

lervag avatar lervag commented on July 29, 2024

(Also the blog post is awesome.)

Yes, I also liked it.

Feel free to let me know if you have other issues or feature requests :)

from wiki.vim.

Related Issues (20)

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.