add vim conf files
[arrow.git] / conf_slk120 / vim / _vim / plugin / utl_rc.vim
blob57b13caa2272980f95b25c2e868caceb1b284930
1 " id=utl_rc         SETUP OF UTL PLUGIN {
2 " $Revision: 1.1.1.1 $
3 let utl_rc_vim =    expand("<sfile>")       " Do not remove this line
5 " Hints                                                     id=hints
6
7 " - Choose a template variable and uncomment it or create a new one.
8 "   Then issue the command  :so %  to activate it. You can check whether
9 "   a variable is defined with the command  :echo g:utl_rc_<name>
11 " - You can change the variables in this file whenever you want, not just when
12 "   Utl.vim automatically presented you this file.
14 " - You might want to take any variables defined here into your vimrc file.
15 "   The vimrc is always loaded before any plugin files. That means you can
16 "   leave this file in whatever state it is (no need to comment settings or
17 "   so). This rc file is only relevant in case Utl.vim wants to access a
18 "   variable which is not yet defined.
22 " id=app_browser----SEE #r=hints AT TOP----------------------------------------
23 " Setup section `Browser Application' --- typically for executing http:// URLs
25 " Details :
27 " - %u will be replaced with the URL (normalized to an absolute URL plus
28 "   fragment)
30 " - Surrounding with "" or '' is a bit tricky because of interpretation of \
31 "   in string variables. So better start from one of the examples.
33 " - You can supply any valid ex command here.
34 "   For instance you could write a vim function that indirectly calls a browser
35 "   in case the call gets too complicated. Example:
36 "       let g:utl_rc_app_browser = "call MyBrowserLaucher('%u')"
37 "       fu! MyBrowserLaucher(url)
38 "           echo "MyBrowserLaucher a:url=" . a:url
39 "           exe "!firefox '" . a:url . "' &"
40 "       endfu
43 if has("win32")
45     "   Internet Explorer IE
46     "       Windows XP (German)
47     " let g:utl_rc_app_browser = 'silent !start C:\Programme\Internet Explorer\iexplore.exe %u' 
48     "       Windows XP
49     " let g:utl_rc_app_browser = 'silent !start C:\Program Files\Internet Explorer\iexplore.exe %u' 
50     "
51     "   Samples for other browsers are welcome!
53 elseif has("unix")
55     "   Konqueror
56     "let g:utl_rc_app_browser = "silent !konqueror '%u' &"
57     "
58     "   Netscape
59     "let g:utl_rc_app_browser = "!netscape -remote 'openURL( %u )'"
60     "
61     "   Lynx Browser.
62     let g:utl_rc_app_browser = "!crxvt-gb -e w3m '%u'"
63     "
64     "   Firefox.
65     "   Check if an instance is already running, and if yes use it, else start firefox.
66     "   See <URL:http://www.mozilla.org/unix/remote.html> for mozilla/firefox -remote control
67     "let g:utl_rc_app_browser = "silent !firefox -remote 'ping()' && firefox -remote 'openURL( %u )' || firefox '%u' &"
68     "   Samples for other browsers are welcome!
70 endif
74 " id=app_mailclient---------------------------------------------------------------------
75 " Setup section `Mail Client Application' --- typically for executing name@host.xy URLs
77 " Details :
78 " - %u will be replaced with the mailto URL
80 if has("win32")
82     " Outlook
83     "let g:utl_rc_app_mailer = 'silent !start C:\Programme\Microsoft Office\Office11\OUTLOOK.EXE /c ipm.note /m %u'
84     "let g:utl_rc_app_mailer = 'silent !start C:\Program Files\Microsoft Office\Office10\OUTLOOK.exe /c ipm.note /m %u' 
86 elseif has('unix')
88     "let g:utl_rc_app_mailer = "!xterm -e mutt '%u'" 
89     "let g:utl_rc_app_mailer = "silent !kmail '%u' &"
91 endif
94 " id=mediaTypeHandlers---------------------------------------------------------- 
95 " Setup of handlers for media types which you don't want to be displayed by Vim.
97 " Allowed conversion specifiers:
99 " %p - Replaced by full path to file or directory
101 " %P - Replaced by full path to file or directory, where the path components
102 "      are separated with backslashes (most Windows programs need this).
103 "      Note that full path might also contain a drive letter.
105 " Details :
106 " - The "" around the %P is needed to support file names containing blanks
107 " - Remove the :silent when you are testing with a new string to see what's
108 "   going on (see <URL:vimhelp::silent> for infos on the :silent command).
109 "   Perhaps you like :silent also for production (I don't).
110 " - NOTE: You can supply any command here, i.e. does not need to be a shell
111 "   command that calls an external program (some cmdline special treatment
112 "   though, see <URL:utl.vim#r=esccmd>)
113 " - You can introduce new media types to not handle a certain media type
114 "   by Vim (e.g. display it as text in Vim window). Just make sure that the
115 "   new media type is also supported here: <URL:utl.vim#r=thl_checkmtype>
116 " - Use the pseudo handler 'VIM' if you like the media type be displayed by
117 "   by Vim. This yields the same result as if the media type is not defined,
118 "   see last item.
119 " - I introduced the has(win32/unix) distinction to enable a plattform
120 "   independant utl_rc.vim file. You may delete these lines if / elseif /
121 "   endif - only the definition of the g:utl_mt_xxx variables is important.
123 if has("win32")
125     "let g:utl_mt_audio_mpeg      = -> media player
126     "let g:utl_mt_application_excel = ':silent !start C:\Program Files\Microsoft Office\Office10\EXCEL.EXE "%P"'
127     "let g:utl_mt_application_msword = ':silent !start C:\Program Files\Microsoft Office\Office10\WINWORD.EXE "%P"'
128     "let g:utl_mt_application_powerpoint = ':silent !start C:\Program Files\Microsoft Office\Office10\POWERPNT.EXE "%P"'
129     "let g:utl_mt_application_pdf         = ':silent !start C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe "%P"'
130     "let g:utl_mt_application_rtf         = ':silent !start C:\Program Files\Windows NT\Accessories\wordpad.exe "%P"'
131     "   g:utl_mt_text_html =      'VIM'
132     "let g:utl_mt_text_html = 'silent !start C:\Program Files\Internet Explorer\iexplore.exe %P' 
133     "let g:utl_mt_application_zip         = ':!start C:\winnt\explorer.exe "%P"'
134     "
135     "--- Quite some alternatives for displaying directories (id=mt_dir):
136     "let g:utl_mt_text_directory = 'VIM'   " Vim's file explorer (id=mt_dir_vim)
137     "let g:utl_mt_text_directory = ':!start C:\winnt\explorer.exe "%P"'  " Windows Explorer (id=mt_dir_win)
138     "let g:utl_mt_text_directory = ':!start cmd /K cd /D "%P"'  " Dos box
140 elseif has("unix")
142     " Linux/KDE
143     "let g:utl_mt_application_pdf =  ':silent !acroread %p &'
144     "
145     "   Seem to need indirect call via xterm, otherwise no way to
146     "   stop at every page
147     "let g:utl_mt_application_postscript = ':!xterm -e gs %p &'
148     "
149     "let g:utl_mt_audio_mpeg =      ':silent !xmms %p &'
150     "
151     "let g:utl_mt_application_msword = ... Open Office
152     "
153     "let g:utl_mt_text_directory = ':silent !konqueror %p &'
154     "let g:utl_mt_text_directory = 'VIM'
156     "let g:utl_mt_text_html = ':silent !konqueror %p &'
158     "let g:utl_mt_image_jpeg = ':!xnview %p &'
160 endif
162 " end of Utl setup }