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 3265  Comments, bugs, improvements  Vim wiki

created by
Paul Contreras
 
script type
game
 
description
Why not try my customise Vim help page:
http://www.ezrider.co.uk/VimTagsHelp/

There are two versions of this script because MAC vs. Windows is slightly different the keyboard mappings.  On Windows, when you press Alt-z or Alt-i  the vim editor plays brain games with you about what's under the cursor.  On MAC it's Cmd-z or Cmd-i

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

just paste these lines into an .ahk script e.g "mybutton.ahk" and Right-click context menu in explorer --> Run Script when you've installed AutoHotKey. Get it from www.autohotkey.com.  AutoHotKey is a very easy to use macro style programming language.  It is superb at trapping keys, mice, and joysticks. And no I don't work for AutoHotKey
 
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 in Win 7 etc.. you need to be running in Administrator mode with regards to this _vimrc file.

  let buddyChallenge_yourname = "{yourname}" (but without {})

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 the script just delete it from the plugin dir.  It doesn't leave anything behind.  If you want to be really thorough you can delete the let above buddyChallenge_... line from your _vimrc but it's not gonna do any harm leaving it there because it's unlikely there's gonna be another thing in Vim that uses a variable like this.

Start being teased!  Just move your cursor over what you are not sure about and press Alt-z or Alt-i on Windows, Command-z or Command-i on the MAC

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 3.0 2014-10-25 7.0 Paul Contreras same as MAC but uses Alt-z and Alt-i to tease
buddyChalMAC.vim 3.0 2014-10-25 7.0 Paul Contreras added a few terms, tidied up hilighting
buddyChalWIN.vim 2.9 2014-10-16 7.0 Paul Contreras same as MAC but with Alt-i and Alt-z rather than Cmd key
buddyChalMAC.vim 2.9 2014-10-16 7.0 Paul Contreras added new case
buddyChalWIN.vim 2.8 2014-10-09 7.0 Paul Contreras same as Mac but using Cmd-z and Cmd-i
buddyChalMAC.vim 2.8 2014-10-09 7.0 Paul Contreras fix bug causing Undefined Variable
buddyChalWIN.vim 2.7 2014-10-09 7.0 Paul Contreras same as MAC but using Cmd-z and Cmd-i
buddyChalMAC.vim 2.7 2014-10-09 7.0 Paul Contreras corrected typo
buddyChalWIN.vim 2.6 2014-10-09 7.0 Paul Contreras Same as MAC but with Alt-z and Alt-i
buddyChalMAC.vim 2.6 2014-10-09 7.0 Paul Contreras added cases, improved highlight
buddyChalWIN.vim 2.5 2014-10-08 7.0 Paul Contreras Same as MAC but using Alt-z and Alt-i
buddyChalMAC.vim 2.5 2014-10-08 7.0 Paul Contreras added some cases, tidied grammar
buddyChalWIN.vim 2.4 2014-10-04 7.0 Paul Contreras same as MAC but using Alt-i and new Alt-z instead of MAC's Cmd-i and Cmd-z
buddyChalMAC.vim 2.4 2014-10-04 7.0 Paul Contreras small correction, new hotkey
buddyChalWIN.vim 2.3 2014-10-03 7.0 Paul Contreras Same as MAC but with Alt-i instead of Cmd-i
buddyChalMAC.vim 2.3 2014-10-03 7.0 Paul Contreras Some minor additions
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: 18.97.14.85

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.
   
Vim at Github