if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif set number set title set showmatch syntax on set expandtab set shiftwidth=4 set tabstop=4 set smartindent set list lcs=tab:\|\ set ignorecase "大文字/小文字の区別なく検索する set smartcase "検索文字列に大文字が含まれている場合は区別して検索する set wrapscan "検索時に最後まで行ったら最初に戻る set hlsearch set incsearch set backspace=2 set formatoptions-=ro set hidden set nofixeol set completeopt+=preview,menuone set redrawtime=3000 " syntax on set background=dark set laststatus=2 if empty(glob('~/.vim/tmp')) silent !mkdir -p ~/.vim/tmp endif set directory=~/.vim/tmp let mapleader = "\" let maplocalleader = "\" let g:plug_shallow = 0 call plug#begin('~/.vim/plugged') Plug 'prabirshrestha/async.vim' Plug 'prabirshrestha/vim-lsp' Plug 'mattn/vim-lsp-settings' Plug 'mattn/vim-lsp-icons' Plug 'prabirshrestha/asyncomplete.vim' Plug 'prabirshrestha/asyncomplete-lsp.vim' Plug 'hrsh7th/vim-vsnip' Plug 'hrsh7th/vim-vsnip-integ' Plug 'szw/vim-tags' " theme Plug 'arcticicestudio/nord-vim' " for lit-html Plug 'jonsmithers/vim-html-template-literals' " for coffee script Plug 'kchmck/vim-coffee-script' " for twig Plug 'nelsyeung/twig.vim' Plug 'mattn/emmet-vim' Plug 'tpope/vim-unimpaired' Plug 'tpope/vim-abolish' Plug 'itchyny/lightline.vim' Plug 'qpkorr/vim-bufkill' " to treat whitespace Plug 'ntpeters/vim-better-whitespace' Plug 'junegunn/vim-easy-align' Plug 'tpope/vim-surround' Plug 'tpope/vim-repeat' " for indent Plug 'ciaranm/detectindent' Plug 'Yggdroot/indentline' " for json conceal disable Plug 'elzr/vim-json' " Plug 'docunext/closetag.vim' Plug 'alvan/vim-closetag' Plug 'yggdroot/indentline' " file manager Plug 'mattn/vim-molder' " treat file Plug 'tpope/vim-eunuch' " for git Plug 'tpope/vim-fugitive' Plug 'tpope/vim-rhubarb' Plug 'airblade/vim-gitgutter' Plug 'borissov/fugitive-gitea' Plug 'ctrlpvim/ctrlp.vim' Plug 'mattn/ctrlp-mark' Plug 'mattn/ctrlp-register' Plug 'mattn/ctrlp-launcher' Plug 'mattn/ctrlp-matchfuzzy' Plug 'mileszs/ack.vim' Plug 'andymass/vim-matchup' " for markdown Plug 'plasticboy/vim-markdown' Plug 'kannokanno/previm' Plug 'mattn/vim-maketable' Plug 'glidenote/memolist.vim' Plug 'mattn/vim-sonictemplate' " open url or so Plug 'tyru/open-browser.vim' " for comment Plug 'scrooloose/nerdcommenter' " sneak: Jump to any location specified by two characters. Plug 'justinmk/vim-sneak' " Plug 'thinca/vim-quickrun' Plug 'thinca/vim-localrc' Plug 'ap/vim-css-color' Plug 'vim-scripts/CSSMinister' " memorize cursor position Plug 'farmergreg/vim-lastplace' " diff Plug 'AndrewRadev/linediff.vim' " for Wayland clipboard Plug 'jasonccox/vim-wayland-clipboard' Plug 'na0x2c6/auto-touch-on-save.vim' call plug#end() colorscheme nord let s:plugs = get(s:, 'plugs', get(g:, 'plugs', {})) function! FindPlugin(name) abort return has_key(s:plugs, a:name) ? isdirectory(s:plugs[a:name].dir) : 0 endfunction command! -nargs=1 UsePlugin if !FindPlugin() | finish | endif runtime! _config/*.vim