Re:Show HN: SpaceNeovim – Spacemacs for Neovim
by truncate on Sunday September 18, 2016 @04:29PM
(#12527078)
I always found myself convinced to use some plugin more often after watching some screencast or small gifs. If there are any already it would great if you could link them in project page.
Re:Show HN: SpaceNeovim – Spacemacs for Neovim
by shriek on Sunday September 18, 2016 @09:09PM
(#12528150)
How much of an investment is to learn vimscript? I want to write some plugins but I also don't really feel like learning it. Wish I could use different langs but from what I'm hearing I'd have to learn vimscript anyway.
Re:Show HN: SpaceNeovim – Spacemacs for Neovim
by flukus on Sunday September 18, 2016 @09:18PM
(#12528180)
If you're a programmer, not hard at all. The language is fairly simple and quite powerful these days. It has a few quirks, like variable scoping (global, local, buffer, window, tab), but these are great once you get used to them.
The hard part is learning the API, which takes a lot of googling. Start off writing some helper functions for your own use and turn them into plugins later.
Re:Show HN: SpaceNeovim – Spacemacs for Neovim
by Tehnix on Sunday September 18, 2016 @10:57PM
(#12528522)
Not that much to be honest, there are some quirks and such as variable scopings (g:, s:, l: a:) and other things, but other than that it's pretty familiar.
A few great resources I found after having googled a ton around was [0] and [1]. If you are very familiar with vim (I'm not really a power user tbh), then all the commands you use with : are supported in vim script. Meaning opening a split in your script is, well, just split.
[0] http://ricostacruz.com/cheatsheets/vimscript.html
[1] http://www.ibm.com/developerworks/library/l-vim-script-1/
Re:Show HN: SpaceNeovim – Spacemacs for Neovim
by shriek on Monday September 19, 2016 @12:23AM
(#12528891)
That cheatsheet is really well done. Thanks for that.
Re:Show HN: SpaceNeovim – Spacemacs for Neovim
by __s on Sunday September 18, 2016 @11:03PM
(#12528559)
I learnt it by writing a befunge interpreter: https://github.com/serprex/Befunge/blob/master/bef.vim
Switching back-and-forth a bit between Spacemacs and Neovim, I got inspired by spacevim[0] and thought to myself "Hey, that's a great idea!", and so I went into my first time actually toying with vim script (love-hate relationship atm).
The result of the last couple of days so far is the ground work for a Neovim specific port of Spacemacs, SpaceNeovim[1].
The major difference between this and the existing spacevim is that the layers are separated out from the core, and can be updated via an editor command (calling git pull). It makes it a lot nicer to add new layers later on (oh, and of course also the fact that I've dropped any though of vim support).
Contributions or feedback are more than welcome! :)
The easiest way, if you want, is probably to contribute a layer, or expand on an existing one at https://github.com/Tehnix/spaceneovim-layers. One of the goals is to match Spacemacs more-or-less, so switching isn't annoying (hence why buffer/filetype specific keybindings are behind a '+major-mode-cmd').
[0] https://github.com/ctjhoa/spacevim
[1] https://github.com/Tehnix/spaceneovim