summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'nvim')
-rw-r--r--nvim/.config/nvim/init.vim62
1 files changed, 19 insertions, 43 deletions
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim
index e4fbcc5..d071c83 100644
--- a/nvim/.config/nvim/init.vim
+++ b/nvim/.config/nvim/init.vim
@@ -1,4 +1,4 @@
1"vimplug 1" vimplug
2call plug#begin() 2call plug#begin()
3Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } 3Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
4Plug 'Shougo/deoplete-clangx' 4Plug 'Shougo/deoplete-clangx'
@@ -16,11 +16,11 @@ Plug 'plasticboy/vim-markdown'
16Plug 'vuciv/vim-bujo' 16Plug 'vuciv/vim-bujo'
17call plug#end() 17call plug#end()
18 18
19"sets 19" sets
20set guicursor= 20set guicursor=
21set number relativenumber 21set number relativenumber
22set mouse=a 22set mouse=a
23"set background=dark 23set background=dark
24syntax enable 24syntax enable
25set cursorline 25set cursorline
26set ignorecase 26set ignorecase
@@ -39,6 +39,12 @@ colorscheme bloodbath
39"hi Normal ctermbg=16 guibg=#000000 39"hi Normal ctermbg=16 guibg=#000000
40"hi LineNr ctermbg=16 guibg=#000000 40"hi LineNr ctermbg=16 guibg=#000000
41 41
42" vim-bujo
43nmap <C-N> <Plug>BujoAddnormal
44imap <C-N> <Plug>BujoAddinsert
45nmap <C-P> <Plug>BujoChecknormal
46imap <C-P> <Plug>BujoCheckinsert
47
42" deoplete 48" deoplete
43let g:deoplete#enable_at_startup = 1 49let g:deoplete#enable_at_startup = 1
44 50
@@ -50,72 +56,42 @@ let g:gitgutter_sign_removed = '-'
50let g:gitgutter_sign_removed_first_line = '^' 56let g:gitgutter_sign_removed_first_line = '^'
51let g:gitgutter_sign_modified_removed = '#' 57let g:gitgutter_sign_modified_removed = '#'
52 58
53" markdown preview
54let g:mkdp_auto_start = 0
55let g:mkdp_auto_close = 1
56let g:mkdp_refresh_slow = 0
57let g:mkdp_command_for_global = 0
58let g:mkdp_open_to_the_world = 0
59let g:mkdp_open_ip = ''
60let g:mkdp_browser = 'firefox'
61let g:mkdp_echo_preview_url = 0
62let g:mkdp_browserfunc = ''
63let g:mkdp_preview_options = {
64 \ 'mkit': {},
65 \ 'katex': {},
66 \ 'uml': {},
67 \ 'maid': {},
68 \ 'disable_sync_scroll': 0,
69 \ 'sync_scroll_type': 'middle',
70 \ 'hide_yaml_meta': 1,
71 \ 'sequence_diagrams': {}
72 \ }
73let g:mkdp_markdown_css = ''
74let g:mkdp_highlight_css = ''
75let g:mkdp_port = ''
76let g:mkdp_page_title = '「${name}」'
77
78" rainbow 59" rainbow
79let g:rainbow_active = 1 60let g:rainbow_active = 1
80 61
81" vim-markdown 62" vim-markdown
82let g:vim_markdown_no_default_key_mappings=1 63let g:vim_markdown_no_default_key_mappings=1
83let g:vim_markdown_toml_frontmatter=1 64let g:vim_markdown_toml_frontmatter=1
84let g:vim_markdown_yaml_fromtmatter=1 65let g:vim_markdown_yaml_frontmatter=1
85let g:vim_markdown_folding_disabled=1 66let g:vim_markdown_folding_disabled=1
86 67let g:vim_markdown_conceal=0
87
88" keysound
89let g:keysound_enable = 1
90let g:keysound_volume = 1000
91let g:keysound_py_version = 3
92let g:keysound_theme = 'default'
93 68
94" nerdtree 69" nerdtree
95let g:NERDTreeWinPos = "right" 70let g:NERDTreeWinPos = "right"
96map <C-n> :NERDTreeToggle<CR> 71map <C-i> :NERDTreeToggle<CR>
97nnoremap <c-p> :FZF<CR>
98autocmd StdinReadPre * let s:std_in=1 72autocmd StdinReadPre * let s:std_in=1
99autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif 73autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
100autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif 74autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
101 75
102"insert centered 76" insert centered
103autocmd InsertEnter * norm zz 77autocmd InsertEnter * norm zz
104 78
105"shortcut split navigation 79" shortcut split navigation
106map <C-h> <C-w>h 80map <C-h> <C-w>h
107map <C-j> <C-w>j 81map <C-j> <C-w>j
108map <C-k> <C-w>k 82map <C-k> <C-w>k
109map <C-l> <C-w>l 83map <C-l> <C-w>l
110 84
111"replace all using S 85" replace all using S
112nnoremap S :%s//gI<Left><Left><Left> 86nnoremap S :%s//gI<Left><Left><Left>
113 87
114"statusbar 88" italic comments
89hi Comment cterm=italic
90
91" statusbar
115scriptencoding utf-8 92scriptencoding utf-8
116 93
117" statusline 94" statusline
118
119let g:currentmode={ 95let g:currentmode={
120 \ 'n' : 'NORMAL ', 96 \ 'n' : 'NORMAL ',
121 \ 'no' : 'N·OPERATOR PENDING ', 97 \ 'no' : 'N·OPERATOR PENDING ',