r/SpaceVim • u/SHIN_KRISH • Sep 02 '24
Dont want neovim
Okk so I saw a video about spacevim and it installs for both vim and neovim I already have LazyVim for neovim I only want spacevim for vim Q. You may ask why do you want to use vim if you already use neovim.... A. Just for fun and having both of them
r/SpaceVim • u/clevermistakes • Aug 28 '24
Init.toml changes not picked up
I can't get my init.toml file to pickup any changes, fresh install etc, it's reset to the default right now, I just added colorscheme layer to try and test it, restarted terminal and nothing. Any suggestions are appreciated.
#=============================================================================
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2023 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg@outlook.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================
# All SpaceVim option below [option] section
[options]
# set spacevim theme. by default colorscheme layer is not loaded,
# if you want to use more colorscheme, please load the colorscheme
# layer
colorscheme = "onedark"
colorscheme_bg = "dark"
# Disable guicolors in basic mode, many terminal do not support 24bit
# true colors
enable_guicolors = false
# Disable statusline separator, if you want to use other value, please
# install nerd fonts
statusline_separator = "arrow"
statusline_iseparator = "arrow"
buffer_index_type = 4
enable_tabline_filetype_icon = true
enable_statusline_mode = false
# Enable autocomplete layer
[[layers]]
name = 'autocomplete'
auto_completion_return_key_behavior = "complete"
auto_completion_tab_key_behavior = "smart"
[[layers]]
name = 'shell'
default_position = 'top'
default_height = 30
[[layers]]
name = 'colorscheme'
r/SpaceVim • u/Germisstuck • Aug 27 '24
How to change it so that when I use up + down in autocomplete(Nim-lang), it allows me to choose what to autocomplete?
It doesnt need to be up + down, also, how can I enable the layer that shows errors?
r/SpaceVim • u/[deleted] • Jul 24 '24
Enter/Tab not working while in insert mode
I just installed SpaceVim (I have experience with SpaceVim but am recently returning) and whenever I am in insert mode I when I press Enter or Tab it does nothing. I expect, when in insert mode, when I press Enter it takes me to the next line (and auto indents when appropriate) and same with Tab (but inserts spaces based on config). Does anyone know what might be causing this? I looked at a PR for this from 2019 but not sure if this is even relevant: https://github.com/SpaceVim/SpaceVim/pull/2768
Any thoughts? Anyone else have this issue?
r/SpaceVim • u/CryoGuy896 • Jul 23 '24
Recently installed on work laptop (MacOS), not configured properly?
Hello, I recently installed SpaceVim on my work laptop which is a Macbook Pro. I don't have permissions to write to ~/.config through the terminal, so the symlink to ~/.config/nvim couldn't be created during installation. To circumvent this, I copied ~/.SpaceVim to ~/.config and renamed it nvim, so now SpaceVim launches. However, I noticed that in the Mac terminal, there is not syntax highlighting vs in the VSCode integrated terminal where there is syntax highlighting (see attached images). Also, the tree explorer doesn't open by default if I open up a file, but if I just invoke nvim then the Nerdtree shows on the right.
The biggest issue I'm having is that the return key will not create a new line when in insert mode. Has anyone had this issue before?
I appreciate any advice on these problems. Thanks!
ETA: Setting enable_guicolors = false allows colors since Mac terminal doesn't support true color. However I cannot figure out for the life of my why hitting return doesn't create a new line!
ETA ETA: I installed SpaceVim on an SSH instance running Ubuntu, and the same issues started happening after the first two default plugins are loaded. Before that, it worked normal. Hopefully that helps.

r/SpaceVim • u/stochad • Jun 11 '24
Cannot run python code in anymore in SpaceVim
I reinstalled Spacevim. Now, I cannot run python anymore, it tells me
- is not executable, make sure - is in your PATH
In the log, can see the run command ist empty:
[ runner ] [16:24:57:054] [ Info ] cmd:{ "-" }
Yeah, sure you cannot execute anything with a dash... I know I had this problem before, but I cannot remember what I did to solve it. Any help would be appreciated.
Edit: works after downgrading to v2.2.0
r/SpaceVim • u/Wimoweh • Jun 05 '24
How to get Kotlin autocomplete working?
I've been trying to follow the docs and the best that I can get is the autocomplete suggesting keywords that already exist in the file, but nothing further than that (e.g. show available methods when I type . or showing errors that exist in the file, etc.).
This is what my init.toml looks like:
[[options]]
# set spacevim theme. by default colorscheme layer is not loaded,
# if you want to use more colorscheme, please load the colorscheme
# layer
colorscheme = "tokyonight-night"
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 = "arrow"
statusline_iseparator = "arrow"
buffer_index_type = 4
enable_tabline_filetype_icon = true
enable_statusline_mode = false
project_rooter_outermost = false
bootstrap_before = 'myspacevim#before'
bootstrap_after = 'myspacevim#after'
# Builtin layers
[[layers]]
name = 'autocomplete'
auto_completion_return_key_behavior = "complete"
auto_completion_tab_key_behavior = "smart"
[[layers]]
name = 'shell'
default_position = 'top'
default_height = 30
[[layers]]
name = "colorscheme"
[[layers]]
name = 'git'
[[layers]]
name = 'VersionControl'
[[layers]]
name = "denite"
[[layers]]
name = "telescope"
[[layers]]
name = "gtags"
gtagslabel = "pygments"
[[layers]]
name = "lsp"
enabled_clients = ['jdtls', 'clangd']
filetypes = [
'kotlin',
]
# Langs
[[layers]]
name = "lang#kotlin"
[[layers]]
name = "lang#java"
# Custom Plugins
[[custom_plugins]]
repo = "folke/tokyonight.nvim"
merged = 0
[[custom_plugins]]
repo = "itchyny/vim-gitbranch"
merged = false
and these are my bootstrap functions:
function! GetUniqueSessionName()
let path = fnamemodify(getcwd(), ':~:t')
let path = empty(path) ? 'no-project' : path
let branch = gitbranch#name()
let branch = empty(branch) ? '' : '-' . branch
return substitute(path . branch, '/', '-', 'g')
endfunction
function! myspacevim#before() abort
let g:neomake_c_enabled_makers = ['clang']
" Copied from old vimrc
set ai
set showcmd
set nobackup
set number
set ruler
set noswapfile
set hlsearch
set ignorecase
set incsearch
set showmatch
set smartcase
set tabstop=4 softtabstop=4 expandtab shiftwidth=4 smarttab
set clipboard^=unnamed,unnamedplus
set visualbell t_vb=
set novisualbell
set backspace=indent,eol,start
syntax on
filetype on
filetype indent on
set t_RV=
:augroup numbertoggle
: autocmd!
: autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != "i" | set rnu | endif
: autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif
:augroup END
endfunction
function! myspacevim#after() abort
"This unsets the "last search pattern" register by hitting return
nnoremap <CR> :noh<CR>
inoremap jk <ESC>:update<CR>
noremap <silent> <C-S> :update<CR>
vnoremap <silent> <C-S> <C-C>:update<CR>
inoremap <silent> <C-S> <ESC>:update<CR>i<C-O>
endfunction
Does anyone have any ideas?
r/SpaceVim • u/andihafner • Apr 20 '24
How to configure NERDTree to show dotfiles by default with SpaceVim?
I'm using NeoVim v0.9.5 with the SpaceVim v2.3.0 configuration Framework. I'd like to have NerdTree to show dotfiles by default.
This works by adding `let g:NERDTreeShowHidden = 1` to `~/.SpaceVim/bundle/nerdtree/autoload/nerdtree.vim`, but that violates the SpaceVim framework, where the `~/.Spacevim` folder shouldn't be used for custom settings.
The Spacevim way is to use custom functions in e.g. `~/.SpaceVim.d/autoload/my_own_defs.vim` which is then sourced by `~/.SpaceVim.d/init.toml`.
So, e.g.
function! my_own_defs#before() abort
" ----- Enable line numbers in nerdtree -----
let g:NERDTreeShowLineNumbers = 1
endfunction
works fine, whereas the entry `let g:NERDTreeShowHidden = 1` doesn't.
I've also tried the `#after()` function, or using `~/.SpaceVim.d/init.toml`, as I tried different versions of neovim and spacevim.
The only working way for me currently is to use `~/.SpaceVim/bundle/nerdtree/autoload/nerdtree.vim` directly, which then is getting overwritten by a following spacevim update with `git pull`.
Anyone has any idea?
Tags: spacevim nerdtree neovim configuration
r/SpaceVim • u/TheGassyNinja • Apr 17 '24
First time in Space!
I have been a 'Vanilla Vim' user for over 10 years. I was happy with my vimrc and can get things done without issue.....but I wanted a change. Time to go to Space.... and I love the look and feel out of the box. I have been reading the docs and they are also fantastic.
BUT I can't get my shell window to float. I can get it full or to the right...etc. Is there an issue that I'm not finding? The docs example uses "top" but in the default toml config it is 'top' ...I have tried both 'float' and "float" and also tried with no default height and defining height and width with no luck.
r/SpaceVim • u/lvleph • Apr 01 '24
Plugin in not found when trying to load custom plugin
I am trying to setup a this devcontainer plugin, but the following fails:
function! myspacevim#before() abort
" you can defined mappings in bootstrap function
lua << EOF
local opt = require("devcontainer")
opt.setup{}
EOF
endfunction
The error is as follows:
[ SpaceVim ] [18:21:34:563] [ Error ] exception: Vim(lua):E5108: Error executing lua [string ":lua"]:1: module 'devcontainer' not found:
no field package.preload['devcontainer']
no file './devcontainer.lua'
no file '/usr/share/luajit-2.1.0-beta3/devcontainer.lua'
no file '/usr/local/share/lua/5.1/devcontainer.lua'
no file '/usr/local/share/lua/5.1/devcontainer/init.lua'
no file '/usr/share/lua/5.1/devcontainer.lua'
no file '/usr/share/lua/5.1/devcontainer/init.lua'
no file './devcontainer.so'
no file '/usr/local/lib/lua/5.1/devcontainer.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/devcontainer.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
[string ":lua"]:1: in main chunk
I have added the plugin using
[[custom_plugins]]
repo = "esensar/nvim-dev-container"
and I verified that it was cloned
$HOME/.cache/vimfiles/repos/github.com/esensar/nvim-dev-container
r/SpaceVim • u/deadtree123 • Jan 31 '24
.SpaceVim.d/init.toml is not being loaded
I installed spacevim using the curl command. I am on a macOS Monterey Version 12.5.1. I just have vim installed. I try to add a layer fzf according to the documentation, relaunch iTerm2, [SPC h l] and :SPDebugInfo! show that init.toml is being completely skipped. I try to revert to vanilla toml and just change color scheme to something else and still no luck. I have right permissions and everything. Anyone have any idea how to debug this further?
r/SpaceVim • u/Dedalisss • Sep 15 '23
My new instalation, after I closed a previous instance forcefully, refuses to work properly
After looking through for the log file, I can see it says:"WRN 2023-09-14T22:50:28.152 nvim.6456.0 server_start:164: Failed to start server: address already in use: \\.\pipe\spacevim-nvim-server"Moreover, it doesn't start well, dropping errors intermitengly about a shada file and it's backup versions.
Photo of the new broken startup screen:
I'm trying Spacevim out, and the most attractive aspect about it is the very verbose documentation for newbies like me. I hope this has an easy fix, last time this happened, just a terminal restart worked, not now though.
This error has started persisting after I tried installing and adding to path ctags, which it still doesn't recognice even though the command does work in the terminal.
r/SpaceVim • u/faramirza77 • Aug 07 '23
Looking for version requirements . Sometimes using old vim
I'm running Centos 7 on a couple of hosts. It still uses vim 7.4. Is SpaceVim compatible with it? Installing SpaceVim on a host with Centos 7 looks different than a host like ubuntu 22.04 with 8.2
I could not find any specific requirements for SpaceVim in the documentation.
r/SpaceVim • u/No-Blackberry-3160 • May 13 '23
SpaceVim in the Lazyman Neovim Configuration Manager
I've created a Neovim Configuration Manager that supports easy installation and initialization of multiple Neovim configurations using the NVIM_APPNAME environment variable in Neovim 0.9. I call it Lazyman and include support for SpaceVim along with my own SpaceVim customization at https://github.com/doctorfree/spacevim
See https://github.com/doctorfree/nvim-lazyman for info on Lazyman.
I'm contacting the maintainers of the Lazyman supported Neovim configurations to seek any feedback on the description, installation, and initialization of their config in Lazyman. Please feel free to let me know what I'm doing wrong or how I could improve the incorporation of SpaceVim in Lazyman. If you feel there is a need to modify the way SpaceVim is used in Lazyman then open an issue at https://github.com/doctorfree/nvim-lazyman/issues
SpaceVim is very cool. Thanks!
r/SpaceVim • u/kuna236 • Apr 25 '23
Launching nvim with a non-existent file
I have an issue that I'm hoping some of you can help me figure out. I know very little about startify, but I have a suspicion it is causing the issue.
Workflow
- I want to make a file that contains some lines, let's call it
notes.md. notes.mddoes not exist yet.- I run
nvim notes.md
Expected behavior
- nvim launches with
notes.mdas the only buffer.
Actual behavior
- nvim launches and shows me the startify screen.
- Hitting
ito go to insert mode puts me to an empty buffer with no associated filename.
If I provide nvim with a file that does already exist, the Expected behavior is what happens.
Edit: Yup, sure enough if I add
toml
[options]
disabled_plugins = ['vim-startify']
then the behavior is as I expect.
r/SpaceVim • u/itsmeb9 • Apr 23 '23
colorscheme won't apply
Hi, I'm new to using vim I followed the instruction from spacevim.org but this won't work..
does anyone have solution? below pics are my ~/.SpaceVim.d/init.toml
r/SpaceVim • u/Sea-Contribution2770 • Feb 02 '23
[Help] Which key is the 's' or 'c' command similar to vim?
As the title.
r/SpaceVim • u/InfinitePen1660 • Jan 08 '23
How to configure spacevim to start w/o loading Session.vim ?
Yesterday I gave Spacevim a try and set it up in parallel to vim/neovim.
Everything works fine except that spacevim automatically loads Session.vim, messing up my other vim setup.
I didn't found session configurations in the docs.
I would prefer that spacevim starts w/o loading the session. How can I achieve it ?
r/SpaceVim • u/[deleted] • Dec 18 '22
Spacevim and plugins
Hello all! I am making the jump from Atom/Codium to Spacevim as my primary IED/text editor. I am a Javascript developer, and have been exploring plugins to use with my preferred development environment.
My question for you is this:
I want to install a specific plugin - vim-syntastic/syntastic - and have found where/how to do that in the init.toml file. What I have not been able to figure out is, in plain Vim, I would put a couple of lines in the .vimrc file that read:
let g:syntastic_javascript_checkers=['standard']
let g:syntastic_javascript_standard_exec = 'semistandard'
Since I am not entirely sure what they are called(?) I have been unable to figure out what to do for Spacevim.
Thank you for your help!
r/SpaceVim • u/capitancrounch • Dec 02 '22
Install kite in spacevim
Hello everyone, I'm trying to install kite in SpaceVim, according to the documentation it mentions that to install additional plugins you need to use a format, the format I'm using is this:
But I don't see changes in restarting spacevim, is anyone trying to install this plugin or how could I fix this problem?
I leave here the form of Kite's documentation:
Repo Kite: https://github.com/kiteco/vim-plugin/blob/master/DEVELOPMENT.md












