白话解释spacevim作为IDE该怎么用

界面相关

  • 菜单 toggle: SPC f t
  • 关闭打开的某个buffer(文件): SPC b d
  • outline界面
    • SPC 2切到菜单
    • SPC w s 把菜单切成上下两部分
    • f2 切出outline界面,
    • SPC window需要 进入原始window,
    • SPC w M 选择要进行交换的目标window
  • diff两个文件, 假设有a,b两个文件,想要比较,如下操作
    • 先在菜单中选择a文件打开, 再在菜单选中b文件, 按 a 选 diff,或者 手动敲 diff 就可以了

文本操作

  • 复制行到系统剪切板
    ~yy SPC b Y~~ 先进入编辑模式,然后鼠标选择进行复制到系统剪切板
  • 多行复制: shift v 然后按方向键,选择多行文本直到结束的字符处,然后按y, 光标移动到要粘贴的地方按p, 可以跨文件粘贴,但必须在spacevim内部

调试

  • 一键运行脚本:
    • python !python %SPC L R
    • 其他:SPC LR

在工程中搜索文件

  • SPC p f 在当前工程中查找文件
  • SPC p / 在当前工程中搜索文本内容
  • SPC p k 关闭当前工程的所有缓冲区
  • SPC p t 自动查找工程根目录
  • SPC p p 显示所有工程

要装的插件:

其他:https://spacevim.org/cn/layers/

USE SpaceVim as IDE

-vim原生: https://spacevim.org/use-vim-as-ide/#files-and-windows
-spacevim: SPC L R


参考配置文件:

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
63
64
65
66
67
68
69
[options]
enable_neomake = false
enable_ale = true
enable_tabline_filetype_icon_the_fly = true
filetree_direction = "left"
# set spacevim theme. by default colorscheme layer is not loaded,
# if you want to js-beautify js-beautify use more colorscheme, please load the colorscheme
# layer
#colorscheme = "material"
#colorscheme_bg = "dark"
# Disable guicolors in basic mode, many terminal do not support 24bit
# true colors
#enable_guicolors = true
# Disable statusline separator, if you want to use other value, please
# install nerd fonts
#statusline_separator = "nil"
#statusline_inactive_separator = "bar"
#buffer_index_type = 4
#windows_index_type = 3
#enable_tabline_filetype_icon = false
#enable_statusline_mode = false
#statusline_unicode_symbols = false
# Enable vim compatible mode, avoid changing origin vim key bindings
vimcompatible = true
# Enable autocomplete layer
automatic_update = true

[[custom_plugins]]
name = 'SpaceVim/vim-markdown'
merged = false

[[layers]]
name = "colorscheme"

[[layers]]
name = 'autocomplete'
auto-completion-return-key-behavior = "complete"
auto-completion-tab-key-behavior = "cycle"

[[layers]]
name = 'shell'
default_position = 'bottom'
default_height = 30

[[layers]]
name = "format"

[[layers]]
name = "lang#typescript"

[[layers]]
name = "denite"

[[layers]]
name = "lang#javascript"
auto_fix = true
enable_flow_syntax = true

[[layers]]
name = "lang#python"

[[layers]]
name = "checkers"

[[layers]]
name = "lang#go"

[[layers]]
name = "lang#markdown"

推荐文章