1
0
mirror of https://github.com/amix/vimrc synced 2025-07-10 03:25:00 +08:00

Run code directly from vim (#594)

This commit is contained in:
Pratyay Pande
2021-07-05 02:37:53 +05:30
committed by GitHub
parent e1f237cb6c
commit a8f0b6f678
3 changed files with 63 additions and 1 deletions

View File

@ -364,6 +364,13 @@ 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/extended.vim
```
### Cope
Query `:help cope` if you are unsure what cope is. It's super useful!