Kay Sievers | c97e8d1 | 2012-01-23 04:42:11 +0100 | [diff] [blame] | 1 | " 'set exrc' in ~/.vimrc will read .vimrc from the current directory |
Christian Hesse | f1d075f | 2015-11-23 19:31:00 +0100 | [diff] [blame] | 2 | " 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 Poettering | 2eb169b | 2016-02-10 12:27:35 +0100 | [diff] [blame] | 6 | |
Zbigniew Jędrzejewski-Szmek | c90ee83 | 2018-12-06 15:45:19 +0100 | [diff] [blame] | 7 | " Note that we set a line width of 109 for .c and XML files, but for everything |
Lennart Poettering | 2eb169b | 2016-02-10 12:27:35 +0100 | [diff] [blame] | 8 | " 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 Sievers | c97e8d1 | 2012-01-23 04:42:11 +0100 | [diff] [blame] | 14 | set tabstop=8 |
| 15 | set shiftwidth=8 |
| 16 | set expandtab |
Kay Sievers | 3396c37 | 2013-10-20 04:27:30 +0200 | [diff] [blame] | 17 | set makeprg=GCC_COLORS=\ make |
Lennart Poettering | 2eb169b | 2016-02-10 12:27:35 +0100 | [diff] [blame] | 18 | set tw=79 |
Zbigniew Jędrzejewski-Szmek | c90ee83 | 2018-12-06 15:45:19 +0100 | [diff] [blame] | 19 | au BufRead,BufNewFile *.xml set tw=109 shiftwidth=2 smarttab |
Zbigniew Jędrzejewski-Szmek | cc5549c | 2019-04-04 14:10:42 +0200 | [diff] [blame] | 20 | au FileType sh set tw=80 shiftwidth=4 smarttab |
Zbigniew Jędrzejewski-Szmek | c90ee83 | 2018-12-06 15:45:19 +0100 | [diff] [blame] | 21 | au FileType c set tw=109 |