-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copied from Jakob. Thx!
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
" !! THIS FILE NEEDS TO BE IN THE "after" DIRECTORY BECAUSE IT IS OVERRIDDEN BY | ||
" !! SYSTEM DEFAULT FILES OTHERWISE | ||
|
||
" Disabling language based indentation rules | ||
" The ending space is neccessary | ||
setlocal indentexpr= | ||
|
||
" Disable cindent as it somehow disturbs the correct js indentation | ||
setlocal nocindent | ||
|
||
" Enable indentation copy and smart indentation after c-style blocks instead | ||
setlocal autoindent | ||
setlocal smartindent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
" !! THIS FILE NEEDS TO BE IN THE "after" DIRECTORY BECAUSE IT IS OVERRIDDEN BY | ||
" !! SYSTEM DEFAULT FILES OTHERWISE | ||
|
||
" Disabling language based indentation rules | ||
" The ending space is neccessary | ||
setlocal indentexpr= | ||
|
||
" Enable indentation copy and smart indentation after c-style blocks instead | ||
setlocal autoindent | ||
setlocal smartindent | ||
|
||
" Unfortunately the default indent file for PHP sets the formatoption ``w``, | ||
" which adds a trailing whitespace after every line during rewrap, to indicate | ||
" the continuation of a paragraph. Who the fuck came up with this idea?. We | ||
" need to disable it here, as no other place has the priority to disable it :( | ||
setlocal formatoptions-=w |