vim

For discussion on all things (neo)vim.
orestis 2021-02-11T05:47:29.070400Z

I’m going to server side rendering now 😅

orestis 2021-02-11T08:35:34.072200Z

A question for people who use a non-QWERTY layout (dvorak or even french or german AZERTY, QWERTZ layouts) with vim: Does vim use the positions on the keyboard for the various commands, e.g. to record a macro, do you press the left-most key on the top row (usually Q but sometimes A)?

grazfather 2021-02-13T16:12:05.095800Z

that’s like playing games on colemak 🙂 WASD is in the same orientation… just spread out.

dave 2021-02-14T13:17:31.098900Z

WASD is a nightmare in Dvorak! 😄 If I ever have to play a game that uses WASD as the arrow keys, I just switch to QWERTY.

dave 2021-02-14T13:18:22.099100Z

Funny to think that if Vim used something other than HJKL for movement, I probably would be less inclined to use Vim because HJKL just happens to work fine in Dvorak!

dave 2021-02-14T13:20:05.099400Z

Or maybe it would be an incentive for me to use HJKL less, since over-reliance on HJKL is an antipattern :thinking_face:

orestis 2021-02-11T08:35:53.072600Z

(I’m trying to figure out proper support for keyboard in my experimental UI and the documentation is hard to parse)

nbardiuk 2021-02-11T08:53:22.072700Z

I don't use alternative layout but remember watching this video https://www.youtube.com/watch?v=xlqDCY05Hpk TLDR vim uses letters not position of a key

orestis 2021-02-11T10:05:35.073100Z

Thanks!

dave 2021-02-11T11:00:19.073300Z

I use Dvorak. Vim does not use the positions of the keys, but rather the keys' "values" if you will. I still press Q to record a macro, HJKL to move around, etc. They are just in a different position in my keyboard layout than they are in a QWERTY layout.

grazfather 2021-02-11T16:16:10.073700Z

It uses the values, and that’s actually a big part of the reason I chose to use colemak instead of some of the others: hkjl are still on one hand, and qwazxcvb don’t move

Matsu 2021-02-11T16:29:04.078100Z

Anyone here using clojure-lsp with a completion engine? Currently trying to setup nvim lsp and clojure lsp and got some code completion but code any :require'd packages dont seem to be caught by the lsp

dharrigan 2021-02-11T16:36:29.078300Z

I use CoC

➕ 2
dave 2021-02-11T16:37:54.078700Z

CoC + clojure-lsp = awesome

orestis 2021-02-11T16:40:39.079500Z

How about the neovim 0.5 client? Or is that just the substrate that CoC uses?

dave 2021-02-11T16:46:26.079800Z

CoC does not rely on Neovim 0.5

dave 2021-02-11T16:46:50.080400Z

I'm curious to try the built-in Neovim LSP client at some point in the future, but I rely so heavily on CoC, I'm not optimistic that the Neovim one is usable for me yet.

dave 2021-02-11T16:47:04.080800Z

I imagine it'll take some time before adoption picks up and it becomes as usable as CoC is now.

grazfather 2021-02-11T18:36:13.081600Z

oh the topic of Coc, there are so many mappings you have to copy in. What do you find you guys tend to use? I mostly just like the auto complete with the arg list, and gd, basically nothing else

dave 2021-02-11T18:56:28.082200Z

I have a ton of custom CoC config: https://github.com/daveyarwood/dotfiles/blob/24387891fe1ae89713bac9f272207b06af571434/vim/custom/500-plugins-config.vim#L154-L305 Most of it I stole from @eraserhd’s config and I have no idea what it does 😄

dave 2021-02-11T18:56:48.082800Z

Or was it @snoe’s config? I forget. I just remember that it was either the author of parinfer-rust's or the author of clojure-lsp's :thinking_face:

dave 2021-02-11T18:57:05.083300Z

Probably the latter. Sorry for the ping, whichever one of you it wasn't 🙂

Matsu 2021-02-11T19:26:05.084200Z

I've actually been running nvim-lsp with the 0.5 version for quite some time

Matsu 2021-02-11T19:26:25.084800Z

Not as plug and play as coc and some breaking changes in updates but really enjoying the experience with js, ts and java

Matsu 2021-02-11T19:27:18.085200Z

I felt that coc really slowed down my editor at times, so I made the switch

2021-02-11T19:29:13.085600Z

in theory you could make a plugin that remapped normal mode based on keyboard layout

2021-02-11T19:30:31.085800Z

oh yeah people have definitely done this before https://vim.fandom.com/wiki/Using_Vim_with_the_Dvorak_keyboard_layout

2021-02-11T19:33:33.086100Z

I was just about to ask how did you learn how to configure CoC - it’s a massive beast with documentation I can’t parse.

dharrigan 2021-02-11T19:55:21.086400Z

I have several too

dharrigan 2021-02-11T19:56:26.086600Z

https://github.com/dharrigan/vimconfig

orestis 2021-02-11T19:58:59.086800Z

There’s some mention in the docs about this, that I can’t find any more — basically for layouts such as greek where insert mode works fine but normal mode is completely broken you can remap greek characters to latin so you can send commands in normal mode too.

orestis 2021-02-11T19:59:12.087Z

Ah right, langmap it is 😄

2021-02-11T20:00:29.088100Z

@dave So you use CoC and deoplete at the same time? I’m so confused. I thought they did the same thing, with CoC also providing LSP integration.

orestis 2021-02-11T20:01:02.088900Z

I need a name for my NeoVim GUI. It’s written entirely in CLJ/CLJS and it’s meant to be a hackable thing… at least for me 🙂 Any suggestions?

2021-02-12T09:16:42.092500Z

Vimacs

2021-02-12T13:57:42.092700Z

drafter as in the editor is a draft and can be improved.

orestis 2021-02-12T15:43:08.092900Z

Thought of a name! Thanks all, stay tuned for some announcement in a month or so 😛

🎉 1
orestis 2021-02-12T19:24:27.094600Z

In case you jumped on this I just pushed a few updates to the README and some REPL fix :)

2021-02-13T16:45:04.096Z

cool

2021-02-13T16:45:18.096200Z

small typo in the readme / intro: > And things will break, see the for what’s left to be done.

2021-02-13T16:45:46.096400Z

probably meant to be something like "see the faq for what's left to be done" or changelog, or whatever

2021-02-13T16:46:16.096600Z

oh, there's a TODO file :D

orestis 2021-02-13T20:51:26.098700Z

Aah thanks for flagging , I will try and push some changes and updates over the next few days. Got some better grasp of keyboard handling now, plus need to fix emoji rendering which crashes the server 💥

orestis 2021-02-14T19:02:38.099600Z

I haven’t used asciidoc before so it was a broken link. Anyway I’ve pushed a much improved keyboard support and fixed emojis. However it seems that NeoVim is barfing on composing emojis, that’s a shame.

orestis 2021-02-11T20:15:28.090200Z

I’m so happy right now, after a few false starts my DOM code is virtually lag-free. Same performance as typing into VimR or even (gasp) the terminal. Modern browsers can be quite fast 🙂

💯 1
walterl 2021-02-11T20:20:28.090300Z

Off the cuff: NeoWeb

grazfather 2021-02-11T20:27:46.090600Z

cool. Thank you. That’s pretty intense

grazfather 2021-02-11T20:31:00.090800Z

a lot of the same idea as me. That reminds me the problem I had with the CoC defaults: They map a lot after space, but space is my leader, so there are a lot of collisions. Now they are behind leader>c…

dave 2021-02-11T21:38:49.091400Z

No, I just use COC, no Deoplete. I haven't bothered to clean up my old Deoplete config :)

dave 2021-02-11T21:43:04.091600Z

My take on this is that I actually prefer going off of the values and not the position, because Vim's mappings are so mnemonic, e.g. I wouldn't want "delete around word" (daw) to be "eap"

dave 2021-02-11T21:43:51.091800Z

I don't mind HJKL not being right next to each other. My fingers have memorized where those keys are in Dvorak.

dave 2021-02-11T21:45:26.092Z

Conveniently, H is to the left of L, it just isn't immediately to the left of L. :)

dave 2021-02-11T21:46:23.092200Z

CleoVim (not a serious suggestion)