Timeline for synID() always returns 0 in Neovim but not in Vim
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 7 at 17:06 | history | edited | 9iovaferra | CC BY-SA 4.0 | Corrected code mistake |
| Nov 7 at 17:00 | comment | added | 9iovaferra | @MaximKim My bad, I misinterpreted your first comment, I've checked and realised has('nvim') is what I was looking for. Thanks for pointing it out! | |
| Nov 7 at 13:31 | comment | added | Maxim Kim | And your check is just always goes to else part, cause in both editors main if clause is always false. | |
| Nov 7 at 13:23 | comment | added | 9iovaferra | @MaximKim Hi, that's true but I forgot to mention that I'd like this configuration to work seamlessly both in Vim and Neovim, this is why I check what editor I'm using | |
| Nov 5 at 22:28 | comment | added | Maxim Kim | has('vim') in vim will never evaluate to true, so the if condition is pointless. | |
| S Nov 5 at 21:12 | review | First answers | |||
| Nov 6 at 5:11 | |||||
| S Nov 5 at 21:12 | history | answered | 9iovaferra | CC BY-SA 4.0 |