" vim: fdm=marker " Startup {{{ " Rewrite $MYVIMRC when using vim in :terminal let $MYVIMRC = expand("") set encoding=utf-8 let mapleader = "," " Delete autocommands augroup vimrc autocmd! augroup vimrc_sound autocmd! augroup END " }}} " Error catcher {{{ " silent!したいけどエラーは見たいので let g:vimrc_errors = [] function! s:catch(args) abort try execute a:args catch call vimrc#add_exception() endtry endfunction command! -nargs=* Catch call s:catch("") " }}} " Plugin {{{ if !v:vim_did_enter let s:minpac = fnamemodify("~/.vim/pack/minpac/opt/minpac", ":p") if !isdirectory(s:minpac) && executable("git") call mkdir(fnamemodify(s:minpac, ":h"), "p") execute "!git clone https://github.com/k-takata/minpac.git" s:minpac endif packadd minpac if exists("*minpac#init") call minpac#init() call minpac#add("k-takata/minpac", {"type": "opt"}) " cat.vim: ~/.vim/scripts/plug/appearance.vim {{{ call minpac#add('itchyny/lightline.vim') call minpac#add('unblevable/quick-scope') call minpac#add('mhinz/vim-signify') " }}} " cat.vim: ~/.vim/scripts/plug/appearance/colorizer.vim {{{ call minpac#add('lilydjwg/colorizer', {'type': 'opt'}) let g:colorizer_startup = v:false " こちらはcolorizer側で上書きされる nnoremap Colorizer :packadd colorizer:ColorToggle let g:colorizer_nomap = v:true " あちらでマップされるものと同じ nmap tc Colorizer " }}} " cat.vim: ~/.vim/scripts/plug/colors.vim {{{ " :colorschemeはoptを見てくれるので便利 call minpac#add('aereal/vim-colors-japanesque', {'type': 'opt'}) call minpac#add('ajgrf/parchment', {'type': 'opt'}) call minpac#add('caksoylar/vim-mysticaltutor', {'type': 'opt'}) call minpac#add('cocopon/iceberg.vim', {'type': 'opt'}) call minpac#add('fcpg/vim-orbital', {'type': 'opt'}) call minpac#add('freeo/vim-kalisi', {'type': 'opt'}) call minpac#add('habamax/vim-colors-defminus', {'type': 'opt'}) call minpac#add('junegunn/seoul256.vim', {'type': 'opt'}) call minpac#add('lifepillar/vim-solarized8', {'type': 'opt'}) call minpac#add('liuchengxu/space-vim-theme', {'type': 'opt'}) call minpac#add('machakann/vim-colorscheme-snowtrek', {'type': 'opt'}) call minpac#add('morhetz/gruvbox', {'type': 'opt'}) call minpac#add('nightsense/seabird', {'type': 'opt'}) call minpac#add('reedes/vim-colors-pencil', {'type': 'opt'}) call minpac#add('romainl/Apprentice', {'type': 'opt'}) call minpac#add('tomasr/molokai', {'type': 'opt'}) call minpac#add('toupeira/vim-desertink', {'type': 'opt'}) call minpac#add('vim-scripts/moria', {'type': 'opt'}) call minpac#add('vim-scripts/summerfruit256.vim', {'type': 'opt'}) call minpac#add('whatyouhide/vim-gotham', {'type': 'opt'}) call minpac#add('yasukotelin/shirotelin', {'type': 'opt'}) call minpac#add('yous/vim-open-color', {'type': 'opt'}) call minpac#add('yuttie/hydrangea-vim', {'type': 'opt'}) " }}} " cat.vim: ~/.vim/scripts/plug/edit.vim {{{ call minpac#add('machakann/vim-sandwich') " }}} " cat.vim: ~/.vim/scripts/plug/edit/caw.vim {{{ call minpac#add('tyru/caw.vim', {'type': 'opt'}) nmap prefix (caw:prefix) xmap prefix (caw:prefix) nnoremap