dawsbot / swim Goto Github PK
View Code? Open in Web Editor NEW๐โโ๏ธ Switch between multiple vimrc files
License: MIT License
๐โโ๏ธ Switch between multiple vimrc files
License: MIT License
swim ls
with greenTakes in a vimrc file and and alias name
change alias names from input 1 to input 2. In case I wanted to rename an alias
Get the file that the inode points to and move that into oldvimrc.vim
instead of the current method. The current method creates an infinite cycle of pointing to itself if the oldvimrc was already a symlink to oldvimrc.
The current method throws error if:
swim with oldvimrc
swim add <anyfile> <any alias besides oldvimrc>
swim with oldvimrc #Throws error
Use bats
npm install
Investigate if an npm install
method for swim is feasable (in addition to to the curl
download option already supported).
This would be especially nice because npm supports versioning and updating far better than swim's current swim update
command does.
swim update
If you try to delete an alias that does not exist, a bash error is thrown.
When there are no aliases, it should print out an error and exit
Currently swim is only executable from the command line. It would be nice to have a :swim with <alias>
command from within vim which triggers a live reload.
move an alias from one name to another
May break backwards compatability with swim for vim
Currently, swim update
blindly fetches an upstream version of the script from https://raw.githubusercontent.com/dawsonbotsford/swim/master/swim. This is very bad as a compromise of the repository would allow an attacker to execute arbitrary code on swim
users' computers. Cryptographic signature-checking of downloaded updates should be implemented to mitigate this risk
Make it something far less annoying than colorscheme blue
.
Set a hook which opens the github swim repo in browser. Using:
python -mwebbrowser https://github.com/dawsonbotsford/swim
do a curl in the backend on behalf of the user into an alias if the path to add is not local.
[I'm the same person, who opened an issue about neovim support. That was my official id, I accidentally opened a github issue from it.]
What doesn't work ?
Ctrl-P
is not working in spf13
. May be, if I installed this as a second distribution.Vim distribution means a with a set of pluggins and a .vimrc
file. The package manager and some plugins are already configured.
This will be helpful to people who is seriously lacking in time to configure all plugins and other settings.
Or, in other words, vim pre-configured vim, just install and use.
I will list few of popular vim-distributions
https://vim.spf13.com/ (https://gist.github.com/SantoshSrinivas79/84bc4dc821fd0a453706)
https://github.com/bling/dotvim
https://github.com/carlhuda/janus
https://github.com/astrails/dotvim
https://github.com/vitaly/dotvim2
http://skwp.github.io/dotfiles/
http://vim.liuchengxu.org/ (https://github.com/liuchengxu/space-vim)
https://github.com/amix/vimrc
https://github.com/rust-lang/rust.vim
https://github.com/sheerun/vim-polyglot
http://moelove.info/vim/ (https://github.com/tao12345666333/vim)
https://github.com/wklken/vim-for-server
https://github.com/skywind3000/vim
https://github.com/chxuan/vimplus
I don't say, we should support all these list. But, It would be much better, if we can make swim work in good condition for at least top 2 in this list.
Open up the alias that the user wants to edit in the default editor
Add a naked/minimal vimrc file if none exists
Are you interested in updating the location configuration is stored, such that it would adhere to the XDG Base Directory Specification? Specifically the configuration one as I believe that's all that would be relevant for swim.
npm ERR! at doWrite (_stream_writable.js:223:10)
npm ERR! at writeOrBuffer (_stream_writable.js:213:5)
npm ERR! at EncryptedStream.Writable.write (_stream_writable.js:180:11)
npm ERR! at write (_stream_readable.js:583:24)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR! System Linux 4.4.0-97-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--global" "chalk-cli"
npm ERR! cwd /home/sunxd
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/sunxd/npm-debug.log
npm ERR! not ok code 0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.