Created
November 6, 2016 12:53
-
-
Save mohemohe/df41ce218e5107d26f75695ae59dae76 to your computer and use it in GitHub Desktop.
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
| " .vimrcから移植 | |
| " 同時編集に優しい設定 | |
| set fenc=utf-8 | |
| set nobackup | |
| set noswapfile | |
| set autoread | |
| " 行番号表示 | |
| set number | |
| " カーソル行を強調 | |
| "set cursorline | |
| " いい感じにインデント | |
| set autoindent | |
| set smartindent | |
| " ビープ音の可視化 | |
| set visualbell | |
| " 対応するカッコの強調表示 | |
| set showmatch | |
| " タブを空白に変える | |
| set tabstop=4 | |
| set autoindent | |
| set expandtab | |
| set shiftwidth=4 | |
| " 検索 | |
| " 全部小文字なら大文字小文字の区別をしない | |
| set ignorecase | |
| " 大文字で始まるなら区別する | |
| set smartcase | |
| " 順次検索 | |
| set incsearch | |
| " ループ | |
| set wrapscan | |
| " ハイライト表示 | |
| set hlsearch | |
| " ハイライト解除 | |
| nmap <Esc><Esc> :nohlsearch<CR><Esc> | |
| " true color | |
| let $NVIM_TUI_ENABLE_TRUE_COLOR=1 | |
| " dein.vim導入記事から丸コピ | |
| " http://qiita.com/okamos/items/2259d5c770d51b88d75b | |
| " dein settings {{{ | |
| if &compatible | |
| set nocompatible | |
| endif | |
| " dein.vimのディレクトリ | |
| let s:dein_dir = expand('~/.cache/dein') | |
| let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim' | |
| " なければgit clone | |
| if !isdirectory(s:dein_repo_dir) | |
| execute '!git clone https://github.com/Shougo/dein.vim' s:dein_repo_dir | |
| endif | |
| execute 'set runtimepath^=' . s:dein_repo_dir | |
| call dein#begin(s:dein_dir) | |
| if dein#load_state(s:dein_dir) | |
| call dein#begin(s:dein_dir) | |
| " 管理するプラグインを記述したファイル | |
| let s:toml = '~/.config/dein.toml' | |
| let s:lazy_toml = '~/.config/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 | |
| " プラグインの追加・削除やtomlファイルの設定を変更した後は | |
| " 適宜 call dein#update や call dein#clear_state を呼んでください。 | |
| " そもそもキャッシュしなくて良いならload_state/save_stateを呼ばないようにしてください。 | |
| " 2016.04.16 追記 | |
| " load_cache -> load_state | |
| " save_cache -> save_state | |
| " となり書き方が少し変わりました。 | |
| " 追記終わり | |
| " vimprocだけは最初にインストールしてほしい | |
| if dein#check_install(['vimproc']) | |
| call dein#install(['vimproc']) | |
| endif | |
| " その他インストールしていないものはこちらに入れる | |
| if dein#check_install() | |
| call dein#install() | |
| endif | |
| " }}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
'termguicolors'should be used instead of$NVIM_TUI_ENABLE_TRUE_COLOR. See https://github.com/neovim/neovim/wiki/Following-HEAD#20160511autoindent, incsearch, nocompatible, etc. are the defaults in Nvim, so they don't need to be set. See
:help nvim-defaults.