Last active
December 16, 2015 15:59
-
-
Save jteneycke/5459438 to your computer and use it in GitHub Desktop.
vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved | |
set number | |
set mouse=a | |
set expandtab | |
syntax on | |
filetype off " required! | |
if &term =~ '256color' | |
" Disable Background Color Erase (BCE) so that color schemes | |
" work properly when Vim is used inside tmux and GNU screen. | |
" See also http://snk.tuxfamily.org/log/vim-256color-bce.html | |
set t_ut= | |
endif | |
" _ backups | |
set undodir=~/.vim/tmp/undo// " undo files | |
set undofile | |
set undolevels=3000 | |
set undoreload=10000 | |
set backupdir=~/.vim/tmp/backup// " backups | |
set directory=~/.vim/tmp/swap// " swap files | |
set backup | |
set noswapfile | |
" try to speed things up | |
set synmaxcol=128 | |
" Begin Vundle Config | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' | |
" My Bundles here: | |
" Awesome command bar | |
Bundle 'itchyny/lightline.vim' | |
Bundle 'Lokaltog/vim-easymotion' | |
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} | |
Bundle 'scrooloose/nerdtree' | |
Bundle 'jistr/vim-nerdtree-tabs' | |
Bundle 'junegunn/vim-easy-align' | |
Bundle 'godlygeek/tabular' | |
Bundle 'mattn/webapi-vim' | |
Bundle 'mattn/gist-vim' | |
Bundle 'tpope/vim-rails.git' | |
" ctags stuff | |
Bundle 'xolox/vim-easytags' | |
Bundle 'xolox/vim-misc' | |
Bundle 'vim-scripts/easytags.vim' | |
Bundle 'majutsushi/tagbar' | |
" http://blog.stwrt.ca/2012/10/31/vim-ctags | |
nnoremap <leader>. :CtrlPTag<cr> | |
nnoremap <silent> <Leader>b :TagbarToggle<CR> | |
" vim-scripts repos | |
Bundle 'L9' | |
Bundle 'FuzzyFinder' | |
" syntax highlighting | |
Bundle 'scrooloose/syntastic' | |
Bundle 'tpope/vim-haml' | |
Bundle 'tpope/vim-markdown' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'kchmck/vim-coffee-script' | |
Bundle 'digitaltoad/vim-jade' | |
Bundle 'slim-template/vim-slim' | |
" for code folding in coffee | |
au BufNewFile,BufReadPost *.coffee setl foldmethod=indent nofoldenable | |
"convert Js to Coffee | |
map <Leader>jc <esc>:'<,'>!js2coffeescript<CR> | |
" Convert Coffee to JS | |
map <leader>cj <esc>:'<,'>!coffee -sbp<CR> | |
" clojure | |
Bundle 'guns/vim-clojure-static' | |
Bundle 'tpope/vim-fireplace' | |
au BufNewFile,BufRead *.cljs set filetype=clojure | |
Bundle 'airblade/vim-gitgutter' | |
Bundle 'mileszs/ack.vim' | |
au BufNewFile,BufRead *.ejs* set filetype=html | |
au BufNewFile,BufRead *.html.slim set filetype=slim | |
" Indent Settings | |
Bundle 'nathanaelkane/vim-indent-guides' | |
set ts=2 sw=2 et | |
let g:indent_guides_start_level = 2 | |
let g:indent_guides_enable_on_vim_startup = 1 | |
hi IndentGuidesOdd ctermbg=black | |
hi IndentGuidesEven ctermbg=darkgrey | |
let g:indent_guides_auto_colors = 0 | |
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd guibg=black ctermbg=235 | |
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven guibg=darkgrey ctermbg=236 | |
Bundle 'michaeljsmith/vim-indent-object' | |
let g:indentobject_meaningful_indentation = ["haml", "sass", "python", "yaml", "markdown"] | |
" CtrlP | |
Bundle 'kien/ctrlp.vim' | |
set runtimepath^=~/.vim/bundle/ctrlp.vim | |
let g:ctrlp_match_window_bottom = 0 " Show at top of window | |
let g:ctrlp_jump_to_buffer = 'Et' " Jump to tab AND buffer if already open | |
let g:ctrlp_split_window = 1 " <CR> = New Tab | |
let g:ctrlp_open_new_file = 't' " Open newly created files in a new tab | |
let g:ctrlp_open_multiple_files = 't' " Open multiple files in new tabs | |
let g:ctrlp_show_hidden = 1 " Index hidden files | |
" Themes | |
Bundle 'qualiabyte/vim-colorstepper' | |
Bundle 'flazz/vim-colorschemes' | |
Bundle 'sjl/badwolf' | |
Bundle 'tomasr/molokai' | |
"ColorStepper Keys | |
nmap <F6> <Plug>ColorstepPrev | |
nmap <F7> <Plug>ColorstepNext | |
nmap <S-F7> <Plug>ColorstepReload | |
colorscheme molokai | |
" Cursorline {{{ | |
" Only show cursorline in the current window and in normal mode. | |
augroup cline | |
au! | |
au WinLeave * set nocursorline | |
au WinEnter * set cursorline | |
au InsertEnter * set nocursorline | |
au InsertLeave * set cursorline | |
augroup END | |
" }}} | |
" Easy splitted window navigation | |
noremap <C-h> <C-w>h | |
noremap <C-j> <C-w>j | |
noremap <C-k> <C-w>k | |
noremap <C-l> <C-w>l | |
let mapleader="," | |
map <Leader>n <plug>NERDTreeTabsToggle<CR> | |
map <Leader>h :set syntax=html<CR> | |
filetype plugin indent on " required! | |
" | |
" Brief help | |
" :BundleList - list configured bundles | |
" :BundleInstall(!) - install(update) bundles | |
" :BundleSearch(!) foo - search(or refresh cache first) for foo | |
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" NOTE: comments after Bundle command are not allowed.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment