autopreview

autopreview is a light script to immediately preview definitions like source insight for Vim.
Download

autopreview Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Baohua Yang
  • Publisher web site:
  • http://www.vim.org/scripts/script.php?script_id=2228

autopreview Tags


autopreview Description

autopreview is a light script to immediately preview definitions like source insight for Vim. autopreview is a light script to immediately preview definitions like source insight for Vim.The "autopreview" plugin is a light script plugin for Vim that could automatically preview the definition of variables or functions in a preview window like source insight. Developer commentsI think this script should be helpful when you're insighting a lot of code files and wanna to see the definition of a new variable or function in the source codes immediately without having to input "ptag" each time. Taglist plugin is needed for this plugin.USAGE:if you add "let g:AutoPreview_enabled = 0" into your vimrc file, the autopreview window will be open when vim is started.if you add "let g:AutoPreview_enabled = 1" into your vimrc file, the autopreview window will be open after you press your mapped hotkey. Any time you press your mapped hotkey, you could enable or disable the autopreview window.Requirements:· Vim· Tag ListINSTALLATION:1. Download autopreview.vim into your favorite plugin directory or source the script from your .vimrc file.Add the following context into your .vimrc file: " Do not enable the preview function with vim starting let g:AutoPreview_enabled =0 " make you could press F5 key to enable or disable the preview window, you can also set to other favorite hotkey here nnoremap < F5 > :AutoPreviewToggle < CR > inoremap < F5 > < ESC >:AutoPreviewToggle< CR >i " set the time(ms) break to refresh the preview window, I recommend 500ms~1000ms with good experience set updatetime=10003. Restart Vim. (Press F5 to enable the plugin if you set "let g:AutoPreview_enabled =0"). Just Enjoy It!What's New in This Release:· cleanup, optimize and enhance based on release v0.1


autopreview Related Software