It seems quite tedious for me to remember how various settings are assigned, and so I find myself looking at :h
or google or posting here to figure out how each setting is assigned (or just doing trial and error and using all possible combinations). For example, take the following two commands:
autocmd BufNewFile,BufRead *.txt set filetype=markdown
autocmd BufNewFile,BufRead *.txt colorscheme OceanicNext
Why is the first command using =
for assignment and the second one doesn't use anything (other than a space). At least to me (though admittedly I'm very new to vim), it seems there isn't much rhyme or reason as to the consistency of assignment (for example, why not just use set [var]=[value]
for everything?). Is there a way to help remember which is which, or it really just comes down to practice?