How do I "break" in an if/endif block in the vimrc file?
I have a vimrc file the top of which is this code block:
if &diff
colorscheme molokai
endif
" loads of other stuff
If I do vimdiff, I don't want any of the "loads of other stuff" to run so I want to put a break after the > colorscheme molokai < line. How do I do this? Thanks
Posted Aug 22, 2018, 5:24 PM UTC
05
Usually a "break" is used to exit a loop. It sounds more like you want an "else" clause. That should look like this:
damn i feel stupid
of course