Skip to content

Instantly share code, notes, and snippets.

@adykto
Last active December 17, 2015 03:39
Show Gist options
  • Save adykto/5544806 to your computer and use it in GitHub Desktop.
Save adykto/5544806 to your computer and use it in GitHub Desktop.
My .vimrc :)
:start
filetype off
call pathogen#infect('bundle/{}')
call pathogen#helptags()
filetype plugin indent on
set t_Co=256
colorscheme distinguished
au VimEnter * NERDTree
au BufEnter * NERDTreeMirror
au VimEnter * wincmd w
match Todo /\s\+$/
hi RedundantSpaces term=standout ctermbg=Grey
call matchadd('RedundantSpaces', '\(\s\+$\| \+\ze\t\|\t\zs \+\)\(\%#\)\@!')
hi ExtraWhitespace ctermbg=red guibg=red
au ColorScheme * highlight ExtraWhitespace guibg=red
au BufEnter * match ExtraWhitespace /\s\+$/
au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
au InsertLeave * match ExtraWhiteSpace /\s\+$/
syntax on
noremap <C-S> :update<CR>
vnoremap <C-S> <C-C>:update<CR>
inoremap <C-S> <C-O>:update<CR>
noremap <C-T> :TagbarToggle<CR>
noremap <C-Y> :NERDTreeToggle<CR>
map <C-RIGHT> <C-W>l
map <C-LEFT> <C-W>h
map <C-UP> <C-W>k
map <C-DOWN> <C-W>j
au Filetype ruby call SetRubyOptions()
function SetRubyOptions()
set makeprg=ruby\ %
noremap <C-B> :make<CR>
vnoremap <C-B> <C-C>:make<CR>
inoremap <C-B> <C-O>:make<CR>
endfunction
let g:neocomplcache_enable_at_startup = 1
let g:tagbar_width=28
let g:syntastic_check_on_open= 1
let g:syntastic_check_on_open= 1
let g:syntastic_error_symbol='✖'
let g:syntastic_warning_symbol='❗'
let g:syntastic_auto_jump=1
let g:syntastic_loc_list_height=5
let mapleader = ','
let g:gitgutter_enabled = 1
set autowrite
set shiftwidth=4
set fcs+=vert:\
set listchars=tab:⁞…,trail:⁓,extends:#,nbsp:.
set list
set number
set cursorline
set nowrap
set noshowmode
set tabstop=4
set laststatus=2
set ic scs
set hlsearch
set incsearch
set autoindent
set foldmethod=syntax
set foldminlines=25
set noruler
set nobackup
set noswapfile
set nowritebackup
set autoread
set hidden
set nocompatible
set autoindent smartindent
set copyindent
set showfulltag
set noerrorbells
set cmdheight=2
set showmatch
set mouse=a
set mousehide
set lazyredraw
set showmode
set showcmd
set scrolloff=5
set sidescrolloff=5
set backspace=indent,eol,start
set visualbell
set noerrorbells
set history=9999
set virtualedit=onemore
set shortmess+=filmnrxoOtT
set viewoptions=folds,options,cursor,unix,slash
set backspace=indent,eol,start
set pastetoggle=<F12>
set fileencoding=utf-8
set wildmenu
hi NonText ctermbg=16 ctermfg=16
hi LineNr ctermbg=16 ctermfg=236
hi VertSplit ctermbg=233 ctermfg=0
hi StatusLine ctermbg=233 ctermfg=238
hi StatusLineNC ctermbg=233 ctermfg=236
hi SpecialKey term=standout ctermfg=235
@adykto
Copy link
Author

adykto commented May 20, 2013

I'm not sure about:

let g:neocomplcache_enable_at_startup = 1

Maybe I'll need to delete that one...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment