vim: clang_style add AlignTrailingComments
This commit is contained in:
parent
74a4fb30e5
commit
6b1b098945
4
.vimrc
4
.vimrc
@ -208,9 +208,9 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if &expandtab
|
if &expandtab
|
||||||
let g:clang_style="{BasedOnStyle: LLVM, AlignConsecutiveAssignments: true, UseTab: Never, BreakBeforeBraces: Linux, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, IndentWidth: " . &tabstop ."}"
|
let g:clang_style="{BasedOnStyle: LLVM, AlignConsecutiveAssignments: true, AlignTrailingComments: true, UseTab: Never, BreakBeforeBraces: Linux, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 95, IndentWidth: " . &tabstop ."}"
|
||||||
else
|
else
|
||||||
let g:clang_style="{BasedOnStyle: LLVM, AlignConsecutiveAssignments: true, UseTab: Always, BreakBeforeBraces: Linux, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, IndentWidth: " . &tabstop ."}"
|
let g:clang_style="{BasedOnStyle: LLVM, AlignConsecutiveAssignments: true, AlignTrailingComments: true, UseTab: Always, BreakBeforeBraces: Linux, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 95, IndentWidth: " . &tabstop ."}"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
map <C-K> :pyf ~/.vim/syntax/clang-format.py<CR>
|
map <C-K> :pyf ~/.vim/syntax/clang-format.py<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user