Coder Social home page Coder Social logo

Comments (2)

lervag avatar lervag commented on July 29, 2024

If you add set hidden to your init.vim, then I think this is not a problem.

New user of n/vim.

I suggest you read up on the use of buffers. The default settings is to remove a buffer in vim when you leave it. With set hidden, the buffer is not removed, but hidden. You can come back to it. Thus, when you follow a link in wiki.vim, things work as expected.

I'll close this issue. After reading about buffers (see suggested help pages), feel free to reopen or continue the discussion if you want more input.

Following help pages are good:

  • :help 'hidden'
  • :help usr_07.txt
  • :help usr_08.txt
  • :help windows.txt (quite long, but includes most of the main details)

from wiki.vim.

lervag avatar lervag commented on July 29, 2024

I expected this process to work in the same way as vimwiki, without having to manually save files before traversing new links. Namely, [cr] on text in normal mode to create link, [cr] to follow link to new page, enter text, [bs] in normal mode to return to the original page.

I am not sure how Vimwiki solves this particular "kink", but I guess Vimwiki instead saves the buffer for you automatically. I don't think that is the best idea, because it makes the assumption that you want to save the file. I don't want to make the assumption. If you use set hidden, then you explicitly allow to follow the link even if the buffer is not saved. If you do not use set hidden, then that might be a real preference, in which case I would expect you to also save your files manually.

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.