summaryrefslogtreecommitdiffstats
path: root/fun.vim
diff options
context:
space:
mode:
Diffstat (limited to 'fun.vim')
-rw-r--r--fun.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/fun.vim b/fun.vim
index 909c328..b184d4c 100644
--- a/fun.vim
+++ b/fun.vim
@@ -58,9 +58,10 @@ command Md2Html call Md2Html()
" Compiles and Runs a C++ project
+" TODO: how to add program's arguments or file redirectioning from command.
function! CompRunProj ( )
exe ":w"
- exe ":! g++ -o " . expand("%:r") . " *.cpp"
+ exe ":! g++ -o " . expand("%:r") . "-g *.cpp"
exe ":! ./" . expand("%:r")
endfunction