sponsor Vim development Vim logo Vim Book Ad

FlipLR : Flips left hand side and right hand side.

 script karma  Rating 7/4, Downloaded by 566    Comments, bugs, improvements  Vim wiki

created by
Shuhei Kubota
 
script type
utility
 
description
This script flips left hand side and right hand side.
'lhs {operator} rhs' => 'rhs {operator} lhs'

Usage:
  1. In visual mode, select left hand side, operator and right hand side.
  2. execute ':FlipLR operator'
  2'. execute ':FlipLR /operator/' to flip with regexp

  This mapping may help you.
      noremap \f :call g:FlipLR_startHighlightingPivot()<CR><ESC>:FlipLR <C-R>=g:FlipLR_detectPivot()<CR>

Screencast:
  http://bitbucket.org/shu/fliplr/downloads/fliplr.htm

Repository:
  http://bitbucket.org/shu/fliplr/
 
install details
Just source this file. (Put this file into the plugin directory.)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
fliplr.vim 1.3 2012-10-23 7.0 Shuhei Kubota improved pivot detection
use  noremap \f :call g:FlipLR_startHighlightingPivot()<CR><ESC>:FlipLR <C-R>=g:FlipLR_detectPivot()<CR>
fliplr.vim 1.1 2009-11-10 7.0 Shuhei Kubota added regexp support and auto detection
fliplr.vim 1.0 2009-11-07 7.0 Shuhei Kubota changed EOL characters (ff=dos -> ff=unix)
fliplr.vim 1.0 2009-11-06 7.2 Shuhei Kubota Initial upload
ip used for rating: 54.83.228.89

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo