start new:
tmux
start new with session name:
tmux new -s myname
function! FoldText() | |
" Description: Folding configuration | |
let nucolwidth = &fdc + &number*&numberwidth | |
let winwidth = winwidth(0) - nucolwidth - 3 | |
let foldlinecount = foldclosedend(v:foldstart) - foldclosed(v:foldstart) + 1 | |
let dashtext = strpart(string(v:folddashes),1,len(string(v:folddashes))-2) | |
let foldinfo = "+" . dashtext . " Fold: " . string(v:foldlevel) . ", " . string(foldlinecount) . " lines " | |
let firstline = strpart(getline(v:foldstart), 0 , winwidth - len(foldinfo)) | |
let fillcharcount = winwidth - len(firstline) - len(foldinfo) | |
return firstline . repeat(" ",fillcharcount) . foldinfo |
" only use linters that uses compile_commands.json | |
let g:ale_linters.cpp = ['clangcheck', 'clangtidy', 'cppcheck'] | |
" various options for clang_complete | |
set concealcursor=inv | |
let g:clang_snippets = 1 | |
set completeopt=menu,longest | |
let g:clang_complete_optional_args_in_snippets = 1 | |
let g:clang_trailing_placeholder = 1 |