New answers tagged filetype-c++
0
votes
Accepted
How to properly indent inline c++ lambdas?
If you are using the default (:set cindent) for C++ the indentation logic is controled by the cinoptions.
You can get an indentation logic closer to what you want by setting cinoptions to (s:
:set ...
- 6,230
1
vote
How to fold away C++ system headers in quickfix window?
Combining both answers, I put the following into ~/after/ftplugin/qf.vim:
function! FoldError(lnum)
let l:line = getline(a:lnum)
if matchstr(l:line, '^/') != ''
return 1
endif
if matchstr(...
- 133
1
vote
Accepted
How to fold away C++ system headers in quickfix window?
For the first example if you define the following function (e.g. .vimrc)
function! FoldError(lnum)
let l:line = getline(a:lnum)
if matchstr(l:line, ' ^|| In file included') != ''
return '>1'...
- 6,230
2
votes
How to fold away C++ system headers in quickfix window?
cnext does not respect folds and you can't make it to.
The procedure of creating folds is rather a standard one:
Create ftplugin file for your filetype, i.e. ~/after/ftplugin/qf.vim
Set local ...
- 19.2k
Top 50 recent answers are included
Related Tags
filetype-c++ × 74vimrc × 14
filetype-c × 14
neovim × 9
syntax-highlighting × 8
indentation × 8
ctags × 6
autocompletion × 5
tags × 5
key-bindings × 4
autocmd × 3
folding × 3
plugin-you-complete-me × 3
comments × 3
plugin-ale × 3
ide × 3
plugin-syntastic × 3
plugin-clang-complete × 3
vimscript × 2
substitute × 2
colorscheme × 2
formatting × 2
quickfix × 2
plugin-coc × 2
lsp × 2