]>
Commit | Line | Data |
---|---|---|
9012f399 | 1 | " Vim can use per directory configuration files like this. |
f1739d42 JG |
2 | " To enable that feature two lines are needed in your ~/.vimrc |
3 | " set exrc " enables per-directory .vimrc files | |
4 | " set secure " disable unsafe commands in local .vimrc files | |
5 | " Characters width is set to 109 for .c and XML but for everything else 79. | |
9012f399 | 6 | " If you update this file make sure to update .dir-locals.el & .editorconfig |
f1739d42 | 7 | |
9012f399 HH |
8 | set tabstop=4 |
9 | set shiftwidth=4 | |
f1739d42 JG |
10 | set expandtab |
11 | set makeprg=GCC_COLORS=\ make | |
12 | set tw=79 | |
13 | au BufRead,BufNewFile *.xml set tw=109 shiftwidth=2 smarttab | |
14 | au FileType sh set tw=80 shiftwidth=4 smarttab | |
9012f399 | 15 | au FileType c set tw=109 shiftwidth=8 tabstop=8 smarttab expandtab |