~ubuntu-branches/ubuntu/maverick/vim/maverick

« back to all changes in this revision

Viewing changes to runtime/menu.vim

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-05-04 11:13:42 UTC
  • mfrom: (1.1.8 upstream) (0.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090504111342-60miqybsixdpc345
Tags: 2:7.2.148-2ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/runtime/vimrc: "syntax on" is a sane default for non-tiny vim.
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Disable autoindent, line-wrapping, and backup files by default.
* Dropped changes, merged in Debian:
  - Add jaunty, karmic to the list of valid suites.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - Create a .pot file for translations.
* Drop gutsy from the list of valid distro series, it's been EOLed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
" You can also use this as a start for your own set of menus.
3
3
"
4
4
" Maintainer:   Bram Moolenaar <Bram@vim.org>
5
 
" Last Change:  2008 Jun 30
 
5
" Last Change:  2009 Feb 26
6
6
 
7
7
" Note that ":an" (short for ":anoremenu") is often used to make a menu work
8
8
" in all modes and avoid side effects from mappings defined by the user.
138
138
func! s:FnameEscape(fname)
139
139
  if exists('*fnameescape')
140
140
    return fnameescape(a:fname)
 
141
  endif
141
142
  return escape(a:fname, " \t\n*?[{`$\\%#'\"|!<")
142
143
endfunc
143
144
 
1016
1017
  tmenu ToolBar.Copy            Copy to clipboard
1017
1018
  tmenu ToolBar.Paste           Paste from Clipboard
1018
1019
  if !has("gui_athena")
1019
 
    tmenu ToolBar.Find          Find...
 
1020
    tmenu ToolBar.Replace       Find / Replace...
1020
1021
    tmenu ToolBar.FindNext      Find Next
1021
1022
    tmenu ToolBar.FindPrev      Find Previous
1022
 
    tmenu ToolBar.Replace               Find / Replace...
1023
1023
  endif
1024
1024
  tmenu ToolBar.LoadSesn        Choose a session to load
1025
1025
  tmenu ToolBar.SaveSesn        Save current session