New answers tagged microsoft-windows
3
system() is the right function; it should work fine also inside ~/.vimrc, but is best avoided as each external command delays Vim's startup and makes the user wait.
Ideally, you'll be able to only invoke the external command once it's required for a user interaction (i.e. lazily) - and then cache the information in case it's needed again.
If you absolutely ...
2
Ok, my bad. Turns out the path should really be C:\Windows\Sysnative\wsl.exe, as mentioned in the linked question. I changed it to System32 because I couldn't find the Sysnative folder under C:\Windows.
Apparently the Sysnative folder is kind of a virtual folder which exists only from the perspective of 32-bit programs.
More info can be found here:
...
Top 50 recent answers are included
Related Tags
microsoft-windows × 183gvim × 62
vimrc × 23
neovim × 12
key-bindings × 10
external-command × 10
vimscript-python × 10
installing × 8
vimscript × 7
unicode × 7
terminal × 6
font × 6
syntax-highlighting × 5
command-line × 5
plugin-you-complete-me × 5
encoding × 5
colorscheme × 4
vim-windows × 4
filesystem × 4
os-clipboard × 4
shell × 4
cut-copy-paste × 3
cursor-movement × 3
plugin-system × 3
startup × 3