Created
June 6, 2018 22:58
-
-
Save 0x6d61/d682d04aafec001abc307b38fc832999 to your computer and use it in GitHub Desktop.
vimrc
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
set fenc=utf-8 | |
set nobackup | |
set noswapfile | |
set showcmd | |
set number | |
set title | |
set cursorcolumn | |
set smartindent | |
set belloff=all | |
set showmatch | |
set laststatus=2 | |
set list | |
"#ファイルの保存をしなくてもファイルを開ける | |
set hidden | |
"###スペースをtab### | |
set tabstop=4 | |
set expandtab | |
set shiftwidth=4 | |
set list listchars=tab:»-,eol:↲ | |
set history=50 | |
"dein Scripts----------------------------- | |
if &compatible | |
set nocompatible " Be iMproved | |
endif | |
let s:dein_path = expand('~/.vim/dein') | |
let s:dein_repo_path = s:dein_path . '/repos/github.com/Shougo/dein.vim' | |
" dein.vim がなければ github からclone | |
if &runtimepath !~# '/dein.vim' | |
if !isdirectory(s:dein_repo_path) | |
execute '!git clone https://github.com/Shougo/dein.vim' s:dein_repo_path | |
endif | |
execute 'set runtimepath^=' . fnamemodify(s:dein_repo_path, ':p') | |
endif | |
if dein#load_state(s:dein_path) | |
call dein#begin(s:dein_path) | |
let g:config_dir = expand('~/.vim/dein/userconfig') | |
let s:toml = g:config_dir . '/plugins.toml' | |
let s:lazy_toml = g:config_dir . '/plugins_lazy.toml' | |
" 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 | |
" 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 | |
"jedi-vim ポップアップ無効化 | |
autocmd FileType python setlocal completeopt-=preview | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment