Update cheat_sheet.md

main
Matt Huntington 5 years ago committed by GitHub
parent 177f8ca237
commit c4011272c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,12 +1,34 @@
# VIM Cheat Sheet # VIM Cheat Sheet
## Install vim-plug ## Setup
### Install vim-plug
``` ```
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
``` ```
clone repo and
```
ln -s /path/to/cloned/repo/.vimrc ~/.vimrc
```
then open vim and
```
:PlugInstall
```
then
```
source ~/.vimrc
```
or reopen vim
## Split ## Split
- `<ctrl-w>s` or `:sp` split with line running horizontally - `<ctrl-w>s` or `:sp` split with line running horizontally

Loading…
Cancel
Save