Created
December 24, 2016 23:45
-
-
Save moosh3/0bdcbbd33761fd40e7098c8761a0d115 to your computer and use it in GitHub Desktop.
Micro .vimrc file for retrieval from remote machines
This file contains hidden or 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 sh | |
# Vim sanity | |
# ---------- | |
# | |
# This is meant to bootstrap a sane vim environment on a new machine for | |
# editing Python files and other configuration files. It is intended to be a | |
# minimalistic version of my full vimrc. | |
# | |
# This file will end up living at http://aleccunningham.xyz/vim.sh. | |
# The idea is to ssh into a remote machine that I log into often and run: | |
# | |
# $ curl http://aleccunningham.xyz/vim.sh | sh | |
# | |
# And get same sane default for vim. | |
VIMRC="set nocompatible | |
set hidden | |
set nowrap | |
set tabstop=4 | |
set backspace=indent,eol,start | |
set autoindent | |
set copyindent | |
set shiftwidth=4 | |
set shiftround | |
set showmatch | |
set ignorecase | |
set smartcase | |
set smarttab | |
set hlsearch | |
set incsearch | |
set textwidth=79 | |
set nocursorline | |
set nojoinspaces | |
set cpoptions+=J | |
set noswapfile | |
filetype on | |
filetype plugin on | |
filetype indent on | |
filetype plugin indent on | |
set expandtab | |
nnoremap ; : | |
map <C-h> <C-w>h | |
map <C-j> <C-w>j | |
map <C-k> <C-w>k | |
map <C-l> <C-w>l | |
set ruler | |
nnoremap K <nop> | |
nnoremap <Space> za | |
vnoremap <Space> za | |
syntax enable" | |
echo "$VIMRC" > $HOME/.vimrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment