Install SpaceVim link
Linux
curl -sLf https://spacevim.org/install.sh | bash
After installing this, check if there is a folder of ".SpaceVim.d".
If not, make it.
For my env, no dir named of ".SpaceVim.d".
mkdir .SpaceVim.d
and make file of "init.toml" for spacevim configuration.
touch init.toml
edit init.toml by using nano
nano init.toml
insert this cfg
# This is a basic configuration example for SpaceVim
# All SpaceVim options are below [options] snippet
[options]
# set spacevim theme. by default colorscheme layer is not loaded,
# if you want to use more colorscheme, please load the colorscheme
# layer, the value of this option is a string.
colorscheme = "gruvbox"
colorscheme_bg = "dark"
# Disable guicolors in basic mode, many terminal do not support 24bit
# true colors, the type of the value is boolean, true or false.
enable_guicolors = true
# Disable statusline separator, if you want to use other value, please
# install nerd fonts
statusline_separator = "nil"
statusline_iseparator = "bar"
buffer_index_type = 4
# Display file type icon on the tabline, If you do not have nerd fonts
# installed, please change the value to false
enable_tabline_filetype_icon = true
# Display current mode text on statusline, by default It is disabled,
# only color will be changed when switch modes.
enable_statusline_mode = false
# Enable autocomplete layer
[[layers]]
name = "autocomplete"
auto-completion-return-key-behavior = "complete"
auto-completion-tab-key-behavior = "cycle"
[[layers]]
name = "shell"
default_position = "top"
default_height = 30
# This is an example for adding custom plugins lilydjwg/colorizer
[[custom_plugins]]
repo = "lilydjwg/colorizer"
merged = false
[[layers]]
name = 'lang#python'
python_interpreter = '/home/yourname/anaconda3/envs/pytorch/bin/python'
To find python interpreter in anaconda, command: "which python" in conda env.
to edit python file.
vi test.py
VIM Editor Commands
Vim is an editor to create or edit a text file.
There are two modes in vim. One is the command mode and another is the insert mode.
In the command mode, user can move around the file, delete text, etc.
In the insert mode, user can insert text.
Changing mode from one to another
From command mode to insert mode type a/A/i/I/o/O ( see details below)
From insert mode to command mode type Esc (escape key)
www.radford.edu/~mhtay/CPSC120/VIM_Editor_Commands.htm
Vim Cheat Sheet
Tip Registers are being stored in ~/.viminfo, and will be loaded again on next restart of vim. Tip Special registers: 0 - last yank " - unnamed register, last delete or yank % - current file name # - alternate file name * - clipboard content
vim.rtorr.com
댓글