vim - Is it possible to use the dot command in visual block mode? -


i have text:

a     .55 b       .23 c    .12 d      .45 

and want align second column, have this:

a    .55 b    .23 c    .12 d    .45 

my first try put cursor in first line, @ column want align text , press dt., , later pressing j , . can repeat lines, since have lot of lines, want make visual block , repeat action lines, possible repeat command in visual block mode? if not, alternatives?

for things aligning want use specialized plugins, e.g. tabular or align.

if don't want use plugins, see 2 other possibilities:

1)

  • mark lines in visual line mode (v)
  • :normal 5ldt.

2)

  • mark lines in visual line mode (v)
  • :s/\w\zs\s\+\ze\./ /

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -