commit 49db5d506dec9c61d170e8ed482a792f0a98eedd
parent 16a90ff4315e42836170acad88a6d02b3a7f4fc3
Author: Wim Dupont <wim@wimdupont.com>
Date: Sat, 22 Jun 2024 08:12:15 +0200
vim tab fixes
Diffstat:
M | vimrc | | | 15 | ++++++++------- |
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/vimrc b/vimrc
@@ -26,6 +26,7 @@ set ic
let t:is_transparent = 1
let t:is_book = 0
+let g:netrw_winsize=20
function! Toggle_transparent()
if t:is_transparent == 0
@@ -70,7 +71,7 @@ vnoremap <leader>y "+y
vnoremap <leader>p "+p
vnoremap <leader>P "_dP
-cmap W w !sudo tee > /dev/null %
+cmap suw w !sudo tee > /dev/null %
autocmd BufWritePost,FileWritePost config.def.h !sudo rm config.h && sudo make install
@@ -82,9 +83,9 @@ autocmd FileType cpp map <F3> :w <CR> :!g++ % -g -o %< && gdb ./%< <CR>
autocmd FileType c,cpp map <F4> :w <CR> :!make && ./%< <CR>
autocmd FileType c,cpp map <F5> :w <CR> :!make && gdb ./%< <CR>
-autocmd FileType c :command -bar -nargs=* Run :w | :!gcc % -o %< && ./%< <args>
-autocmd FileType c :command -bar -nargs=* Rund :w | :!gcc % -o %< && gdb --args ./%< <args>
-autocmd FileType cpp :command -bar -nargs=* Run :w | :!g++ % -o %< && ./%< <args>
-autocmd FileType cpp :command -bar -nargs=* Rund :w | :!g++ % -o %< && gdb --args ./%< <args>
-autocmd FileType c,cpp :command -bar -nargs=* Runm :w | :!make && ./%< <args>
-autocmd FileType c,cpp :command -bar -nargs=* Runmd :w | :!make && gdb --args ./%< <args>
+autocmd FileType c :command! -bar -nargs=* Run :w | :!gcc % -o %< && ./%< <args>
+autocmd FileType c :command! -bar -nargs=* Rund :w | :!gcc % -o %< && gdb --args ./%< <args>
+autocmd FileType cpp :command! -bar -nargs=* Run :w | :!g++ % -o %< && ./%< <args>
+autocmd FileType cpp :command! -bar -nargs=* Rund :w | :!g++ % -o %< && gdb --args ./%< <args>
+autocmd FileType c,cpp :command! -bar -nargs=* Runm :w | :!make && ./%< <args>
+autocmd FileType c,cpp :command! -bar -nargs=* Runmd :w | :!make && gdb --args ./%< <args>