blob: d40b57a665ffde86a093240282dcf098a61f84d1 [file] [log] [blame]
Kay Sieversc97e8d12012-01-23 04:42:11 +01001" 'set exrc' in ~/.vimrc will read .vimrc from the current directory
Christian Hessef1d075f2015-11-23 19:31:00 +01002" Warning: Enabling exrc is dangerous! You can do nearly everything from a
3" vimrc configuration file, including write operations and shell execution.
4" You should consider setting 'set secure' as well, which is highly
5" recommended!
Lennart Poettering2eb169b2016-02-10 12:27:35 +01006
Zbigniew Jędrzejewski-Szmekc90ee832018-12-06 15:45:19 +01007" Note that we set a line width of 109 for .c and XML files, but for everything
Lennart Poettering2eb169b2016-02-10 12:27:35 +01008" else (such as journal catalog files, unit files, README files) we stick to a
9" more conservative 79 characters.
10
11" NOTE: If you update this file make sure to update .dir-locals.el and
12" .editorconfig, too.
13
Kay Sieversc97e8d12012-01-23 04:42:11 +010014set tabstop=8
15set shiftwidth=8
16set expandtab
Kay Sievers3396c372013-10-20 04:27:30 +020017set makeprg=GCC_COLORS=\ make
Lennart Poettering2eb169b2016-02-10 12:27:35 +010018set tw=79
Zbigniew Jędrzejewski-Szmekc90ee832018-12-06 15:45:19 +010019au BufRead,BufNewFile *.xml set tw=109 shiftwidth=2 smarttab
Zbigniew Jędrzejewski-Szmekcc5549c2019-04-04 14:10:42 +020020au FileType sh set tw=80 shiftwidth=4 smarttab
Zbigniew Jędrzejewski-Szmekc90ee832018-12-06 15:45:19 +010021au FileType c set tw=109