This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cin nu ts=4 sw=4 sts=4 cul mouse=a | |
set smarttab | |
syn on | |
map <C-B> :call CR()<CR> | |
func! CR() | |
exec "w" | |
exec "! clear && g++ -std=c++11 % -o %< && ./%< " | |
endfunc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"cmd": ["g++", "${file}", "-std=c++11", "-o", "${file_path}/${file_base_name}"], | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"working_dir": "${file_path}", | |
"selector": "source.c, source.c++", | |
"variants": | |
[ | |
{ | |
"name": "Run", | |
"cmd":["gnome-terminal", "--", "bash", "-c", "g++ '${file}' -std=c++11 -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}' ;read -n1 -p '\npress any key to continue.'"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cmd": ["python3", "-i", "-u", "$file"], | |
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)", | |
"selector": "source.python", | |
"variants": | |
[ | |
{ | |
"name": "Run", | |
"cmd":["xfce4-terminal", "-x", "bash", "-c", "python3 -i -u '${file}';read -n1 -p '\npress any key to continue.'"] |