From 6b1b098945518bb88240d535748641d31b6255e5 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Fri, 20 Oct 2017 10:23:26 +0200 Subject: [PATCH] vim: clang_style add AlignTrailingComments --- .vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index f532f87..ed6da2d 100644 --- a/.vimrc +++ b/.vimrc @@ -208,9 +208,9 @@ else endif 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 - 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 map :pyf ~/.vim/syntax/clang-format.py