I’m confused about these in VIM. Some things need set and others let.
And, how can I check for a certain option. I know it’s an option because I use set to change it.
For example, how do I check if current filetype option is java?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
:set is used for showing option values, setting option values explicitly and toggling them, while :let is used for setting option values as a result of some previous expression (when you define option value by a matter of a variable). Naturally, in vim scripting you’re gonna be using :let more.
For example:
you normally set filetype with
but you can also