Skip to content

Instantly share code, notes, and snippets.

@Olical
Last active August 29, 2015 14:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Olical/565a10de340f392a98be to your computer and use it in GitHub Desktop.
Save Olical/565a10de340f392a98be to your computer and use it in GitHub Desktop.
#!/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
@stephen-mw
Copy link

Where has this command been on my life:

" Disable swap files.
set noswapfile

Now if I could convince my emacs friends from leaving file~'s all over the place I'll be good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment