Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My vimrc
set nocompatible " be iMproved, required
filetype off " required
set shell=/bin/bash
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
set incsearch
"set list
"set listchars=tab:>.
set scs
set showmatch
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'altercation/vim-colors-solarized'
Plugin 'JuliaLang/julia-vim'
Plugin 'raichoo/haskell-vim'
Plugin 'eagletmt/neco-ghc'
Plugin 'eagletmt/ghcmod-vim'
Plugin 'Shougo/vimproc.vim'
Plugin 'tpope/vim-classpath'
Plugin 'scrooloose/nerdtree'
Plugin 'kien/ctrlp.vim'
Plugin 'ervandew/supertab'
Plugin 'Lokaltog/vim-easymotion'
Plugin 'hdima/python-syntax'
Plugin 'vim-scripts/lua.vim'
Plugin 'xolox/vim-lua-ftplugin'
Plugin 'xolox/vim-misc'
Plugin 'mattn/emmet-vim'
Plugin 'Raimondi/delimitMate'
"Plugin 'tpope/vim-surround'
Plugin 'wting/rust.vim'
"Plugin 'git://github.com/jceb/vim-orgmode'
Plugin 'hsitz/VimOrganizer'
Plugin 'scrooloose/nerdcommenter'
Plugin 'fatih/vim-go'
Plugin 'git://github.com/wmvanvliet/vim-ipython'
Plugin 'git://github.com/tpope/vim-speeddating'
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
Plugin 'chase/vim-ansible-yaml'
Plugin 'stephpy/vim-yaml'
Plugin 'guns/vim-clojure-static'
Plugin 'tpope/vim-fireplace'
Plugin 'vim-scripts/paredit.vim'
Plugin 'vim-scripts/utl.vim'
Plugin 'cespare/vim-toml'
"Plugin 'klen/python-mode'
Plugin 'kien/rainbow_parentheses.vim'
Plugin 'zah/nimrod.vim'
Plugin 'vim-latex/vim-latex'
Plugin 'kovisoft/slimv'
" Pairing in vim, should allow slimv
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
"
filetype plugin indent on
" Set javascript for .json files
autocmd BufNewFile,BufRead *.json set ft=javascript
" Enable syntax highlighting
syntax enable
" Solarized stuff
set background=dark
colorscheme solarized
set ruler
"Turn off markdown folding
let g:vim_markdown_folding_disabled= 1
" Turn off dot autocomplete
let g:pymode_rope_complete_on_dot = 0
let g:pymode_python = 'python2'
let python_highlight_all = 1
" Backspace through indent objects
set backspace=indent,eol,start
" Above no longer necessary since there are no indent objects anymore because
" of this
set expandtab
set shiftwidth=2
set softtabstop=2
" Tell autocomplete to not look int eh file system
set complete-=i
" Change leader key to ','
let mapleader=","
autocmd FileType julia let g:paredit_mode = 0
" Go stuff
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_fmt_command = "goimports"
" Nim stuff
fun! JumpToDef()
if exists("*GotoDefinition_" . &filetype)
call GotoDefinition_{&filetype}()
else
exe "norm! \<C-]>"
endif
endf
" Jump to tag
nn <M-g> :call JumpToDef()<cr>
ino <M-g> <esc>:call JumpToDef()<cr>i
" Rainbow PArens
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
runtime plugin/RainbowParenthsis.vim
" Tell vim-autoclose to stop running in .lisp files
let delimitMate_excluded_ft = "lisp"
" Open slimv repl in new window
"let g:slimv_repl_split = 0
" Start a covim server
let CoVim_default_name = "Vi"
let CoVim_default_port = "23235"
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
au BufEnter *.org call org#SetOrgFileType()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment