Skip to content

Instantly share code, notes, and snippets.

@kiyui
Last active February 19, 2016 05:54
Show Gist options
  • Save kiyui/846b3b3eda6cbcdefe21 to your computer and use it in GitHub Desktop.
Save kiyui/846b3b3eda6cbcdefe21 to your computer and use it in GitHub Desktop.
" Use VIM
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
" SECTION Vundle
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'L9'
Plugin 'jwalton512/vim-blade'
Plugin 'pangloss/vim-javascript'
Plugin 'rust-lang/rust.vim'
Plugin 'cakebaker/scss-syntax.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'briancollins/vim-jst'
Plugin 'tpope/vim-rails'
Plugin 'tpope/vim-bundler'
call vundle#end()
" ENDSECTION
filetype plugin indent on
" Versions / Backup
if has("vms")
set nobackup
else
set backup
endif
" Syntax when possible
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
" Settings
set history=50
set ruler
set showcmd
set incsearch
set nowrap
set smarttab
set expandtab
set number
set backspace=indent,eol,start
set foldlevelstart=2
" Tab commands
" set sw=4 ts=4 sts=4
" autocmd FileType rb :setlocal sw=2 ts=2 sts=2
map Q gq
" Mouse support
if has('mouse')
set mouse=a
endif
" Clipboard
if has('unnamedplus')
set clipboard=unnamedplus
endif
" Syntastic
let g:syntastic_cpp_compiler_options = ' -std=c++11 -stdlib=libc++'
" Remaps & shortcuts
:map <C-s> :w <Enter>
:map <C-t> :tabnew <Enter>
:map <C-n> :tabn <Enter>
:map <C-e> :NERDTree <Enter>
:map <C-k> :q <Enter>
inoremap <c-u> <c-g>u<c-u>
inoremap <c-w> <c-g>u<c-w>
nnoremap <silent> <Space> @=(foldlevel('.')?'za':"\<Space>")<CR>
vnoremap <Space> zf
" Theme
color koehler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment