"wow vim is so coooooool i love how comfy everything is!!!!!!"
week after:
Code:
>>> :q
File "<python-input-3>", line 1
:q
^
SyntaxError: invalid syntax
>>>
Ctrl+w has closed far too many browser tabs.
Any recommended keybinds, settings or plugins?
https://github.com/wsdjeg/vim-fetch can be useful at times, especially if you use it with tmux and fpp. It lets you open a file at a specific line using the same
file:line: format that is used in compiler errors, grep, etc. instead of having to translate to vim's
file +line (vim plugins still work with neovim, but you might have to install it differently?)
If you need/want a spellchecker,
:set spell will enable it and highlight words,
z= will offer suggestions for the word under the cursor. You can change the dictionaries used with
:set spelllang.
Something that probably isn't very useful on windows is the
:read! command, which will execute a shell command and insert the output into the buffer at the cursor, e.g.
:r! date will insert the current date and time,
:r! bc -q <<< "2^16 - 1" will insert 65535, etc.. Windows doesn't have the rich array of command line utilities that linux does, but it's a neat feature because you aren't limited to built-in commands or even plugins.