Skip to content

Instantly share code, notes, and snippets.

@anselmo
Last active December 19, 2015 09:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anselmo/5930858 to your computer and use it in GitHub Desktop.
Save anselmo/5930858 to your computer and use it in GitHub Desktop.
.vimrc - quick vim config
filetype on
filetype off
filetype plugin indent on
set nocompatible
set encoding=utf-8
set modelines=0
set scrolloff=3
set autoindent
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
set cursorline
set ttyfast
set ruler
set backspace=indent,eol,start
set number
set laststatus=2
set history=1000
set cpoptions+=J
set list
set listchars=tab:▸\ ,eol:¬
set shell=/bin/bash
set lazyredraw
set wildignore+=*.pyc,.hg,.git
set matchtime=3
set showbreak=↪
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set nowrap
set textwidth=100
set formatoptions=qrn1
let mapleader = ";"
let maplocalleader = "\\"
syntax on
colorscheme desert
set background=dark
set numberwidth=5
set cursorline
hi CursorLine cterm=NONE ctermbg=black
nnoremap / /\v
vnoremap / /\v
set ignorecase
set smartcase
nnoremap ˚ :lnext<cr>
nnoremap ¬ :lprevious<cr>
inoremap ˚ <esc>:lnext<cr>
inoremap ¬ <esc>:lprevious<cr>
nnoremap <m-Down> :cnext<cr>
nnoremap <m-Up> :cprevious<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment