summaryrefslogtreecommitdiffhomepage
path: root/Ruby
diff options
context:
space:
mode:
author_Tradam <[email protected]>2021-09-18 01:56:20 -0400
committerGitHub <[email protected]>2021-09-18 01:56:20 -0400
commit6c8bdbe2c39f16ea0f00956637e66788206f6cda (patch)
tree376d39d44a9eb7db15a1e7fd612e08a032c851b0 /Ruby
parent17fbcf0df402e44799967e86de394f690a09dd6b (diff)
downloadVim-Configs-6c8bdbe2c39f16ea0f00956637e66788206f6cda.tar.gz
Vim-Configs-6c8bdbe2c39f16ea0f00956637e66788206f6cda.zip
Create .vimrc
Diffstat (limited to 'Ruby')
-rw-r--r--Ruby/.vimrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/Ruby/.vimrc b/Ruby/.vimrc
new file mode 100644
index 0000000..b3ab659
--- /dev/null
+++ b/Ruby/.vimrc
@@ -0,0 +1,8 @@
+" press F5 to execute the project code
+map <f5> :AsyncRun -cwd=<root> ruby run.rb<CR>
+
+" Identify .mab files as Ruby
+augroup syntax_mab_files
+ autocmd!
+ autocmd VimEnter,BufNewFile,BufRead *.mab set syntax=ruby
+augroup end