Large cleanup and switch to NVIM LSP

This commit is contained in:
Alexander Gehrke 2021-08-11 12:25:50 +02:00
parent 37fb739795
commit 2eed622601
14 changed files with 221 additions and 83 deletions

12
after/plugin/c.vim Normal file
View file

@ -0,0 +1,12 @@
"{{{ c header gates
function! s:insert_gates()
let gatename = substitute(toupper(expand("%:t")), "\\.", "_", "g")
execute "normal! i#ifndef " . gatename
execute "normal! o#define " . gatename
execute "normal! Go#endif /* " . gatename . " */"
normal! kk
endfunction
autocmd BufNewFile *.{h,hpp} call <SID>insert_gates()
"}}}