vim: clang_style add AlignTrailingComments

This commit is contained in:
Mathieu Maret 2017-10-20 10:23:26 +02:00
parent 74a4fb30e5
commit 6b1b098945

4
.vimrc
View File

@ -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>