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