Loading ...
Sorry, an error occurred while loading the content.

Proposed addition to menu.vim

Expand Messages
  • Christian J. Robinson
    Addition of a couple of tab menu items under the Window menu. More could probably be added, such as move tab left/right, etc. ... *************** *** 780,795
    Message 1 of 3 , Apr 1, 2006
    • 0 Attachment
      Addition of a couple of tab menu items under the Window menu. More
      could probably be added, such as move tab left/right, etc.


      *** menu.vim-orig Sat Apr 1 10:31:00 2006
      --- menu.vim Sat Apr 1 10:51:04 2006
      ***************
      *** 780,795 ****
      an 70.320 &Window.Sp&lit\ To\ #<Tab>^W^^ <C-W><C-^>
      an 70.330 &Window.Split\ &Vertically<Tab>^Wv <C-W>v
      if has("vertsplit")
      ! an <silent> 70.332 &Window.Split\ File\ E&xplorer :call MenuExplOpen()<CR>
      ! if !exists("*MenuExplOpen")
      ! fun MenuExplOpen()
      ! if @% == ""
      ! 20vsp .
      ! else
      ! exe "20vsp " . expand("%:p:h")
      ! endif
      ! endfun
      ! endif
      endif
      an 70.335 &Window.-SEP1- <Nop>
      an 70.340 &Window.&Close<Tab>^Wc :confirm close<CR>
      --- 780,808 ----
      an 70.320 &Window.Sp&lit\ To\ #<Tab>^W^^ <C-W><C-^>
      an 70.330 &Window.Split\ &Vertically<Tab>^Wv <C-W>v
      if has("vertsplit")
      ! let s:doMenuExplOpen=1
      ! an <silent> 70.331 &Window.Split\ File\ E&xplorer :call MenuExplOpen(1)<CR>
      ! endif
      ! if exists('*tabpagenr')
      ! let s:doMenuExplOpen=1
      ! an 70.332 &Window.-SEP0- <Nop>
      ! an 70.333 &Window.New\ Tab :tabnew<CR>
      ! an 70.334 &Window.New\ Tab\ File\ Explorer :call MenuExplOpen(2)<CR>
      ! endif
      ! if !exists("*MenuExplOpen") && exists('s:doMenuExplOpen')
      ! fun MenuExplOpen(type)
      ! if @% == ""
      ! let where='.'
      ! else
      ! let where=expand("%:p:h")
      ! endif
      !
      ! if a:type == 2
      ! exe 'tabnew ' . where
      ! else
      ! exe '20vsp ' . where
      ! endif
      ! endfun
      endif
      an 70.335 &Window.-SEP1- <Nop>
      an 70.340 &Window.&Close<Tab>^Wc :confirm close<CR>

      --
      Alternate definitions, #13: Pokemon (n), A Jamaican proctologist.
      Christian J. Robinson <infynity@...> http://infynity.spodzone.com/
      PGP keys: 0x893B0EAF / 0xFB698360 http://infynity.spodzone.com/pgp
    • Christian J. Robinson
      Here s a version with more menu items: ... *************** *** 780,812 **** an 70.320 &Window.Sp&lit To # ^W^^ an 70.330 &Window.Split
      Message 2 of 3 , Apr 3, 2006
      • 0 Attachment
        Here's a version with more menu items:

        *** menu.vim-orig Sat Apr 1 10:31:00 2006
        --- menu.vim Mon Apr 3 11:21:01 2006
        ***************
        *** 780,812 ****
        an 70.320 &Window.Sp&lit\ To\ #<Tab>^W^^ <C-W><C-^>
        an 70.330 &Window.Split\ &Vertically<Tab>^Wv <C-W>v
        if has("vertsplit")
        ! an <silent> 70.332 &Window.Split\ File\ E&xplorer :call MenuExplOpen()<CR>
        ! if !exists("*MenuExplOpen")
        ! fun MenuExplOpen()
        ! if @% == ""
        ! 20vsp .
        ! else
        ! exe "20vsp " . expand("%:p:h")
        ! endif
        ! endfun
        ! endif
        endif
        an 70.335 &Window.-SEP1- <Nop>
        an 70.340 &Window.&Close<Tab>^Wc :confirm close<CR>
        ! an 70.345 &Window.Close\ &Other(s)<Tab>^Wo :confirm only<CR>
        ! an 70.350 &Window.-SEP2- <Nop>
        ! an 70.355 &Window.Move\ &To.&Top<Tab>^WK <C-W>K
        ! an 70.355 &Window.Move\ &To.&Bottom<Tab>^WJ <C-W>J
        ! an 70.355 &Window.Move\ &To.&Left\ side<Tab>^WH <C-W>H
        ! an 70.355 &Window.Move\ &To.&Right\ side<Tab>^WL <C-W>L
        ! an 70.360 &Window.Rotate\ &Up<Tab>^WR <C-W>R
        ! an 70.362 &Window.Rotate\ &Down<Tab>^Wr <C-W>r
        ! an 70.365 &Window.-SEP3- <Nop>
        ! an 70.370 &Window.&Equal\ Size<Tab>^W= <C-W>=
        ! an 70.380 &Window.&Max\ Height<Tab>^W_ <C-W>_
        ! an 70.390 &Window.M&in\ Height<Tab>^W1_ <C-W>1_
        ! an 70.400 &Window.Max\ &Width<Tab>^W\| <C-W>\|
        ! an 70.410 &Window.Min\ Widt&h<Tab>^W1\| <C-W>1\|

        " The popup menu
        an 1.10 PopUp.&Undo u
        --- 780,834 ----
        an 70.320 &Window.Sp&lit\ To\ #<Tab>^W^^ <C-W><C-^>
        an 70.330 &Window.Split\ &Vertically<Tab>^Wv <C-W>v
        if has("vertsplit")
        ! let s:doMenuExplOpen=1
        ! an <silent> 70.331 &Window.Split\ File\ E&xplorer :call MenuExplOpen(1)<CR>
        ! endif
        ! if exists('*tabpagenr')
        ! let s:doMenuExplOpen=1
        ! an 70.332 &Window.-SEP0- <Nop>
        ! an 70.332 &Window.New\ Tab :tabnew<CR>
        ! an 70.332 &Window.Split\ Tab :tab split<CR>
        ! an 70.332 &Window.New\ Tab\ File\ Explorer :call MenuExplOpen(2)<CR>
        ! endif
        ! if !exists("*MenuExplOpen") && exists('s:doMenuExplOpen')
        ! fun MenuExplOpen(type)
        ! if @% == ""
        ! let where='.'
        ! else
        ! let where=expand("%:p:h")
        ! endif
        !
        ! if a:type == 2
        ! exe 'tabnew ' . where
        ! else
        ! exe '20vsp ' . where
        ! endif
        ! endfun
        endif
        an 70.335 &Window.-SEP1- <Nop>
        an 70.340 &Window.&Close<Tab>^Wc :confirm close<CR>
        ! an 70.350 &Window.Close\ &Other(s)<Tab>^Wo :confirm only<CR>
        ! an 70.365 &Window.-SEP2- <Nop>
        ! an 70.370 &Window.Close\ Tab :confirm tabclose<CR>
        ! an 70.380 &Window.Close\ Other\ Tabs :confirm tabonly<CR>
        ! an 70.385 &Window.-SEP3- <Nop>
        ! an 70.390 &Window.Move\ &To.&Top<Tab>^WK <C-W>K
        ! an 70.390 &Window.Move\ &To.&Bottom<Tab>^WJ <C-W>J
        ! an 70.390 &Window.Move\ &To.&Left\ side<Tab>^WH <C-W>H
        ! an 70.390 &Window.Move\ &To.&Right\ side<Tab>^WL <C-W>L
        ! an 70.400 &Window.Rotate\ &Up<Tab>^WR <C-W>R
        ! an 70.400 &Window.Rotate\ &Down<Tab>^Wr <C-W>r
        ! an 70.405 &Window.-SEP4- <Nop>
        ! an <silent> 70.410.10 &Window.Move\ Tab.&Left :exe "silent! tabmove " . (tabpagenr() - 2)<CR>
        ! an <silent> 70.410.20 &Window.Move\ Tab.&Right :exe "silent! tabmove " . tabpagenr()<CR>
        ! an <silent> 70.410.30 &Window.Move\ Tab.&First :tabmove 0<CR>
        ! an <silent> 70.410.40 &Window.Move\ Tab.La&st :tabmove<CR>
        ! an 70.415 &Window.-SEP5- <Nop>
        ! an 70.420 &Window.&Equal\ Size<Tab>^W= <C-W>=
        ! an 70.430 &Window.&Max\ Height<Tab>^W_ <C-W>_
        ! an 70.440 &Window.M&in\ Height<Tab>^W1_ <C-W>1_
        ! an 70.450 &Window.Max\ &Width<Tab>^W\| <C-W>\|
        ! an 70.460 &Window.Min\ Widt&h<Tab>^W1\| <C-W>1\|

        " The popup menu
        an 1.10 PopUp.&Undo u

        --
        Oxymoron #35: Living dead
        Christian J. Robinson <infynity@...> http://infynity.spodzone.com/
        PGP keys: 0x893B0EAF / 0xFB698360 http://infynity.spodzone.com/pgp
      • Bram Moolenaar
        ... There are a few new items for tab pages right? It s a bit hard to see in this diff. Menus should be as short as possible to be useful. I think for the
        Message 3 of 3 , Apr 3, 2006
        • 0 Attachment
          Christian J. Robinson wrote:

          > Here's a version with more menu items:

          There are a few new items for tab pages right? It's a bit hard to see
          in this diff.

          Menus should be as short as possible to be useful. I think for the tab
          pages we only need a way to create one. Once two tab pages are there
          you can do the rest in the tab pages lines menu. Editing a file in the
          new tab page seems the most useful menu to me, thus I have added
          "File/Open Tab...".

          --
          DENNIS: You can't expect to wield supreme executive power just 'cause some
          watery tart threw a sword at you!
          "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

          /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
          /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
          \\\ download, build and distribute -- http://www.A-A-P.org ///
          \\\ help me help AIDS victims -- http://www.ICCF.nl ///
        Your message has been successfully submitted and would be delivered to recipients shortly.