/
init.vim
54 lines (40 loc) · 1.32 KB
/
init.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
set encoding=utf-8
scriptencoding utf-8
" コメント方針 : 適当に書く.日本語で書く.
" ぶっちゃけ理解したものは消す
" :help を,見ろ
augroup init_vim | au! | augroup END
let g:from_pwsh = 0
let g:is_wsl = 0
silent! let g:from_pwsh = !has('nvim') && $RunFromPowershell ==# '1'
silent! let g:is_wsl = has('unix') && system('uname -a') =~? 'microsoft'
let g:mapping_descriptions = []
source ~/dotfiles/vim/option-basic.vim
source ~/dotfiles/vim/mapping.vim
source ~/dotfiles/vim/dein-setting.vim
source ~/dotfiles/vim/show-whitespace.vim
source ~/dotfiles/vim/openapps.vim
source ~/dotfiles/vim/colors.vim
source ~/dotfiles/vim/gvim.vim
source ~/dotfiles/vim/setup-powershell.vim
source ~/dotfiles/vim/cpp.vim
source ~/dotfiles/vim/competitive-programming.vim
source ~/dotfiles/vim/vimscript.vim
if !g:from_pwsh
colorscheme onedark
endif
function! CoqSwitchStyle() abort
if !exists('b:coquilleIDE') || b:coquilleIDE.dead()
return
endif
let b:coquilleIDE.my_style = !get(b:coquilleIDE, 'my_style', 0)
if b:coquilleIDE.my_style
let b:coquilleIDE.style_checked = 'last_line'
let b:coquilleIDE.style_queued = 'last_line'
else
let b:coquilleIDE.style_checked = 'all'
let b:coquilleIDE.style_queued = 'all'
endif
CoqRecolor
endfunction
command! CoqSwitchStyle call CoqSwitchStyle()