Quantcast
Channel: Vertically rotate visual block - Vi and Vim Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by Doorknob for Vertically rotate visual block

Here's a solution that works even if there are surrounding characters:kdjP`]lx`<PWhich can be mapped to a key like so:vnoremap <C-r> kdjP`]lx`<PExplanation (here, bolded letters symbolize...

View Article



Answer by Gonçalo Ribeiro for Vertically rotate visual block

You can do it like this:select the lines you want to rotate (with V or <C-v>)type :type <C-w> to get rid of the '<,'> that appeared after the :type '> move '<-1, or the short...

View Article

Vertically rotate visual block

How would one vertically rotate a visual block of text?For example given this:helloSelect those characters in visual block and rotate them once:ohellAs you see, every character is moved down one line,...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images