commit a0eaf17d647dbae40011171cf296c6b2f0740163
parent f181429ccddbac6998b255bddcd5b47c6082e758
Author: Wim Dupont <wim@wimdupont.com>
Date: Mon, 10 Jun 2024 07:31:37 +0200
added adoc mapping in vimrc
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/vimrc b/vimrc
@@ -74,6 +74,7 @@ cmap W w !sudo tee > /dev/null %
autocmd BufWritePost,FileWritePost config.def.h !sudo rm config.h && sudo make install
+autocmd FileType asciidoc map <F2> :w <CR> :!adoc %< <CR>
autocmd FileType c map <F2> :w <CR> :!gcc % -o %< && ./%< <CR>
autocmd FileType c map <F3> :w <CR> :!gcc % -g -o %< && gdb ./%< <CR>
autocmd FileType cpp map <F2> :w <CR> :!g++ % -o %< && ./%< <CR>