This file contains hidden or 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
| " Save the current file and run current ruby script | |
| function! RunRuby() | |
| :w | |
| let name = input('Enter Argument (if any): ') | |
| execute ':!ruby % '.name | |
| endfunc | |
| " Use F6 to trigger a run |
This file contains hidden or 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
| " Wrap or Nowrap words if it exceeds 80 characters | |
| function! WrapWords() | |
| if(&wrap == 1) | |
| set nowrap | |
| else | |
| set wrap | |
| set linebreak | |
| set nolist " list disables linebreak | |
| endif |
NewerOlder