Add sample compile_flags.txt generator

This commit is contained in:
Augusto Gunsch 2021-08-22 19:20:38 -03:00
parent d66dafdeeb
commit 40ae4c3b3f
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ hi Whitespace ctermfg=233
hi SignColumn ctermbg=233 hi SignColumn ctermbg=233
nnoremap <F5> :set list!<cr> nnoremap <F5> :set list!<cr>
nnoremap <F12> :!sample-compile-flags<cr>
noremap - ddp noremap - ddp
nnoremap _ ddkP nnoremap _ ddkP

3
local/bin/sample-compile-flags Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
[ -e compile_flags.txt ] || printf '%s\n%s\n' '-I' '.' > compile_flags.txt