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

Re: tab order

Expand Messages
  • Shital
    Here is what i m using function! MoveCurrentTab(value) if a:value == 0 return endif let move = a:value - 1 let move_to = tabpagenr() + move if move_to
    Message 1 of 10 , Feb 27, 2013
      Here is what i'm using

      function! MoveCurrentTab(value)
      if a:value == 0
      return
      endif
      let move = a:value - 1
      let move_to = tabpagenr() + move
      if move_to < 0
      let move_to = 0
      endif
      exe 'tabmove '.move_to
      endfunction

      map <silent> <A-S-j> :call MoveCurrentTab(-1)<Esc>
      map <silent> <A-S-k> :call MoveCurrentTab(1)<Esc>

      --
      --
      You received this message from the "vim_use" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php

      ---
      You received this message because you are subscribed to the Google Groups "vim_use" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    Your message has been successfully submitted and would be delivered to recipients shortly.