Last active
August 29, 2015 13:56
-
-
Save obihann/8964414 to your computer and use it in GitHub Desktop.
Vim conf
This file contains 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 | |
" =============== Vundle Initialization =============== | |
if filereadable(expand("~/.vim/vundles.vim")) | |
source ~/.vim/vundles.vim | |
endif | |
" ================ General Config ==================== | |
set number "Line numbers are good | |
set backspace=indent,eol,start "Allow backspace in insert mode | |
set history=1000 "Store lots of :cmdline history | |
set showcmd "Show incomplete cmds down the bottom | |
set showmode "Show current mode down the bottom | |
set gcr=a:blinkon0 "Disable cursor blink | |
set visualbell "No sounds | |
set autoread "Reload files changed outside vim | |
let g:session_autoload = 'no' | |
set hidden | |
syntax on | |
let mapleader="," | |
set background=dark | |
" solarized options | |
let g:solarized_termcolors = 256 | |
let g:solarized_visibility = "high" | |
let g:solarized_contrast = "high" | |
colorscheme solarized | |
set t_Co=256 | |
autocmd VimEnter * set guitablabel=%N:\ %t\ %M | |
set lines=60 | |
set columns=190 | |
set guifont=Inconsolata\ XL:h17,Inconsolata:h20,Monaco:h17 | |
au BufNewFile,BufRead *.ejs set filetype=html | |
" ================ PowerLine ====================== | |
let g:Powerline_symbols='fancy' | |
let g:Powerline_theme='skwp' | |
let g:Powerline_colorscheme='skwp' | |
set laststatus=2 | |
" ================ NERDTree ======================= | |
let g:nerdtree_tabs_open_on_console_startup=1 | |
let NERDTreeShowHidden=1 | |
let NERDTreeMinimalUI = 1 | |
let NERDTreeDirArrows = 1 | |
let g:NERDTreeWinSize = 30 | |
let NERDTreeHighlightCursorline = 0 | |
set guioptions-=r | |
set guioptions-=L | |
set guioptions-=T | |
" ============== indent guide ======================== | |
let g:indent_guides_auto_colors = 1 | |
let g:indent_guides_start_level = 2 | |
let g:indent_guides_guide_size = 1 | |
" =============== Airline ========================= | |
let g:airline_left_sep = '⮀' | |
let g:airline_left_alt_sep = '⮁' | |
let g:airline_right_sep = '⮂' | |
let g:airline_right_alt_sep = '⮃' | |
let g:airline_branch_prefix = '⭠ ' | |
let g:airline_readonly_symbol = '⭤' | |
let g:airline_linecolumn_prefix = '⭡' | |
" ================ Turn Off Swap Files ============== | |
set noswapfile | |
set nobackup | |
set nowb | |
" ================ Persistent Undo ================== | |
silent !mkdir ~/.vim/backups > /dev/null 2>&1 | |
set undodir=~/.vim/backups | |
set undofile | |
" ================ syntastic ======================== | |
let g:syntastic_enable_signs=1 | |
let g:syntastic_auto_jump=0 | |
let g:syntastic_auto_loc_list=1 | |
let g:syntastic_quiet_warnings=0 | |
" ================ Indentation ====================== | |
set autoindent | |
set smartindent | |
set smarttab | |
set shiftwidth=4 | |
set softtabstop=4 | |
set tabstop=4 | |
set expandtab | |
filetype plugin on | |
filetype indent on | |
"set list listchars=tab:\ \ ,trail:· | |
set nowrap "Don't wrap lines | |
set linebreak "Wrap lines at convenient points | |
" ================ Folds ============================ | |
set foldmethod=indent "fold based on indent | |
set foldnestmax=3 "deepest fold is 3 levels | |
set nofoldenable "dont fold by default | |
" ================ Scrolling ======================== | |
set scrolloff=8 "Start scrolling when we're 8 lines away from margins | |
set sidescrolloff=15 | |
set sidescroll=1 | |
" ================ Mappings ======================= | |
map <Leader>caw :%s/\s\+$//<CR> | |
map <Leader>tbt :TagbarToggle<CR> | |
map <Leader>ntt :NERDTreeToggle<CR> | |
map <Leader>mbe :MBEOpen<cr> | |
map <Leader>mbc :MBEClose<cr> | |
map <Leader>mbt :MBEToggle<cr> | |
map <Leader>epl :ProjectList<CR> | |
map <Leader>ept :ProjectTreeToggle<CR> | |
map <Leader>gun :GundoToggle<CR> | |
map <Leader>ind :IndentConsistencyCop<CR> | |
" ============== GUndo ======================= | |
let g:gundo_width = 60 | |
let g:gundo_preview_height = 40 | |
let g:gundo_right = 1 | |
let g:gundo_preview_bottom = 1 | |
let g:gundo_preview_height = 15 | |
" ============== CoffeeTags ======================= | |
if executable('coffeetags') | |
let g:tagbar_type_coffee = { | |
\ 'ctagsbin' : 'coffeetags', | |
\ 'ctagsargs' : '', | |
\ 'kinds' : [ | |
\ 'f:functions', | |
\ 'o:object', | |
\ ], | |
\ 'sro' : ".", | |
\ 'kind2scope' : { | |
\ 'f' : 'object', | |
\ 'o' : 'object', | |
\ } | |
\ } | |
endif |
This file contains 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
" ======================================== | |
" Vim plugin configuration | |
" ======================================== | |
" | |
" This file contains the list of plugin installed using vundle plugin manager. | |
" Once you've updated the list of plugin, you can run vundle update by issuing | |
" the command :BundleInstall from within vim or directly invoking it from the | |
" command line with the following syntax: | |
" vim --noplugin -u vim/vundles.vim -N "+set hidden" "+syntax on" +BundleClean! +BundleInstall +qall | |
" Filetype off is required by vundle | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle "gmarik/vundle" | |
Bundle "pangloss/vim-javascript" | |
Bundle "digitaltoad/vim-jade.git" | |
Bundle "groenewege/vim-less.git" | |
Bundle "itspriddle/vim-jquery.git" | |
Bundle "kchmck/vim-coffee-script" | |
Bundle "tpope/vim-haml" | |
Bundle "wavded/vim-stylus" | |
Bundle "Shougo/neocomplcache.git" | |
Bundle "nelstrom/vim-visual-star-search" | |
Bundle "jistr/vim-nerdtree-tabs.git" | |
Bundle "majutsushi/tagbar.git" | |
Bundle "scrooloose/nerdtree.git" | |
Bundle "scrooloose/syntastic.git" | |
Bundle "sjl/gundo.vim" | |
Bundle "vim-scripts/AutoTag.git" | |
Bundle "skwp/vim-colors-solarized" | |
Bundle "bling/vim-airline.git" | |
Bundle "fholgado/minibufexpl.vim" | |
Bundle 'scrooloose/nerdcommenter' | |
Bundle "abudden/TagHighlight" | |
Bundle "nathanaelkane/vim-indent-guides.git" | |
Bundle "mattn/emmet-vim" | |
"Filetype plugin indent on is required by vundle | |
filetype plugin indent on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment