1
0
mirror of https://github.com/amix/vimrc synced 2025-07-04 15:04:59 +08:00

Added feature to execute code directly from vim

included support for: C, C++, Java, Python, Bash, Go and HTML
This commit is contained in:
PratyayPande
2020-07-31 17:00:07 +05:30
parent 92dab794c6
commit 66a6ff5c98
4 changed files with 38 additions and 2 deletions

View File

@ -343,6 +343,15 @@ Shortcuts using `<leader>` instead of special characters:
map <leader>sa zg
map <leader>s? z=
### Running Code
To run code directly from vim, press `F5`. The currently open code will execute without you having to type anything.
Can be used to execute code written in C, C++, Java, Python, Go, Octave, Bash scripts and HTML. To edit how you want your code to be executed, make changes in the file
```
~/vim_runtime/vimrcs/run_code.vim
```
### Cope
Query `:help cope` if you are unsure what cope is. It's super useful!