Update 2022-12-11 11:55 OpenBSD/amd64

This commit is contained in:
c0dev0id
2022-12-11 11:55:10 +01:00
parent c88774570e
commit 0a3e45302e
5 changed files with 22 additions and 8 deletions

View File

@@ -58,12 +58,9 @@ let c_space_errors=1
let c_gnu=1
let c_comment_strings=1
let c_curly_error=1
set makeprg=make\ %:r
"set makeprg=cc\ -o\ %:r\ %
set autowrite
" Work scripts
nnoremap mm :w\|!make<CR>
" TEMPORARY FILES
set undofile
set undodir=~/.local/vim/undo//
@@ -192,6 +189,16 @@ let g:tagbar_ctags_bin = "ectags"
xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)
" Compile Stuff
nnoremap mm :call MyMake()<CR>
function MyMake()
if filereadable("Makefile")
:!make
else
:!cc -o %:p:r %:p && %:p:r
endif
endfunction
" CUSTOM: NO CLUTTER PASTE MODE
nnoremap <silent> <Tab> :call TogglePaste()<CR>
let g:paste=0