Large cleanup and switch to NVIM LSP
This commit is contained in:
parent
37fb739795
commit
2eed622601
14 changed files with 221 additions and 83 deletions
12
after/plugin/c.vim
Normal file
12
after/plugin/c.vim
Normal 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()
|
||||
|
||||
"}}}
|
Loading…
Add table
Add a link
Reference in a new issue