SpaceVim/Neovim使用记录(2):Windows版配置

原文链接

配置优化

这里直接给出我的 SpaceVim 用户配置文件内容。

编辑 C:\Users\<Your Name>\.SpaceVim.d\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
55
56
57
58
59
60
61
62
" ================================== SapceVim 依赖配置 =========================================
" 指定python2和python3的路径
let g:python_host_skip_check=1
let g:python_host_prog = 'D:\Program Files\Python2.7\python.exe'
let g:python3_host_skip_check=1
let g:python3_host_prog = 'D:\Python3.6\python.exe'
" 类C代码增强高亮插件的的clang库路径
let g:chromatica#libclang_path='D:\Program Files\LLVM\bin'
" ================================== SapceVim 基本配置 =========================================
" 启用/禁用终端使用真色彩
let g:spacevim_enable_guicolors = 1
" 状态栏分割符的风格,取值:'arrow', 'curve', 'slant', 'nil', 'fire'
let g:spacevim_statusline_separator = 'slant'
let g:spacevim_statusline_inactive_separator = 'bar'
" buffer索引图标的风格,取值:0, 1, 2, 3, 4, 5
let g:spacevim_buffer_index_type = 4
let g:spacevim_enable_tabline_filetype_icon = 0
let g:spacevim_enable_os_fileformat_icon = 0
" 是否显示模式提示字符
let g:spacevim_enable_statusline_display_mode = 0
" 设置tab宽度
let g:spacevim_default_indent = 4
" 是否启用deoplete用于补全, Ctrl + p 显示补全结果
let g:deoplete#enable_at_startup = 1
" 设置字体和大小
let g:spacevim_guifont = 'DejaVu\ Sans\ Mono\ for\ Powerline:h11'
if executable('vimlint')
call add(g:neomake_vim_enabled_makers, 'vimlint')
endif
if executable('vint')
call add(g:neomake_vim_enabled_makers, 'vint')
endif
if has('python3')
let g:ctrlp_map = ''
nnoremap <silent> <C-p> :Denite file_rec<CR>
endif
let g:clang2_placeholder_next = ''
let g:clang2_placeholder_prev = ''
" ================================== SapceVim layer配置 =========================================
call SpaceVim#layers#load('shell',
\ {
\ 'default_shell' : 'VimShell',
\ }
\ )
call SpaceVim#layers#load('default')
" 代码语法检查需要安装相应的编译器,比如C/C++需要安装clang
" call SpaceVim#layers#load('checkers')
call SpaceVim#layers#disable('checkers')
call SpaceVim#layers#load('tags')
call SpaceVim#layers#load('lang#c')
call SpaceVim#layers#load('autocomplete')
" ================================== 其他配置 ===================================================
" 解决打开文件中文乱码的问题
set fencs=utf-8,gbk,big5
" Ctrl + K 插入模式下光标向上移动
imap <c-k> <Up>
" Ctrl + J 插入模式下光标向下移动
imap <c-j> <Down>
" Ctrl + H 插入模式下光标向左移动
imap <c-h> <Left>
" Ctrl + L 插入模式下光标向右移动
imap <c-l> <Right>

  • 本文作者:小飞机
  • 本文链接: posts/b610b47a/
  • 版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 CN 许可协议。转载请注明出处!
------本文结束感谢阅读------
坚持原创技术分享,您的支持将鼓励我继续创作!
显示 Gitment 评论
0%