previewtag

previewtag is a Vim plugin that allows you to preview the definition and switch it to a new window.
Download

previewtag Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Danqi Wang
  • Publisher web site:
  • http://www.vim.org/scripts/script.php?script_id=2235

previewtag Tags


previewtag Description

previewtag is a Vim plugin that allows you to preview the definition and switch it to a new window. previewtag is a Vim plugin that allows you to preview the definition and switch it to a new window.The script opens the definition of functions and variables in preview window on demand and provides the operations to close the preview window, delete the buffer in preview window and switch the buffer in preview window in a new window. Quite simple, but useful.The script provides four commands:Pshow: open the definition of current word in preview windowPdelete: delete the buffer showing in preview windowPshowORdelete: if the cursor is in preview window, delete the current buffer (like Pdelete); Otherwise open the definition of current word in preview windowPswitch: if the preview window is open, close it and open the buffer in a new windowVim also provides a "pclose" command to close the preview window, without deleting the buffer.Developer commentsIf you want to open the tag preview immediately when you put cursor on a word, please uncomment the last line of the script. However, I found automatically preview is kind of boresome, so I do not provide a switch of auto-preview in the script.Requirements:· VimINSTALLATION:1. Put previewtag.vim in your vim plugin directory2. Key map is recommended, for example:map < F5 > :PshowORdelete < CR >map < S-F5 > :Pdelete< CR >map < C-F5 > :pclose < CR >map < F6 > :Pswitch < CR >


previewtag Related Software