SpaceVim NERDTree issue...

19 views
Skip to first unread message

Scott Vargovich

unread,
Apr 10, 2020, 3:50:06 PM4/10/20
to linuxus...@googlegroups.com
I've gotten pretty heavy into vim lately.  I found SpaceVim, which I truly love.  The latest SpaceVim config file was changed from ~/.vimrc to ~/.SpaceVim.d/init.toml .  Most of the SpaceVim plugins README.md files are based on the old ~/.vimrc .  In trying to set a keybinding for NerdTree, the doc says to put 'map <C-n> :NERDTreeToggle<CR>' into ~/.vimrc .  If I put it in the new config file it doesn't work.  Does anyone know where to set a keybinding with the newest version of SpaceVim?  I'm completely confused.

--
<><  Scott Vargovich  <><
------------------------------------------
OpenPGP Key ID: 29C36884
==========================
Ham Radio Call Sign: KE8CQC
==========================
GMRS Call Sign:  WQXJ287
------------------------------------------

Chris Miller

unread,
Apr 10, 2020, 11:04:08 PM4/10/20
to linuxus...@googlegroups.com
On Apr 10, 2020, at 12:49 PM, Scott Vargovich <bluesf...@gmail.com> wrote:

I've gotten pretty heavy into vim lately.  I found SpaceVim, which I truly love.  The latest SpaceVim config file was changed from ~/.vimrc to ~/.SpaceVim.d/init.toml .  Most of the SpaceVim plugins README.md files are based on the old ~/.vimrc .  In trying to set a keybinding for NerdTree, the doc says to put 'map <C-n> :NERDTreeToggle<CR>' into ~/.vimrc .  If I put it in the new config file it doesn't work.  Does anyone know where to set a keybinding with the newest version of SpaceVim?  I'm completely confused.

You can add arbitrary vimscript to spacevim, which calls these “layers.” You create your own layer, then enable it by adding it to the toml config file you noted before. See https://spacevim.org/documentation/#private-layers to create a new layer.

Scott Vargovich

unread,
Apr 12, 2020, 1:42:44 PM4/12/20
to linuxus...@googlegroups.com
Thanks Chris.  I'll have to give that a try.

--
--
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to linuxus...@googlegroups.com
To unsubscribe, send email to linuxusersgro...@googlegroups.com
For more options, visit our group at http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
---
You received this message because you are subscribed to the Google Groups "Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linuxusersgro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/linuxusersgroup/0AB9FDC3-D515-4B74-9A2A-0C5A8262DE12%40gmail.com.
Reply all
Reply to author
Forward
0 new messages