vim: increase max line size for indent
This commit is contained in:
parent
f481dc3ec6
commit
6e50cb3e60
5
.vimrc
5
.vimrc
@ -238,9 +238,9 @@ fu DetectIndent()
|
||||
|
||||
execute system ('python3 ~/.vim/indent_finder/indent_finder.py --vim-output --default space --default-size ' . &tabstop .' "' . expand('%') . '"' )
|
||||
if &expandtab
|
||||
let b:clang_style="{BasedOnStyle: LLVM, AlignConsecutiveAssignments: true, AllowShortFunctionsOnASingleLine: Empty, BreakBeforeBraces: Linux, BreakStringLiterals: false, ColumnLimit: 95, IndentCaseLabels: true, IndentWidth: " .&shiftwidth .", TabWidth: " .&tabstop .", UseTab: Never}"
|
||||
let b:clang_style="{BasedOnStyle: LLVM, AlignConsecutiveAssignments: true, AllowShortFunctionsOnASingleLine: Empty, BreakBeforeBraces: Linux, BreakStringLiterals: false, ColumnLimit: 120, IndentCaseLabels: true, IndentWidth: " .&shiftwidth .", TabWidth: " .&tabstop .", UseTab: Never}"
|
||||
else
|
||||
let b:clang_style="{BasedOnStyle: LLVM, AlignConsecutiveAssignments: true, AllowShortFunctionsOnASingleLine: Empty, BreakBeforeBraces: Linux, BreakStringLiterals: false, ColumnLimit: 95, IndentCaseLabels: true, IndentWidth: " .&shiftwidth .", TabWidth: " .&tabstop .", UseTab: ForContinuationAndIndentation}"
|
||||
let b:clang_style="{BasedOnStyle: LLVM, AlignConsecutiveAssignments: true, AllowShortFunctionsOnASingleLine: Empty, BreakBeforeBraces: Linux, BreakStringLiterals: false, ColumnLimit: 120, IndentCaseLabels: true, IndentWidth: " .&shiftwidth .", TabWidth: " .&tabstop .", UseTab: ForContinuationAndIndentation}"
|
||||
endif
|
||||
endfu
|
||||
|
||||
@ -699,6 +699,7 @@ if v:version >= 800
|
||||
nmap <buffer> <silent> gi <Plug>(lcn-implementation)
|
||||
nmap <buffer> <silent> gr <Plug>(lcn-references)
|
||||
nmap <buffer> <silent> cr <Plug>(lcn-rename)
|
||||
nmap <buffer> <silent> gq <Plug>(lcn-code-action)
|
||||
nmap <C-F1> <Plug>(lcn-menu)
|
||||
endif
|
||||
endfunction
|
||||
|
Loading…
Reference in New Issue
Block a user