Skip to content

Instantly share code, notes, and snippets.

@rxw1
Created March 27, 2015 00:41
Show Gist options
  • Save rxw1/23e8e1f820610a366a5e to your computer and use it in GitHub Desktop.
Save rxw1/23e8e1f820610a366a5e to your computer and use it in GitHub Desktop.
My slow vim config
" http://www.github.com/rwilhelm/dotfiles/vimrc
" Tue Jun 17 01:33:55 CEST 2014
" 2007-2014 (c) [email protected]
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"Plugin 'matthewsimo/angular-vim-snippets'
"Plugin 'jiangmiao/auto-pairs'
"Plugin 'rizzatti/dash.vim'
"Plugin 'othree/javascript-libraries-syntax.vim'
"Plugin 'scrooloose/nerdcommenter'
"Plugin 'ervandew/supertab'
"Plugin 'burnettk/vim-angular'
"Plugin 'digitaltoad/vim-jade'
"Plugin 'terryma/vim-multiple-cursors'
"Plugin 'honza/vim-snippets'
Plugin 'airblade/vim-gitgutter'
Plugin 'chriskempson/base16-vim'
Plugin 'ervandew/supertab'
Plugin 'gmarik/Vundle.vim'
Plugin 'kien/ctrlp.vim'
Plugin 'maksimr/vim-jsbeautify'
Plugin 'mattn/emmet-vim'
Plugin 'mxw/vim-jsx'
Plugin 'pangloss/vim-javascript'
Plugin 'scrooloose/syntastic'
call vundle#end()
filetype plugin indent on
syntax on
"colorscheme base16-default
colorscheme base16-mocha
colorscheme asdf
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
"set clipboard=unnamed " make vim use the osx clipboard
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn|node_modules|bower_components)$'
let g:syntastic_html_tidy_ignore_errors = ['proprietary attribute "myhotcompany-']
"map <c-f> :call JsBeautify()<cr>
autocmd FileType javascript noremap <buffer> <c-f> :call JsBeautify()<cr>
autocmd FileType html noremap <buffer> <c-f> :call HtmlBeautify()<cr>
autocmd FileType css noremap <buffer> <c-f> :call CSSBeautify()<cr>
autocmd FileType javascript vnoremap <buffer> <c-f> :call RangeJsBeautify()<cr>
autocmd FileType html vnoremap <buffer> <c-f> :call RangeHtmlBeautify()<cr>
autocmd FileType css vnoremap <buffer> <c-f> :call RangeCSSBeautify()<cr>
set hidden " hide buffers instead of closing them
set hlsearch
set ignorecase
set infercase
set laststatus=2 " have a permanent statusline to color if 2
set matchtime=2
set modeline
set mouse=a
set mousehide
set number
set ruler
set scroll=1
set scrolloff=2
set showcmd
set showfulltag
set showmatch
set smartcase " ignore case if searchterm lowercase, otherwise not
set spelllang=de
set splitbelow
set splitright
set title
set wildmenu
set wildmode=list:longest
match Error /\s\+$/
"set viminfo+=n~/.vim/viminfo
" crontab: temp file must be edited in place
au BufEnter /private/tmp/crontab.* setl backupcopy=yes
set backupskip=/tmp/*,/private/tmp/*
set rtp+=$GOROOT/misc/vim
if has("gui_running")
"set guicursor=a:blinkon0-blinkoff1500
set guifont=Envy\ Code\ R:h13
"set guioptions=aem
"set guitablabel=%N\ %t\ %M
endif
"iab cc \cite[125]{mon69}
iab xdate <C-r>=strftime("%Y-%m-%d %H:%M:%S")<C-i>
iab _date <C-r>=strftime("%+")<C-i>
"nnoremap ; : " FIXME
map ,h :nohlsearch<CR>
map ,s :set spell! spell?<CR>
map ,p :set paste! paste?<CR>
cmap w!! w !sudo tee % >/dev/null
map ,n :set relativenumber! relativenumber?<CR>
"set cindent
"set copyindent
"set smarttab " tabs at beginning of line
set softtabstop=2
set autoindent
set shiftwidth=2
set smartindent
set tabstop=2
set undolevels=1000
set history=9999
set wildignore=*.swp,*.bak,*.pyc,*.class
"set backup
"set backupdir=.vimbackups
"set backupskip+=hg-editor-*.txt
"set backupdir=~/.vim/backup
"set directory=~/.vim/backup
" nnoremap ,l :set cursorline!<CR>
" nnoremap ,h :set hlsearch! hlsearch?<CR>
" nnoremap ,. :source ~/.vim/vimrc<CR>
set backspace=2
set foldmethod=syntax
au BufRead * normal zR
"let g:syntastic_javascript_checkers = ['jhlint']
"set background=dark
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment