autopreview : a light script to immediately preview definitions like source insight
| script karma
Downloaded by 1139
Comments, bugs, improvements
script versions (upload new version)
|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.
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 which is alreasy integrated into the latest version of Gvim.
If you add "let g:AutoPreview_enabled = 1" into your vimrc file, the autopreview window will be open when vim is started; otherwise add "let g:AutoPreview_enabled = 0" (which is default if you do not set this value) into your vimrc file, the autopreview window will be open only after you press your mapped hotkey.
Any time you press your mapped hotkey, you could enable or disable the autopreview window
|If you haven't installed taglist, please install it first: http://vim.sourceforge.net/scripts/script.php?script_id=273
#1 Download autopreview.vim into your favorite plugin directory or source the script from your .vimrc file (_vimrc for windows)
#2 Add the following context into your .vimrc file
" Automatically enable the preview function with vim starting
let g:AutoPreview_enabled =1
" 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
#3 Restart Vim.
(Press F5 to enable the plugin if you set "let g:AutoPreview_enabled =0")
Just Enjoy It!
Click on the package to download.
ip used for rating: 22.214.171.124
||a stable and total version
several changes list below:
add highlight effect with previewword
deal with folded codes
some changes with the use guide document
||Release 0.2: cleanup, optimize and enhance based on release v0.1
Thanks to Liu Yubao <email@example.com>