diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-06-24 22:14:38 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-06-24 22:14:38 +0000 |
commit | 864207de089119377a1e1e5d411307d8eb57399e (patch) | |
tree | d5bc119317f9c46d7136d1e12f06bac3b13d491b /runtime/ftplugin | |
parent | c1a11ed54c7974b74be38f2aef6a200d7cfc878e (diff) | |
download | vim-git-864207de089119377a1e1e5d411307d8eb57399e.tar.gz |
updated for version 7.2a
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/javascript.vim | 4 | ||||
-rw-r--r-- | runtime/ftplugin/man.vim | 19 |
2 files changed, 13 insertions, 10 deletions
diff --git a/runtime/ftplugin/javascript.vim b/runtime/ftplugin/javascript.vim index 1ba440041..af5e4a920 100644 --- a/runtime/ftplugin/javascript.vim +++ b/runtime/ftplugin/javascript.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: Javascript " Maintainer: Doug Kearns <dougkearns@gmail.com> -" Last Change: 2007 Feb 21 +" Last Change: 2008 Jun 15 " URL: http://gus.gscit.monash.edu.au/~djkea2/vim/ftplugin/javascript.vim if exists("b:did_ftplugin") @@ -28,7 +28,7 @@ setlocal commentstring=//%s " Change the :browse e filter to primarily show Java-related files. if has("gui_win32") - let b:browsefilter="Javascript Files (*.js)\t*.js\n" + let b:browsefilter="Javascript Files (*.js)\t*.js\n" . \ "All Files (*.*)\t*.*\n" endif diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim index 88d7bca25..a58d2977a 100644 --- a/runtime/ftplugin/man.vim +++ b/runtime/ftplugin/man.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: man " Maintainer: Nam SungHyun <namsh@kldp.org> -" Last Change: 2006 Dec 04 +" Last Change: 2007 Nov 30 " To make the ":Man" command available before editing a manual page, source " this script from your startup vimrc file. @@ -41,13 +41,16 @@ if !exists("s:man_tag_depth") let s:man_tag_depth = 0 -if !has("win32") && $OSTYPE !~ 'cygwin\|linux' && system('uname -s') =~ "SunOS" && system('uname -r') =~ "^5" - let s:man_sect_arg = "-s" - let s:man_find_arg = "-l" -else - let s:man_sect_arg = "" - let s:man_find_arg = "-w" -endif +let s:man_sect_arg = "" +let s:man_find_arg = "-w" +try + if !has("win32") && $OSTYPE !~ 'cygwin\|linux' && system('uname -s') =~ "SunOS" && system('uname -r') =~ "^5" + let s:man_sect_arg = "-s" + let s:man_find_arg = "-l" + endif +catch /E145:/ + " Ignore the error in restricted mode +endtry func <SID>PreGetPage(cnt) if a:cnt == 0 |