sponsor Vim development Vim logo Vim Book Ad

PreviewDialog : Shows a GTK dialog with the color or image below the cursor

 script karma  Rating 7/4, Downloaded by 745  Comments, bugs, improvements  Vim wiki

created by
Taylon Silmer
 
script type
utility
 
description
PreviewDialog is written to show a GTK preview dialog with the color or image below the cursor.
It's very useful to edit css files, but can be used for anything.

Options:
   g:PreviewDialogKey:
     Change shotcurt (Default is 'F8')
    
   g:PreviewDialogEnable:
     Enable PreviewDialog (Default is '1')
    
   g:PreviewDialogAuto:
     Shows the dialog automatically when hold cursor over a word (Default is '1')

   g:PathPyFile:
     Set the path of .py file (Default is '~/.vim/')
    
   g:DialogPosition:
     Set default window position. Can you use 'center', 'right_top' or 'right_bottom' (Default is 'right_bottom')

Any suggestion, bug report or feature request are welcome.
 
install details
Requires Python and GTK.

Open preview_dialog.vba with vim/gvim and run:
:so %
 

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
preview_dialog.vba 0.1 2009-08-09 7.2 Taylon Silmer Initial upload
ip used for rating: 216.73.216.130

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github