Skip to content

Instantly share code, notes, and snippets.

@aoli-al
Created September 26, 2015 17:23
Show Gist options
  • Save aoli-al/25160f0f4ac41ec76f9a to your computer and use it in GitHub Desktop.
Save aoli-al/25160f0f4ac41ec76f9a to your computer and use it in GitHub Desktop.
set nocompatible
set nobackup
set noswapfile
set cindent
set smartindent
syntax on
filetype off
filetype plugin indent on
let mapleader = ","
let g:mapleader = ","
set clipboard=unnamedplus
set guifont=Monaco:h14
set guioptions-=L
set guioptions-=R
" set spell
set tabstop=4
set shiftwidth=4
set softtabstop=4
set smarttab
set expandtab
set shortmess=a
set cursorline
set number
set showmatch
set laststatus=2
set autoread
set hlsearch
set foldmethod=indent
set display=lastline
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
autocmd BufNewFile,BufReadPost *.md set filetype=markdown
autocmd BufNewFile,BufReadPost *.fsh set filetype=glsl
au BufNewFile,BufRead *.coffee set filetype=coffee
map <leader>n :NERDTreeToggle<CR>
map <F10> :YcmCompleter GoToDefinition<CR>
au FileType c set makeprg=clang\ %
au FileType cpp set makeprg=clang++\ %
map <leader>r :make && ./a.out<CR>
let g:Powerline_symbols = 'fancy'
let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
let g:syntastic_cpp_compiler = 'clang++'
let g:syntastic_cpp_compiler_options = '-std=c++11 -stdlib=libc++'
let g:pymode_options_max_line_length = 119
let g:pymode_lint = 1
let g:pymode_lint_on_write = 1
let g:pymode_lint_ignore = "W0401"
" Python config
" let g:ycm_filetype_specific_completion_to_disable = {
" \ 'python': 1
" \}
let g:pymode_rope_completion = 0
let g:pymode_rope_complete_on_dot = 0
let g:pymode_rope_autoimport = 0
let g:pymode_rope_rename_module_bind = '<C-c>r1r'
let g:pymode_rope_rename_bind = '<C-c>rr'
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin()
Bundle 'altercation/vim-colors-solarized'
Bundle 'VundleVim/Vundle.vim'
Bundle 'scrooloose/nerdtree'
Bundle "scrooloose/syntastic"
Bundle "Lokaltog/vim-powerline"
Bundle "Valloric/YouCompleteMe"
Bundle "tpope/vim-commentary"
Bundle "Raimondi/delimitMate"
Bundle "msanders/cocoa.vim"
Bundle "plasticboy/vim-markdown"
Bundle "Yggdroot/indentLine"
Bundle "tpope/vim-fugitive"
Bundle "nachumk/systemverilog.vim"
Bundle "LargeFile"
Bundle "tikhomirov/vim-glsl"
Plugin 'kchmck/vim-coffee-script'
Plugin 'marijnh/tern_for_vim'
Plugin 'moll/vim-node'
Plugin 'klen/python-mode'
call vundle#end()
" colorscheme solarized
hi link coffeeReservedError NONE
hi link coffeeSpaceError NONE
hi link coffeeSemicolonError NONE
let coffee_compiler = '/usr/local/bin/coffee'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment