Skip to content

Instantly share code, notes, and snippets.

@starkers
Last active May 11, 2019 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save starkers/53c4cec182dd55bc42ba9b0572cfe162 to your computer and use it in GitHub Desktop.
Save starkers/53c4cec182dd55bc42ba9b0572cfe162 to your computer and use it in GitHub Desktop.
minimal vimrc
"""" TLDR
" I use this for when I need to do some quick hacking/testing on an instance or whatever
""""
" install with:
"""""
" curl -L https://gist.github.com/starkers/53c4cec182dd55bc42ba9b0572cfe162/raw/cdba66ede29df6be6e7cd3371ea9596d7e09d94a/.vimrc > ~/.vimrc
""""
set nocompatible
filetype off
syntax on
filetype plugin indent on
let mapleader = ","
set modelines=0
set number
set ruler
set encoding=utf-8
set wrap
set textwidth=79
set formatoptions=tcqrn1
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set noshiftround
set mouse=
set scrolloff=3
set backspace=indent,eol,start
runtime! macros/matchit.vim
set hidden
set ttyfast
set laststatus=2
set showmode
set showcmd
set hlsearch
set incsearch
set ignorecase
set smartcase
set showmatch
set indentkeys-=0#
set listchars=tab:▸\ ,eol:¬
" Uncomment this to enable by default:
set t_Co=256
set background=dark
if isdirectory($HOME . '/.vim/tmp/tmp') == 0
:silent !mkdir -p ~/.vim/tmp/tmp >/dev/null 2>&1
endif
set directory=~/.vim/tmp/tmp
if isdirectory($HOME . '/.vim/tmp/backup') == 0
:silent !mkdir -p ~/.vim/tmp/backup >/dev/null 2>&1
endif
set backupdir=~/.vim/tmp/backup
if isdirectory($HOME . '/.vim/tmp/undo') == 0
:silent !mkdir -p ~/.vim/tmp/undo >/dev/null 2>&1
endif
set undodir=~/.vim/tmp/undo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment