Created
August 5, 2014 17:46
-
-
Save Zelnox/e1351fa26d181f9cd0f8 to your computer and use it in GitHub Desktop.
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
execute pathogen#infect() | |
filetype plugin indent on | |
if &term =~ "xterm-256color" | |
set t_Co=256 | |
colorscheme xoria256 | |
endif | |
if has("gui_macvim") | |
set fuopt=maxvert,maxhorz " full screen takes entire screen | |
set guifont=FiraMono:h14 | |
"set guifont=Inconsolata:h14 | |
endif | |
set background=dark | |
set ruler " show the line number on the bar | |
set more " use more prompt | |
set autoread " watch for file changes | |
set number " line numbers | |
set hidden | |
set noautowrite " don't automagically write on :next | |
set lazyredraw " don't redraw when don't have to | |
set showmode | |
set showcmd | |
set nocompatible " vim, not vi | |
set autoindent smartindent " auto/smart indent | |
set smarttab " tab and backspace are smart | |
set expandtab | |
set tabstop=2 " 6 spaces | |
set shiftwidth=2 | |
set scrolloff=5 " keep at least 5 lines above/below | |
set sidescrolloff=5 " keep at least 5 lines left/right | |
set history=200 | |
set backspace=indent,eol,start | |
set linebreak | |
set cmdheight=2 " command line two lines high | |
set undolevels=1000 " 1000 undos | |
set updatecount=100 " switch every 100 chars | |
set complete=.,w,b,u,U,t,i,d " do lots of scanning on tab completion | |
set ttyfast " we have a fast terminal | |
set noerrorbells " No error bells please | |
set shell=bash | |
set fileformats=unix | |
set ff=unix | |
filetype on " Enable filetype detection | |
filetype indent on " Enable filetype-specific indenting | |
filetype plugin on " Enable filetype-specific plugins | |
set wildmode=longest:full | |
set wildmenu " menu has tab completion | |
let maplocalleader=',' " all my macros start with , | |
set laststatus=2 | |
set title " set terminal title | |
set visualbell | |
" searching | |
set incsearch " incremental search | |
set ignorecase " search ignoring case | |
set hlsearch " highlight the search | |
set showmatch " show matching bracket | |
set diffopt=filler,iwhite " ignore all whitespace and sync | |
" backup | |
set backup | |
set backupdir=~/.vim/backup | |
set viminfo=%100,'100,/100,h,\"500,:100,n~/.viminfo | |
"set viminfo='100,f1 | |
" spelling | |
if v:version >= 700 | |
" Enable spell check for text files | |
autocmd BufNewFile,BufRead *.txt setlocal spell spelllang=en | |
endif | |
" invisible chars | |
set listchars=tab:>-,trail:·,eol:$ | |
" mappings | |
" toggle list mode | |
nmap <LocalLeader>tl :set list!<cr> | |
" toggle paste mode | |
nmap <LocalLeader>pp :set paste!<cr> | |
" toggle paste mode | |
nmap <LocalLeader>gg :IndentGuidesToggle<cr> | |
inoremap <C-l> => | |
" system clipboard on OSX | |
set clipboard=unnamed | |
" faster scrolling | |
nnoremap <C-e> 3<C-e> | |
nnoremap <C-y> 3<C-y> | |
" try to get omnicompletion to work again | |
"let g:rubycomplete_buffer_loading = 1 | |
"let completefunc=syntaxcomplete#Complete | |
if has("autocmd") | |
autocmd FileType ruby set omnifunc=rubycomplete#Complete | |
autocmd FileType ruby let g:rubycomplete_buffer_loading=1 | |
autocmd FileType ruby let g:rubycomplete_classes_in_global=1 | |
" autocmd FileType ruby let g:rubycomplete_rails = 1 | |
" autocmd Filetype ruby let g:autoloaded_rails = 1 | |
endif | |
"vim-indent-guide | |
let g:indent_guides_auto_colors = 0 | |
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd ctermbg=black | |
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=59 | |
colorscheme xoria256 | |
syntax on | |
"set rtp+=/usr/local/lib/python2.7/site-packages/powerline/bindings/vim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment