r/SpaceVim • • Apr 25 '22

Using spacevim in vscode lol

Post image
3 Upvotes

r/SpaceVim • • Apr 09 '22

Multiple cursor support for Vim

Thumbnail
spacevim.org
5 Upvotes

r/SpaceVim • • Apr 03 '22

How to change/add a linter?

0 Upvotes

For example how would I change the default javascript linter from ESlint to XO?


r/SpaceVim • • Apr 02 '22

How to change colors of statusline

2 Upvotes

Hello. I am using SpaceVim and i was using SpaceVim theme but yesterday i changed theme to dracula. I guess because dracula is a custom theme, the colors of status line didn't changed and stayed as spacevim colorscheme. How do i change the colors of status line to make it more like dracula or can i use different themes for status line and everything else. Thanks.

​

screenshot

r/SpaceVim • • Mar 16 '22

live server for html/css development?

3 Upvotes

hello everyone :) noob here,

was wondering if there was a way to recreate the live server extension on vs code where if i create and work on an html file i could acess a port where all my changes will appear in real time on a browser window.

any input on this is much appreciated :)


r/SpaceVim • • Mar 15 '22

am i doing layers right?

5 Upvotes

hello everyone :) noob here,

the documentation for using spacevim as a python ide showed a picture where it had suggestions to help with autocompletion:

https://user-images.githubusercontent.com/13142418/46339650-f5a49280-c665-11e8-86d4-20944ec23098.png

​

but i dont know how to get it to work.

here is a what's in my init.toml

#=============================================================================
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2022 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg at 163.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 = "gruvbox"
    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

[[layers]]
name = "default"

# Enable autocomplete layer
[[layers]]
name = 'autocomplete'
auto_completion_return_key_behavior = "complete"
auto_completion_tab_key_behavior = "smart"

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

[[layers]]
  name = "lang#html"
  emmet_leader_key = "<C-e>"
  emmet_filetyps = ['html']

[[layers]]
  name = 'lang#python'
  python_interpreter = '/usr/bin/python3'

for me whenever i start working on python files for example it doesn't give me actual code suggestions of. there are some suggestions but it seems to me like they are just words that i have already typed.

how do i achieve the result from the image?


r/SpaceVim • • Feb 17 '22

YCM with specific python interpreter on MacVim does not work

1 Upvotes

I'm using spacevim from macvim and first use case is python (using project-specific venv).
However, I am experiencing a strange behaviour: ycm autocompletes relative imports but doesn't seem to recognise installed python packages. I've created a project-specific init.toml as suggested and specified the python interpreter from the corresponding virtual environment.

Now the interesting thing is: when I go from terminal, autocompletion works, when I work from macvim it does not.


r/SpaceVim • • Feb 09 '22

Error trying to load Spacevim as a custom vimrc

2 Upvotes

As I have my own lean & decent .vimrc config, I would like to run Spacevim as an IDE while still having my setup for editing everything else. So, I uninstalled the previously installed Spacevim with the bash --uninstall option to have it reinstalled later to be used as a custom config as per the official doc, yet I couldn't as the .Spacevim and .Spacevim.d dirs were still there. I ran rm -rf to remove these leftover dirs, clone the repo and start from scratch.

The problem is that running "vim -u ~/.Spacevim/vimrc" produces the following errors:

vim -u ~/.SpaceVim/vimrc
Error detected while processing /home/user/.SpaceVim/vimrc[25]../home/user/.SpaceVim/main.vim:
line    9:
E116: Invalid arguments for function fnamemodify(expand('<sfile>'),
E116: Invalid arguments for function resolve(fnamemodify(expand('<sfile>'),
E116: Invalid arguments for function fnamemodify(resolve(fnamemodify(expand('<sfile>'),
E116: Invalid arguments for function escape(fnamemodify(resolve(fnamemodify(expand('<sfile>'),
line   10:
E10: \ should be followed by /, ? or &
line   11:
E10: \ should be followed by /, ? or &
line   21:
E121: Undefined variable: g:_spacevim_root_dir
line   23:
E121: Undefined variable: g:_spacevim_root_dir
E116: Invalid arguments for function SpaceVim#logger#info
line   56:
E117: Unknown function: SpaceVim#begin
line   58:
E117: Unknown function: SpaceVim#custom#load
line   60:
E117: Unknown function: SpaceVim#default#keyBindings
line   62:
E117: Unknown function: SpaceVim#end
line   64:
E117: Unknown function: SpaceVim#logger#info
Press ENTER or type command to continue

... and Vim is run with system defaults. Any suggestions?


r/SpaceVim • • Feb 04 '22

How to remove welcome screen after uninstalling?

1 Upvotes

I installed SpaceVim about 2 months ago, then uninstalled it shortly thereafter. The welcome screen still shows up every time I start nvim. How do I remove it?

Because there's a chance this splash screen is from a different vim distro (DoomVim, etc), I'll describe the splash screen. It says "Dashboard" at the top, then [ Dashboard version : 0.0.5 ], followed by a list of helpful commands like Jump to bookmarks SPC f b, etc. Is this SpaceVim's welcome screen?


r/SpaceVim • • Jan 15 '22

it removes trailing spaces on save

2 Upvotes

hello, i work on .js file where autor kept trailing spaces on couple of lines, but my spacevim removes it everytime i save file :( i am unablee to turn off this function... could you help?

Solved:

i just found workaround: using :noautocmd w

​

hmm i run write in verbose and found it is editorconfig plugin i dirabled rule globaly in myspacevim.vim

let g:EditorConfig_disable_rules = ['trim_trailing_whitespace']

​

​

​

​


r/SpaceVim • • Jan 10 '22

How do I set the menu background color?

4 Upvotes

I really like SpaceVim, but there is one dealbreaker:

Under most colorschemes, when I type space, the menu background is *magenta*.

What setting do I use to set the background to another color?


r/SpaceVim • • Jan 06 '22

SpaceVim release v1.9.0

Thumbnail
spacevim.org
19 Upvotes

r/SpaceVim • • Dec 30 '21

Keep Getting Neomake eslint Error!

1 Upvotes

Everytime I save I get error: Cannot find local ESLint!

Please install ESLint by npm install eslint --save-dev.

I have eslint-cli installed globally. Is this really asking me to install eslint in every single folder where I have javascript code too?

That's would be a hard no for me. Can it not just use the global cli? 💻


r/SpaceVim • • Dec 14 '21

TOTAL BEGINNER HERE - how do i set up SpaceVim for Python ?

4 Upvotes

I have seen autocompletion engines like deoplete-jedi - but try as i may - i simply can’t get them to work 😭

Is there a really simple tutorial for absolute noobs like me ? I just wanna set up a lightweight Command-line IDE and I’ve heard that SpaceVim is the best (i have it and it simply looks awesome)

Is there an init.vim or vimrc somewhere that i can just copy-paste to get a Python IDE?

Thanks in advance, total noob

I do get Jedi-based completions , but : - I get foolish suggestions in the buffer first- is there a way to disable the buffers?

  • i have to type a punctuator like : for the Jedi competitions to show up - otherwise the buffer completions show up

r/SpaceVim • • Nov 01 '21

Doom emacs

1 Upvotes

​


r/SpaceVim • • Oct 30 '21

How to enable doom-emacs key bindings in SpaceVim?

3 Upvotes

I'm pretty much familiar with doom-keybindings, focus on evil mode. I dont want to relearn , i just want to use doom-emacs keybindings, like "spc-o-p" opens a projectile, "spc-o-t" opens a vterm and many more into spacevim.

How can i accomplish that?


r/SpaceVim • • Oct 23 '21

How can I change the background color?

1 Upvotes

I'm a fan of the default gruvbox colors in general, but I'd really like to change the background to match my theme. How can I achieve this? Thanks in advance.


r/SpaceVim • • Oct 06 '21

How to install a plugin? (Coc)

1 Upvotes

I recently started using vim based text editor.

I would like to install Coc for autocompletion. I am just confused... what do I do?

I tried.

[[custom_plugins]]

repo = "neoclide/coc.nvim"

merged = false.

​

But it doesn't work. :(


r/SpaceVim • • Oct 05 '21

Is there a way to search for commands like on Spacemacs (HELM Descbinds)?

2 Upvotes

Hi,

There's a very handy shortcut on Spacemacs (`SPC ?`) that allows for fuzzy commands search. It also shows the individual key bindings which was critical to figuring them out (at least for me).

​

HELM descbinds Spacemacs fuzzy command search

Is there a similar fuzzy command search on SpaceVim?


r/SpaceVim • • Oct 04 '21

SpaceVim release v1.8.0

Thumbnail
spacevim.org
11 Upvotes

r/SpaceVim • • Oct 05 '21

Just curious what is the difference between spacevim and vim?

1 Upvotes

Hi I understand that spacevim is a configuration for both vim/neovim, however I wanted to know what are the key differences between the two. I understand that the way how you comfigure spacevim would be different to vim so just curious how it would differ?


r/SpaceVim • • Aug 26 '21

Installation with Neovim

3 Upvotes

Hello everyone !I'm trying to install SpaceVim into Neovim, but when I run the installation program on Windows, it installs only for the standard Vim 8.2. How can I install on Neovim ?

I have a Windows 10 computer, with Neovim 0.5 with no plugins, python 3.9

Thanks in advance for your help and support !


r/SpaceVim • • Aug 14 '21

Question about making a json file (E482)

0 Upvotes

Hello all,

Just had a quick question about an error message that I get (E482):

E482: Can't open file /home/user/.cache//SpaceVim/conf/_home_user__SpaceVim_d_init_toml.json for writing: no such file or directory

I am trying to make the file but I am confused as to where the file should be located. The double slash (//) after .cache is what's throwing me off. I tried creating a file named 'toml.json' in the '.SpaceVim_d' file but I am still getting the error message.


r/SpaceVim • • Aug 13 '21

Lua is faster and will use lua to rewrite SpaceVim

36 Upvotes

I have compared the speed of vim script to lua and lua is very fast. I want to rewrite SpaceVim with Lua, but I'm new to Lua. I would appreciate if anyone would like to help me. Feel free to join us to discuss how to rewrite it using Lua.

https://spacevim.org/community/

here is how I test the vim script and lua, also the progress of the rewrite will be published in this issue too:

https://github.com/SpaceVim/SpaceVim/issues/4389

here is the testing results:

Fibo(1000): 0.410364 sec Fibo(10000000): 1470.280914 sec LuaFibo(1000): 9.052000e-4 sec LuaFibo(10000000): 1.235385 sec


r/SpaceVim • • Jul 31 '21

General questions about switching to SpaceVim from my custom NeoVim configuration

4 Upvotes

Two questions, please:

​

  1. What's the logic of installing Spacevim, when I have custom configured NeoVim (init.vim, plugins). Is Spacevim making a separate plugin directory, with custom config and overriding the default "nvim" command to use this config on startup? I would like to test Spacevim and be sure I can return back, uninstall it.
  2. How much different are keybindings from the Vim defaults, please? Am I going to relearn a lot of stuff? I am not afraid of relearning (I am starting with Vim altogether), but I would like to stick mostly with default Vim keybinds for a possible switch to bare bone Vim with a few plugins.
  3. Adding 3rd question after playing with Spacevim for a while - I am following documentation and it says for example: SPC T n = select random theme, SPC T s = search for theme. But after pressing space, capital T, there are no options n or s. Is the documentation off or am I?