Skip to content

Instantly share code, notes, and snippets.

@brianchung808
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save brianchung808/61528ec332070ff84d57 to your computer and use it in GitHub Desktop.

Select an option

Save brianchung808/61528ec332070ff84d57 to your computer and use it in GitHub Desktop.
my .vimrc
set nocompatible
filetype off
filetype plugin indent off
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" language specific plugins
Plugin 'pangloss/vim-javascript'
Plugin 'plasticboy/vim-markdown'
Plugin 'fatih/vim-go'
Plugin 'kchmck/vim-coffee-script'
Plugin 'mxw/vim-jsx'
Plugin 'mtscout6/vim-cjsx'
Plugin 'othree/html5.vim'
Plugin 'mustache/vim-mustache-handlebars'
Plugin 'elzr/vim-json'
" color schemes
Plugin 'flazz/vim-colorschemes'
Plugin 'altercation/vim-colors-solarized'
" navigation
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'kien/ctrlp.vim'
Plugin 'myusuf3/numbers.vim'
Plugin 'Lokaltog/vim-easymotion'
" git
Plugin 'tpope/vim-fugitive'
Plugin 'airblade/vim-gitgutter'
Plugin 'gregsexton/gitv'
" autocompletion
Plugin 'Valloric/YouCompleteMe'
Plugin 'ervandew/supertab'
" various utils
Plugin 'tpope/vim-sensible'
Plugin 'jiangmiao/auto-pairs'
Plugin 'itchyny/lightline.vim'
Plugin 'bling/vim-bufferline'
Plugin 'scrooloose/nerdcommenter'
Plugin 'godlygeek/tabular'
Plugin 'scrooloose/syntastic'
Plugin 'editorconfig/editorconfig-vim'
Plugin 'wesQ3/vim-windowswap'
call vundle#end()
" set the golang syntax from vim-go
set rtp+=~/.vim/bundle/vim-go/syntax
filetype plugin indent on
syntax on
" go-lang things
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:SuperTabDefaultCompletionType = "<c-n>" " <tab> completion going -down- list
let g:lightline = {
\ 'colorscheme': 'solarized',
\ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" },
\ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }
\ }
let g:indent_guides_auto_colors = 1
let g:jsx_ext_required = 0
" LEADER!
let mapleader=","
set hidden
" tab things
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
set autoindent
" mouse =/
set mouse=a
set hlsearch
set number " line numbers
set cursorline " highlight current line
set lazyredraw " redraw only when needed
" so wrapped lines are rec by j/k
nmap j gj
nmap k gk
" remap jump to beginning & end of line
nnoremap B ^
nnoremap E $
nnoremap $ <nop>
nnoremap ^ <nop>
" ; -> :. less shift
nnoremap ; :
" make :W save too
command! W write
"map kj sequence to escape
inoremap kj <ESC>
"map space to unhighlight search term
nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
set viminfo='100,n$HOME/.vim/files/info/viminfo'
if has("gui_running")
set guifont=Inconsolata\ for\ Powerline:h14
endif
" no other way except solarized
colorscheme solarized
set background=light
@brianchung808

Copy link
Copy Markdown
Author

For neocomplete, need lua. Also overriding system vim is cool.
brew install macvim --with-cscope --with-lua --override-system-vim --HEAD

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