Created
October 14, 2019 11:33
-
-
Save kdxu/7173d7767a183003b0273f8a93f13d0d to your computer and use it in GitHub Desktop.
This file contains 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
if &compatible | |
set nocompatible | |
endif | |
" dein.vim | |
set runtimepath+=$HOME/.cache/dein/repos/github.com/Shougo/dein.vim | |
if dein#load_state(expand('~/.cache/dein/')) | |
call dein#begin(expand('~/.cache/dein/')) | |
call dein#add('Shougo/dein.vim') | |
let s:toml = '~/.dein.toml' | |
let s:lazy_toml = '~/.dein_lazy.toml' | |
call dein#load_toml(s:toml, {'lazy': 0}) | |
call dein#load_toml(s:lazy_toml, {'lazy': 1}) | |
call dein#end() | |
call dein#save_state() | |
endif | |
if dein#check_install() | |
call dein#install() | |
endif | |
filetype plugin indent on | |
syntax enable | |
set t_Co=256 | |
colorscheme iceberg | |
set background=dark | |
set mouse=a | |
set encoding=utf-8 | |
set fileencodings=utf-8,sjis,euc-jp,iso-2022-jp | |
set fileformats=unix,dos,mac | |
set listchars=tab:»-,trail:-,extends:»,precedes:«,nbsp:% | |
set showbreak=↪ | |
set list | |
set formatoptions+=mM | |
set number relativenumber | |
set nonumber norelativenumber | |
set number! relativenumber! | |
set title | |
set showtabline=2 | |
set shiftwidth=2 | |
set tabstop=2 | |
set cursorline | |
set expandtab | |
set noswapfile | |
set conceallevel=0 | |
set laststatus=2 | |
if has("mac") | |
set clipboard=unnamed | |
elseif has("unix") | |
set clipboard=unnamedplus | |
end | |
highlight Normal ctermbg=NONE | |
" ctags | |
nnoremap <C-]> g<C-]> | |
" バッファ切り替え | |
nnoremap <silent> <C-j> :bprev<CR> | |
nnoremap <silent> <C-k> :bnext<CR> | |
" nginx | |
au BufRead,BufNewFile /nginx/* set ft=nginx | |
au BufRead,BufNewFile nginx.conf set ft=nginx | |
" gin 用 tmpl | |
au BufNewFile,BufRead *.tmpl set ft=html | |
" markdown | |
set syntax=markdown | |
au BufRead,BufNewFile *.md set filetype=markdown | |
let g:indentLine_setConceal = 0 | |
let g:vim_jsx_pretty_highlight_close_tag = 1 | |
" html | |
let g:html_indent_inctags = "html,body,head,tbody" | |
let g:html_indent_script1 = "inc" | |
let g:html_indent_style1 = "inc" | |
" tsx | |
au BufNewFile,BufRead *.tsx set ft=typescript |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment