Created
August 10, 2021 01:25
-
-
Save coke12103/b414e63ec9868d59d0669dcd4e3ead5f to your computer and use it in GitHub Desktop.
init.vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"dein Scripts----------------------------- | |
if &compatible | |
set nocompatible " Be iMproved | |
endif | |
" Required: | |
set runtimepath+=/home/coke/.config/nvim//repos/github.com/Shougo/dein.vim | |
" Required: | |
if dein#load_state('/home/coke/.config/nvim/') | |
call dein#begin('/home/coke/.config/nvim/') | |
" Let dein manage dein | |
" Required: | |
call dein#add('/home/coke/.config/nvim//repos/github.com/Shougo/dein.vim') | |
" Add or remove your plugins here: | |
call dein#add('Shougo/neosnippet.vim') | |
call dein#add('Shougo/neosnippet-snippets') | |
" colorschemes | |
call dein#add ('flazz/vim-colorschemes') | |
call dein#add ('jonathanfilip/vim-lucius') | |
call dein#add ('dim13/smyck.vim') | |
call dein#add ('hzchirs/vim-material') | |
call dein#add ('Zabanaa/neuromancer.vim') | |
" 閉じ補完 | |
call dein#add ('cohama/lexima.vim') | |
" ツリー | |
call dein#add ('scrooloose/nerdtree') | |
" Ruby | |
call dein#add ('tpope/vim-endwise') | |
" Apex | |
call dein#add ('neowit/vim-force.com') | |
" html | |
call dein#add ('mattn/emmet-vim') | |
call dein#add ('hail2u/vim-css3-syntax') | |
" javascript | |
call dein#add ('jiangmiao/simple-javascript-indenter') | |
call dein#add ('scrooloose/syntastic') | |
call dein#add ('moll/vim-node') | |
call dein#add ('myhere/vim-nodejs-complete') | |
" Syntax | |
call dein#add ('vim-syntastic/syntastic') | |
" need nightly | |
call dein#add ('nvim-treesitter/nvim-treesitter', { 'merged': 0 }) | |
" indent | |
call dein#add ('Yggdroot/indentLine') | |
" 補完 | |
call dein#add ('Shougo/deoplete.nvim') | |
call dein#add ('Shougo/deoplete-rct') | |
" 下のやつ見やすくするやつ | |
call dein#add ('itchyny/lightline.vim') | |
" Rust | |
call dein#add ('rust-lang/rust.vim') | |
" whitespace | |
call dein#add ('bronson/vim-trailing-whitespace') | |
" Java | |
call dein#add ('vim-scripts/java.vim') | |
" nim | |
call dein#add ('zah/nim.vim') | |
" qml | |
call dein#add ('peterhoeg/vim-qml') | |
" You can specify revision/branch/tag. | |
"call dein#add('Shougo/deol.nvim', { 'rev': 'a1b5108fd' }) | |
" Required: | |
call dein#end() | |
call dein#save_state() | |
endif | |
" Required: | |
filetype plugin indent on | |
syntax enable | |
" If you want to install not installed plugins on startup. | |
if dein#check_install() | |
call dein#install() | |
endif | |
"End dein Scripts------------------------- | |
"Plugin Setup | |
let g:indentLine_color_term = 111 | |
let g:indentLine_color_gui = '#708090' | |
let g:indentLine_char = '┆' "use ¦, ┆ or │ | |
let g:syntastic_check_on_open=0 "ファイルを開いたときはチェックしない | |
let g:syntastic_check_on_save=1 "保存時にはチェック | |
let g:syntastic_check_on_wq = 0 " wqではチェックしない | |
let g:syntastic_auto_loc_list=1 "エラーがあったら自動でロケーションリストを開く | |
let g:syntastic_loc_list_height=6 "エラー表示ウィンドウの高さ | |
set statusline+=%#warningmsg# "エラーメッセージの書式 | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_javascript_checkers = ['eslint'] "ESLintを使う | |
let g:syntastic_mode_map = { | |
\ 'mode': 'active', | |
\ 'active_filetypes': ['javascript'], | |
\ 'passive_filetypes': [] | |
\ } | |
autocmd FileType javascript setlocal omnifunc=nodejscomplete#CompleteJS | |
if !exists('g:neocomplcache_omni_functions') | |
let g:neocomplcache_omni_functions = {} | |
endif | |
let g:neocomplcache_omni_functions.javascript = 'nodejscomplete#CompleteJS' | |
let g:node_usejscomplete = 1 | |
" auto-ctagsを使ってファイル保存時にtagsファイルを更新 | |
let g:auto_ctags = 1 | |
" treesitter | |
lua <<EOF | |
require'nvim-treesitter.configs'.setup { | |
highlight = { | |
enable = true, | |
}, | |
indent = { | |
enable = true, | |
}, | |
ensure_installed = 'all', | |
} | |
EOF | |
"Plugin Setup end | |
" UI | |
syntax on | |
colorscheme Dark | |
colorscheme lucius | |
set number | |
set laststatus=2 | |
set showcmd | |
set cursorline | |
set title | |
set virtualedit=onemore | |
set shortmess+=I | |
" indent | |
set autoindent | |
set shiftwidth=2 | |
set expandtab | |
set tabstop=2 | |
set smartindent | |
set smarttab | |
" search | |
set ignorecase | |
set smartcase | |
set wrapscan | |
set incsearch | |
set hlsearch | |
" 補完 | |
set wildmenu | |
set showmatch | |
set wildmode=list:full | |
" いらんやつの無効化 | |
set noswapfile | |
set noerrorbells | |
set novisualbell | |
" Windows | |
set shellslash | |
" その他 | |
set history=100 | |
set clipboard=unnamed | |
set inccommand=split | |
augroup MyXML | |
autocmd Filetype xml inoremap <buffer> </ </<C-x><C-o> | |
autocmd Filetype html inoremap <buffer> </ </<C-x><C-o> | |
autocmd Filetype eruby inoremap <buffer> </ </<C-x><C-o> | |
autocmd Filetype vue inoremap <buffer> </ </<C-x><C-o> | |
augroup END | |
tnoremap <silent> <ESC> <C-\><C-n> | |
command! Tnew :enew | :terminal | |
command! RWin :e ++fileformat=unix | :%s/\r//g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment