Last active
August 29, 2015 14:14
-
-
Save Olical/565a10de340f392a98be to your computer and use it in GitHub Desktop.
Vim quickstart - in relation to my post http://oli.me.uk/2015/02/01/vim-for-people-that-dont-want-to-use-it/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
cat >>~/.vimrc <<EOL | |
set nocompatible | |
call plug#begin() | |
Plug 'tpope/vim-sensible' | |
Plug 'tpope/vim-sleuth' | |
Plug 'Lokaltog/vim-easymotion' | |
Plug 'ctrlpvim/ctrlp.vim' | |
call plug#end() | |
" Enable line numbers. | |
set number | |
" Enable invisible characters. | |
set list | |
" More natural splitting. | |
set splitbelow | |
set splitright | |
" Set a default indent, but vim-sleuth should adjust it. | |
set tabstop=4 | |
" Enable mouse. Great for resizing windows and keeping co-workers sane. | |
set mouse=a | |
" Disable swap files. | |
set noswapfile | |
EOL | |
vim +PlugInstall +qa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where has this command been on my life:
Now if I could convince my emacs friends from leaving file~'s all over the place I'll be good!