autopreview iconautopreview 0.2

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 comments

I 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 List


INSTALLATION:

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=1000

3. 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

last updated on:
May 14th, 2008, 13:04 GMT
price:
FREE!
developed by:
Baohua Yang
license type:
GPL (GNU General Public License) 
category:
ROOT \ Text Editing&Processing \ Others

FREE!

In a hurry? Add it to your Download Basket!

user rating 15

UNRATED
3.2/5
 

0/5

Add your review!

SUBMIT