Skip to content

Instantly share code, notes, and snippets.

@seriwb
Last active May 11, 2017 16:44
Show Gist options
  • Save seriwb/96e6e558e7280c1be8552e60e7d43d03 to your computer and use it in GitHub Desktop.
Save seriwb/96e6e558e7280c1be8552e60e7d43d03 to your computer and use it in GitHub Desktop.
" ------------------------------------
" colorscheme
" ------------------------------------
syntax on
colorscheme molokai
let g:molokai_original = 1
let g:rehash256 = 1
set background=dark
" iTerm2で半透明にしているが、vimのcolorschemeを設定すると背景も変更されるため
highlight Normal ctermbg=none
" code settings
set tabstop=4
set autoindent
set expandtab
set shiftwidth=4
set backspace=indent,eol,start
" dein.vim
if &compatible
set nocompatible
endif
set runtimepath+=~/.vim/dein.vim/repos/github.com/Shougo/dein.vim
call dein#begin(expand('~/.vim/dein.vim'))
call dein#add('racer-rust/vim-racer')
call dein#add('rust-lang/rust.vim')
" go plugins
call dein#add('fatih/vim-go')
call dein#end()
" rust settings
let g:rustfmt_autosave = 1
let g:rustfmt_command = '$HOME/.cargo/bin/rustfmt'
set hidden
let g:racer_cmd = '$HOME/.cargo/bin/racer'
let $RUST_SRC_PATH="/usr/local/src/rustc-1.13.0/src"
" go settings
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_fields = 1
let g:go_highlight_types = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
filetype plugin indent on
@seriwb
Copy link
Author

seriwb commented Dec 1, 2016

cd .vim
curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
sh ./installer.sh dein.vim

vim上で:call dein#install()

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