diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-31 17:49:30 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-31 17:49:30 +0200 |
commit | d881b516da0184052d2f9d33c3f72c5c014316bd (patch) | |
tree | faadc52b11a24da6c1ba2b147fd1f7a061198e88 /runtime/doc/indent.txt | |
parent | e023e88bed3f2e0a7ea4cf10cac2de80bc9c271c (diff) | |
download | vim-git-d881b516da0184052d2f9d33c3f72c5c014316bd.tar.gz |
patch 8.2.0864: pragmas are indented all the way to the leftv8.2.0864
Problem: Pragmas are indented all the way to the left.
Solution: Add an option to indent progmas like normal code. (Max Rumpf,
closes #5468)
Diffstat (limited to 'runtime/doc/indent.txt')
-rw-r--r-- | runtime/doc/indent.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/doc/indent.txt b/runtime/doc/indent.txt index 02702fa5b..c4785c4b2 100644 --- a/runtime/doc/indent.txt +++ b/runtime/doc/indent.txt @@ -570,9 +570,15 @@ The examples below assume a 'shiftwidth' of 4. with "#" does not work. + PN When N is non-zero recognize C pragmas, and indent them like any + other code; does not concern other preprocessor directives. + When N is zero (default): don't recognize C pragmas, treating + them like every other preprocessor directive. + + The defaults, spelled out in full, are: cinoptions=>s,e0,n0,f0,{0,}0,^0,L-1,:s,=s,l0,b0,gs,hs,N0,E0,ps,ts,is,+s, - c3,C0,/0,(2s,us,U0,w0,W0,k0,m0,j0,J0,)20,*70,#0 + c3,C0,/0,(2s,us,U0,w0,W0,k0,m0,j0,J0,)20,*70,#0,P0 Vim puts a line in column 1 if: - It starts with '#' (preprocessor directives), if 'cinkeys' contains '#0'. |