I'm editing my
~/.vimrc this weekend, and I've run into a use case that seems to beg that I strip off indentation in an if-block.
Broken use-case in my
~/.vimrc (with if-block indentation):
if has('python3') python3 << EOF # Insert python here # more python # and more python EOF endif
Working use-case in my
~/.vimrc (without if-block indentation):
if has('python3') python3 << EOF # Insert python here... # more python # and more python EOF endif
As far as I can tell, the "Working use-case" (without indentation) is fine and
vim seems to have no problems.
If I use the "Broken use-case" (with indentation in the vimscript
if block), vim throws an error that it can't find the terminating
EOF as well as the
[INFO] Editing '/home/mpenning/.vimrc'. Error detected while processing /home/mpenning/.vimrc: line 815: E990: Missing end marker 'EOF' File "<string>", line 4 EOF IndentationError: unexpected indent line 816: E171: Missing :endif
Is there any problem with stripping off indentation inside the
if-block for my "Working use-case"?