Skip to content

Instantly share code, notes, and snippets.

@wtsnjp
Created May 20, 2017 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtsnjp/2c9907fb6de1662a8425097f5d9c0a49 to your computer and use it in GitHub Desktop.
Save wtsnjp/2c9907fb6de1662a8425097f5d9c0a49 to your computer and use it in GitHub Desktop.
" Watson's test vimrc
" Author: wtsnjp
" Website: https://wtsnjp.com
"---------------------------
" Pre
"---------------------------
" Encoding
if &encoding !=? 'utf-8'
let &termencoding = &encoding
set encoding=utf-8
endif
scriptencoding utf-8
" Augroup for this vimrc
augroup vimrc
autocmd!
augroup END
" Flags
let s:use_dein = 1
"---------------------------
" Startup
"---------------------------
" Prepare ~/.vim dir
let s:vimdir = $HOME . '/.vim'
let s:vimdata = s:vimdir . '/data'
if has('vim_starting')
if !isdirectory(s:vimdir)
call system('mkdir ' . s:vimdir)
endif
endif
"---------------------------
" Plugins (with dein.vim)
"---------------------------
filetype plugin indent off
let s:dein_enable = 0
if s:use_dein && v:version >= 704
let s:dein_enable = 1
" Set dein paths
let s:dein_dir = s:vimdir . '/dein'
let s:dein_github = s:dein_dir . '/repos/github.com'
let s:dein_repo_name = 'Shougo/dein.vim'
let s:dein_repo_dir = s:dein_github . '/' . s:dein_repo_name
" Check dein has been installed (if not, install it)
if !isdirectory(s:dein_repo_dir)
echo 'dein is not installed, install now '
let s:dein_repo = 'https://github.com/' . s:dein_repo_name
echo 'git clone ' . s:dein_repo . ' ' . s:dein_repo_dir
call system('git clone ' . s:dein_repo . ' ' . s:dein_repo_dir)
endif
let &runtimepath .= ',' . s:dein_repo_dir
" Begin plugin part
if dein#load_state(s:dein_dir)
call dein#begin(s:dein_dir)
" Package manager
call dein#add('Shougo/dein.vim')
" Utility
call dein#add('Shougo/vimproc', {'build': 'make'})
call dein#add('Shougo/vimshell', {'lazy': 1})
call dein#add('vim-scripts/sudo.vim')
call dein#add('vim-jp/vital.vim', {'rev': '8c3fdd2918bfeed48b63ce6257ad804b2a755c9f'})
call dein#add('tyru/vim-altercmd')
" Convenient
call dein#add('mattn/calendar-vim')
if has('python')
call dein#add('gregsexton/VimCalc')
endif
" Help
call dein#add('vim-jp/vimdoc-ja')
" Unite
call dein#add('Shougo/unite.vim', {'on_cmd': ['Unite']})
call dein#add('Shougo/vimfiler')
call dein#add('Shougo/neomru.vim')
call dein#add('osyo-manga/unite-quickfix')
call dein#add('h1mesuke/unite-outline')
" Formatting
call dein#add('junegunn/vim-easy-align')
call dein#add('tpope/vim-abolish')
" Yank
call dein#add('LeafCage/yankround.vim')
" Motion
call dein#add('rhysd/clever-f.vim')
call dein#add('thinca/vim-poslist')
" Operator
call dein#add('kana/vim-operator-user')
call dein#add('rhysd/vim-operator-surround')
" Text object
call dein#add('kana/vim-textobj-user')
call dein#add('kana/vim-textobj-fold')
call dein#add('kana/vim-textobj-indent')
call dein#add('kana/vim-textobj-lastpat')
call dein#add('thinca/vim-textobj-between')
" Block extention
call dein#add('kana/vim-niceblock')
" Web
call dein#add('mattn/webapi-vim')
call dein#add('tyru/open-browser.vim')
" Twitter
call dein#add('basyura/bitly.vim')
call dein#add('basyura/twibill.vim')
call dein#add('basyura/TweetVim')
" Lingr
call dein#add('tsukkee/lingr-vim')
" Completion
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
call dein#add('cohama/lexima.vim')
call dein#add('rhysd/github-complete.vim')
if has('lua')
call dein#add('Shougo/neocomplete.vim', {'on_i': 1})
call dein#add('ujihisa/neco-look', {'lazy': 1})
endif
" Debug
call dein#add('thinca/vim-quickrun')
call dein#add('osyo-manga/shabadou.vim')
call dein#add('thinca/vim-themis')
" Git
call dein#add('cohama/agit.vim')
call dein#add('tyru/open-browser-github.vim')
if has('python')
call dein#add('jaxbot/github-issues.vim')
endif
" Markdown
call dein#add('kannokanno/previm')
" TOML
call dein#add('cespare/vim-toml')
" Binary
call dein#add('Shougo/vinarise', {'lazy': 1})
" References
call dein#add('thinca/vim-ref')
call dein#add('yuku-t/vim-ref-ri')
" Submode
call dein#add('kana/vim-submode')
" Search
call dein#add('haya14busa/incsearch.vim')
call dein#add('haya14busa/vim-asterisk')
call dein#add('osyo-manga/vim-anzu')
call dein#add('vim-scripts/ag.vim')
" Status line
call dein#add('itchyny/lightline.vim')
" Programming (General)
call dein#add('mattn/sonictemplate-vim')
call dein#add('tyru/caw.vim')
call dein#add('szw/vim-tags')
call dein#add('scrooloose/syntastic')
call dein#add('Yggdroot/indentLine')
" Python
"call dein#add('davidhalter/jedi-vim')
"call dein#add('andviro/flake8-vim')
"call dein#add('hynek/vim-python-pep8-indent')
call dein#add('bps/vim-textobj-python')
" Ruby
"call dein#add('osyo-manga/vim-monster')
" Scheme
call dein#add('wlangstroth/vim-racket')
" Joke
call dein#add('thinca/vim-scouter')
call dein#end()
call dein#save_state()
endif
" Enable local plugins
call dein#local('~/repos/github.com/wtsnjp', {}, ['vim-*'])
" Installation check.
if dein#check_install()
call dein#install()
endif
endif
filetype plugin indent on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment