vim

practicalli-johnny 2023-03-17T16:49:59.145549Z

Is there a special meaning to Neovim when trying to open files that start with a + sign? I try to open a +config.el file using nvim and it does not open. Instead there is a message saying E492 Not an editor command So it seems adding + to the start of a file name makes neovim thing its some kind of command? Any way to convince Neovim that its just a file to be opened without having to first rename the file 🙂

daniel.flexiana 2023-03-24T13:34:39.746159Z

Nice! Related: one can call nvim file.txt +42 to open the file at line 42 directly.

fuad 2023-03-17T16:54:35.651059Z

Arguments to vim/nvim beginning with a + are interpreted as ex commands to be exectued after starting. E.g.:

nvim +q
Will start nvim and quit immediately

practicalli-johnny 2023-03-17T17:01:56.044619Z

Thanks, that was the answer I was looking for r2d2

1