Skip to content

Instantly share code, notes, and snippets.

@adamgavlak
Created September 25, 2016 22:01
Show Gist options
  • Save adamgavlak/b1f3aa5f6dd00963234ec7572fd1c835 to your computer and use it in GitHub Desktop.
Save adamgavlak/b1f3aa5f6dd00963234ec7572fd1c835 to your computer and use it in GitHub Desktop.
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Plugins
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'elixir-lang/vim-elixir'
Plugin 'slashmili/alchemist.vim'
Plugin 'NLKNguyen/papercolor-theme'
call vundle#end()
filetype plugin indent on
syntax enable
set background=light
colorscheme PaperColor
let g:ctrlp_custom_ignore='node_modules\|DS_Store|git'
set guifont=Consolas:h18
set hidden
set nowrap
set tabstop=2
set backspace=indent,eol,start
set autoindent
set copyindent
set number
set shiftwidth=2
set showmatch
set ignorecase
set smartcase
set smarttab
set hlsearch
set incsearch
set history=1000
set undolevels=1000
set wildignore=*.swp,*.bak,*.pyc,*.class,/node_modules,*.beam
set title
set visualbell
set noerrorbells
set nobackup
set noswapfile
" Mapping
let mapleader=","
nmap <silent> <leader>ev :e $MYVIMRC<CR>
nmap <silent> <leader>sv :so $MYVIMRC<CR>
nnoremap j gj
nnoremap k gk
imap ;; <Esc>
nnoremap ; :
cmap w!! w !sudo tee % >/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment