Update 2022-12-11 11:55 OpenBSD/amd64
This commit is contained in:
15
.vim/vimrc
15
.vim/vimrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user