Git Product home page Git Product logo

Comments (6)

vitalk avatar vitalk commented on July 22, 2024 1

Thanks for the detailed reply.

Note about configuration. Please, don't reinvent the wheel. The Vim has a built-in way to configure all the things (.vimrc). Think, how would Vim look like if any plugin and extension (I think about vim-anywhere more as a Vim extension then a simple wrapper) has its own config in a separate file. Each vimmer has a own, lovely organized .vimrc, and the best thing you can do is to forward them to the right direction. I mean, add a separate section about vim-anywhere configuration into the readme.

Best regards.

from vim-anywhere.

cknadler avatar cknadler commented on July 22, 2024

Hey, I've definitely thought about this. I was going back and forth between adding a config file for vim-anywhere or finding a simple way to set this up by having vim anywhere read something set in the user's Vim config file whenever it's started.

I stayed away from setting defaults initially to keep the defaults from getting in anyone's way. Like if I default to markdown and you are trying to write something else, the fact that the filetype is markdown could cause unwanted highlighting and formatting. I figured nothing is better than something you might not want.

Thats a neat trick though. I may do add that to the readme eventually. I'll leave this open as a feature request if.

from vim-anywhere.

cknadler avatar cknadler commented on July 22, 2024

Thats a good point. I wonder if there is some way to make it easier to identify vim-anywhere editing in .vimrc? I'll take another look and see if I can find anything.

from vim-anywhere.

omeid avatar omeid commented on July 22, 2024

You could set a variable from the command line, then one could set the file type and other configuration in vimrc based on that.

from vim-anywhere.

nimaje avatar nimaje commented on July 22, 2024

how about setting filetype to vim-anywhere? (e.g. by adding --cmd 'set filetype=vim-anywhere' to the commandline)
afaik that should behave like default if the user didn't added any config, but they can detect it if wanted

from vim-anywhere.

cknadler avatar cknadler commented on July 22, 2024

@nimaje @omeid Happy to discuss a pull request that adds this functionality. Probably won't get around to implementing myself.

from vim-anywhere.

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.