5 ms·
Can't think of a good reason to type out constants. Don't vim have decent autocomplete? (I mostly use it when ssh-ing into servers but figured people who code
by eitland 9y ago
Can't think of a good reason to type out constants.
Don't vim have decent autocomplete?
(I mostly use it when ssh-ing into servers but figured people who code in it must have set it up as an IDE?)
- u801e 9y ago> Don't vim have decent autocomplete? It does, but it requires that the word to be autocompleted is present in one of the other loaded buffers. If you're typing out a new variable name, it won't work.
- eitland 9y agoSo it doesn't take libraries into account?
- nicolashahn 9y agoQuestion for anyone who knows: is there a vim command or plugin to transform the word the cursor is under to upper/lowercase (or camelCase, kebab-case, snake_case, while we're at it)?
- u801e 9y agog~w will swith lowercase letters to uppercase ones and vice versa. gUw will change all letters in the word to uppercase. guw will change all uppercase letters in the word to lower case. See :help case for more details. There are probably plugins to change words to camelCase, snake_case, etc, but I'm not aware of any built-in command to do that (other than manually editing it).