Skip to content

Instantly share code, notes, and snippets.

@breadchris
Created March 5, 2015 17:29
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 breadchris/b5be5f534c467570fabf to your computer and use it in GitHub Desktop.
Save breadchris/b5be5f534c467570fabf to your computer and use it in GitHub Desktop.
A custom Vimrc file
syntax enable
set background=dark
colorscheme molokai
filetype plugin indent on
let &t_SI .= "\<Esc>[?2004h"
let &t_EI .= "\<Esc>[?2004l"
inoremap <special> <expr> <Esc>[200~ XTermPasteBegin()
function! XTermPasteBegin()
set pastetoggle=<Esc>[201~
set paste
return ""
endfunction
map <TAB> >gv
map <S-TAB> <gv
map <Enter> i<Enter>
set laststatus=2
set number
set cursorline
set ruler
set mouse=a
let g:airline_left_sep=''
let g:airline_right_sep=''
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Bundle 'gmarik/vundle'
Bundle 'The-NERD-tree'
Bundle 'SuperTab-continued.'
Bundle 'https://github.com/scrooloose/syntastic.git'
Bundle 'tomasr/molokai'
call vundle#end()
filetype plugin indent on
let mapleader = ","
let g:mapleader = ","
set hidden "Allow unsaved files to be hidden
"Turn off backup since everything is tracked in version control
set nobackup
set nowb
set noswapfile
"
set statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%l,%v]
" | | | | | | | | | | |
" | | | | | | | | | | +- current col
" | | | | | | | | | +- current line
" | | | | | | | | +- cur percent of file
" | | | | | | | +- cur syntax
" | | | | | | +- cur fileformat
" | | | | | +- num lines
" | | | | +- preview flag
" | | | +- help flag
" | | +- readonly flag
" | +- modified flag
" +- full path to file
set ttyfast "Assume a fast connection
set nu
set backspace=indent,eol,start
set wildmenu "show list instead of just completing
set wildignore=*.dll,*.o,*.obj,*.bak,*.exe,*.pyc,*.jpg,*.gif,*.png,*.cml
set wildmode=list:longest,full "completion: list matches, longest common part, then all
set scrolljump=5 "lines to scroll when cursor leaves screen
set scrolloff=3 "minlines to keep above and below cursor
set showmatch
set hlsearch
set incsearch
set ignorecase
set smartcase
set autoindent
set shiftwidth=4
set tabstop=4
set expandtab
set smarttab
set noswapfile
" Remaps {
" make moving thorugh windows easier
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-h> <C-w>h
map <C-l> <C-w>l
"Treat long lines as break lines
map j gj
map k gk
imap jj <esc>
map ; :
map <leader>f <Esc>:NERDTreeToggle<CR>
"}
iabbrev </ </<C-X><C-O>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment