One second to read remote git repos with Vim, inspired by github1s.
Pretty neat when you want to quickly browse a repository without going through the hassle of cloning and deleting later.
Tested on GitHub and GitLab over both HTTPS and SSH.
- Using vim-plug:
Plug 'v15hv4/vim1s'
- Using Vundle:
Plugin 'v15hv4/vim1s'
- Manual Installation:
Just copy the function and command definition fromplugin/vim1s.vim
into your vimrc, idk.
SSH
:Vim1s [email protected]:v15hv4/vim1s.git
HTTPS (note: doesn't work for private/authenticated repos)
:Vim1s https://github.com/v15hv4/vim1s.git
Alternate syntax (GitHub only)
:Vim1s v15hv4/vim1s