command! -nargs=1 SetTab \ let &l:tabstop= | \ let &l:softtabstop = &l:tabstop | \ let &l:shiftwidth = &l:tabstop command! Terminal execute 'terminal' $SHELL command! Pry botright sp +terminal\ pry command! Q qall! command! W w! command! WWW w !sudo tee > /dev/null % command! RmSwap if exists('g:swapname') | call system('rm ' . g:swapname) | endif command! FcitxOff call system('fcitx-remote -c') command! -nargs=+ Cal echo eval() command! -nargs=1 Char echo printf("%c", 0x) command! Cdbuffer cd %:h command! Lcdbuffer lcd %:h command! -nargs=* Job call jobstart() command! RunInTerm let g:quickrun_config._.runner = 'terminal' command! Recache call dein#recache_runtimepath() | echo 'Recached!' command! Install call dein#install() command! Clear call dein#clear_state() command! Update call dein#update() command! ClearLocList call setloclist(winnr(), []) command! Tags call Tags() command! MoveToTab exec "normal! \T" command! Hitest noautocmd runtime syntax/hitest.vim command! Narrow set laststatus=0 cmdheight=1 showtabline=0 command! ReloadKeymap source ~/.vim/keymap.vim command! Tig execute "silent! !tig status" | redraw! command! TmpCommit !git tmpc command! -nargs=? Ls !ls -F " #encoding Reopening with a specific character."{{{ " In particular effective when I am garbled in a terminal. command! -bang -bar -complete=file -nargs=? Utf8 edit ++enc=utf-8 command! -bang -bar -complete=file -nargs=? Iso2022jp edit ++enc=iso-2022-jp command! -bang -bar -complete=file -nargs=? Cp932 edit ++enc=cp932 command! -bang -bar -complete=file -nargs=? Euc edit ++enc=euc-jp command! -bang -bar -complete=file -nargs=? Utf16 edit ++enc=ucs-2le command! -bang -bar -complete=file -nargs=? Utf16be edit ++enc=ucs-2 " Aliases. command! -bang -bar -complete=file -nargs=? Jis Iso2022jp command! -bang -bar -complete=file -nargs=? Sjis Cp932 command! -bang -bar -complete=file -nargs=? Unicode Utf8 "}}} " ---- autoload ---- command! -range AddGuiColor ,call vimrc#add_gui_color() command! AddRepo call vimrc#add_repo() command! SyntaxInfo call vimrc#get_syn_info() command! -complete=highlight -nargs=* Hi call vimrc#highlight() command! OpenGitDiffWin call vimrc#open_git_diff('w') command! OpenGitDiffTab call vimrc#open_git_diff('t') command! Uclear vimrc#undo_clear command! UndoClear call vimrc#undo_clear() command! CurrentOnly call vimrc#current_only() command! ActiveOnly call vimrc#active_only() command! DeleteTrashBuffers call vimrc#delete_trash_buffers() command! GitTop execute 'cd' vimrc#git_top() command! TermRun noautocmd w | call vimrc#terminal_run() command! BuffersInfo PP vimrc#buffers_info() command! -nargs=1 ColorTrans echo vimrc#trans_color() command! -nargs=+ -complete=command \ Capture call vimrc#capture() command! -nargs=+ -complete=command \ CaptureWin call vimrc#capture_win() " zsh like tabedit. if executable('zsh') command! -nargs=1 -complete=customlist,vimrc#zsh_file_completion T tabedit endif " #note command! -nargs=1 -complete=customlist,vimrc#note_file_completion \ Note call vimrc#note_open() " #word translate let g:word_translate_local_dict = '~/.vim/tmp/gene.dict' command! -nargs=1 Weblio echo vimrc#word_translate_weblio() command! -nargs=1 Weblios echo vimrc#word_translate_weblio_smart() command! -nargs=? WtransLocal call vimrc#word_translate_local_dict() command! -nargs=? WordTranslate call vimrc#word_translate() command! -nargs=? GoldenDict call vimrc#goldendict()