Why does vim not obey my expandtab in python files?

The problem is that your settings are being overridden by a filetype plugin that’s part of Vim. The issue is in ftplugin/python.vim: ” As suggested by PEP8. setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8 The python plugin attempts to setup your source code to be PEP8 compliant by default, so it’s adjusting the tabstop. You’ll want some … Read more

Indenting #defines

Pre-ANSI C preprocessor did not allow for space between the start of a line and the “#” character; the leading “#” had to always be placed in the first column. Pre-ANSI C compilers are non-existent these days. Use which ever style (space before “#” or space between “#” and the identifier) you prefer. http://www.delorie.com/gnu/docs/gcc/cpp_48.html

How to split strings over multiple lines in Bash?

This is what you may want $ echo “continuation”\ > “lines” continuation lines If this creates two arguments to echo and you only want one, then let’s look at string concatenation. In bash, placing two strings next to each other concatenate: $ echo “continuation””lines” continuationlines So a continuation line without an indent is one way … Read more