Last active
March 22, 2016 09:08
-
-
Save Shusei-E/578df70897f4534f73b5 to your computer and use it in GitHub Desktop.
Vim-Dein
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
# ~/.vim/rc/dein.toml の記述 | |
# 基本は github.com のレポジトリーを指定するだけ | |
[[plugins]] | |
repo = 'Shougo/dein.vim' | |
[[plugins]] | |
repo = 'Shougo/unite.vim' | |
##以下はLaTexの変換用 | |
[[plugins]] | |
repo = 'lervag/vimtex' | |
[[plugins]] | |
repo = 'thinca/vim-quickrun' | |
## Evervim用設定 | |
[[plugins]] | |
repo = 'kakkyz81/evervim' | |
## Geeknote | |
[[plugins]] | |
repo = 'neilagabriel/vim-geeknote' | |
# git clone 後、実行すべきコマンドがある場合はこんな感じ | |
[[plugins]] | |
repo = 'Shougo/vimproc.vim' | |
[plugins.build] | |
windows = 'tools\\update-dll-mingw' | |
cygwin = 'make -f make_cygwin.mak' | |
mac = 'make -f make_mac.mak' | |
linux = 'make' | |
unix = 'gmake' |
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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"Dein用 | |
if &compatible | |
set nocompatible " Be iMproved | |
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 | |
" Required: | |
call dein#begin(s:dein_dir) | |
" Let dein manage dein | |
" Required: | |
call dein#add('Shougo/dein.vim') | |
" Add or remove your plugins here: | |
let s:toml = '~/.vim/rc/dein.toml' | |
let s:lazy_toml = '~/.vim/rc/dein_lazy.toml' | |
" TOML を読み込み、キャッシュしておく | |
if dein#load_cache([expand('<sfile>'), s:toml, s:lazy_toml]) | |
call dein#load_toml(s:toml, {'lazy': 0}) | |
call dein#load_toml(s:lazy_toml, {'lazy': 1}) | |
call dein#save_cache() | |
endif | |
" Required: | |
call dein#end() | |
" Required: | |
filetype plugin indent on | |
" If you want to install not installed plugins on startup. | |
if dein#check_install() | |
call dein#install() | |
endif | |
" 各種設定 | |
"" Evervim | |
let g:evervim_devtoken= 'xxxxxxxxxxxxxxxxxx' | |
nnoremap <Leader>l :EvervimNotebookList<CR> | |
nnoremap <Leader>s :EvervimSearchByQuery<Space> | |
nnoremap <Leader>c :EvervimCreateNote<CR> | |
nnoremap <Leader>t :EvervimListTags<CR> | |
"" Geeknote | |
nnoremap <Leader>gl :Geeknote<cr> | |
nnoremap <Leader>gs :GeeknoteSearch<Space> | |
nnoremap <Leader>gc :GeeknoteCreateNote<Space> | |
let g:GeeknoteMaxExplorerWidth=60 | |
let g:GeeknoteFormat="markdown" | |
"" Latex | |
let g:vimtex_fold_envs = 0 | |
let g:quickrun_config = { | |
\ "_" : { | |
\ "runner" : "vimproc", | |
\ "runner/vimproc/updatetime" : 60 | |
\ }, | |
\} | |
let g:tex_conceal='' | |
""" QuickRunでコンパイル中、<C-c> で実行を強制終了させる | |
""" quickrun.vim が実行していない場合には <C-c> を呼び出す | |
nnoremap <expr><silent> <C-c> quickrun#is_running() ? quickrun#sweep_sessions() : "\<C-c>" | |
" 各種設定終わり | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Quickrunでエラーが発生 (texやcppのコンパイル時)していたが、こちらを参考にすべき?Quickrunの
とかを
~/.vimrc
に入れてしまうべきなのか?