Comments (6)
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.
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.
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.
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.
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.
@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)
- macOS - No hotkey in Services HOT 3
- feature proposition: Automatic pasting HOT 5
- Can't auto refocus the previous editer after quit vim in Ubuntu18.04 HOT 2
- How to open a new buffer in current MacVim window? HOT 1
- Doesnt work on only i3wm? Really needs gnome? HOT 1
- Can't lock the PC, the lock file doesn't exist HOT 1
- Keybind Not Working in Chrome HOT 1
- Workflow starts, but nothing else happens HOT 1
- change key board shortcut on ubuntu HOT 1
- Switch to soft wrap on launch?
- Use without temp files on mac [suggestion]
- Plugin not working HOT 2
- Vim takes a long time to start after being invoked.
- Open Vim with selected text
- On Linux Mint Cinnamon: use `cinnamon-settings` or `dconf`
- Support without gvim. HOT 9
- Changing xclip to xsel for Linux HOT 2
- not working? (with screencast) HOT 2
- Windows version HOT 3
- put vim in insert mode automatically HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vim-anywhere.