sponsor Vim development Vim logo Vim Book Ad

Buddy Challenge : Teases you on things you are unsure of

 script karma  Rating 0/0, Downloaded by 155    Comments, bugs, improvements  Vim wiki

created by
Paul Contreras
 
script type
game
 
description
There are two versions of this script because MAC vs. Windows is slightly different the keyboard mappings.  On Windows, when you press Alt-i the vim editor teases you about what's under the cursor.  Some clever combinations can occur

Demo :-

https://www.youtube.com/watch?v=v7F3c9Ez0xg&feature=youtu.be

Tip::
in Windows you can make AutoHotKey (*) press Alt-i for you when you press Middle Mouse:

  MButton::
  Click
  Sleep,200
  Send,!i
  return

* www.autohotkey.com.  AutoHotKey is very easy to use and excels at trapping keys, mouse clicks, even joysticks.  It's easy, once setup just paste these lines into an .ahk script e.g "mybutton.ahk" and Right-click context menu in explorer --> Run Script.
 
install details
Windows
  Win7 put buddyChalWIN.vim --> \Users\{username}\vimfiles\plugin  <-- n.b singular
  XP put             ^^                      --> \Program Files\Vim\vimfiles\plugin
MAC
  drop buddyChalMAC.vim into {home}/.vim/plugin

Make it more personal by adding the line below to your _vimrc.  In WINDOWS _vimrc is in \Program Files (86)\vim\_vimfiles,(*) on MAC it`s /Applications/MacVim.app/Contents/Resources/vim/gvimrc: * note to edit it in Win 7 etc.. you'll need to run your editor as Administrator

  let buddyChallenge_yourname = "{yourname}"

e.g: let buddyChallenge_yourname = "Paul" - n.b some teases will not fully work until you do this

If you don't like it just delete it.  If you want to be really thorough you can delete the above line from the _vimrc if it's there but it won't do any harm if you leave it there.

To start being teased just move your cursor over what you are not sure about and Command-i MAC, Windows Alt-i.

Enjoy!!  :D
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
buddyChalWIN.vim 2.2 2014-08-30 7.0 Paul Contreras same as Mac but using Alt-i instead of the MAC Cmd-i
buddyChalMAC.vim 2.2 2014-08-30 7.0 Paul Contreras general tidy up
buddyChalWIN.vim 2.1 2014-08-30 7.0 Paul Contreras same as Mac but using Alt-i instead of Mac's Cmd-i
buddyChalMAC.vim 2.1 2014-08-30 7.0 Paul Contreras General tidy up and tweak
buddyChalWIN.vim 2.0 2014-08-29 7.0 Paul Contreras same as MAC but for Windows using Alt-i instead of Mac's Cmd-i
buddyChalMAC.vim 2.0 2014-08-29 7.0 Paul Contreras added some credible sounding names
buddyChalWIN.vim 1.9 2014-07-23 7.0 Paul Contreras same as MAC but using Alt-i
buddyChalMAC.vim 1.9 2014-07-23 7.0 Paul Contreras Grammar corrections
buddyChalWIN.vim 1.8 2014-07-22 7.0 Paul Contreras Same as MAC except has Alt-i mapping instead
buddyChalMAC.vim 1.8 2014-07-22 7.0 Paul Contreras Added proper comment headers
buddyChalWIN.vim 1.7 2014-07-22 7.0 Paul Contreras Same as MAC but with Alt-i mapping and dos file format
buddyChalMAC.vim 1.0 2014-07-10 7.0 Paul Contreras MAC version
buddyChalWIN.vim 1.0 2014-07-09 7.0 Paul Contreras Initial upload
ip used for rating: 54.205.106.111

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo