Editing Tabular Data in Vim

Editing Tabular Data in Vim
  • 0.00 / 5 5
0 votes, 0.00 avg. rating (0% score)

Helpful settings for editing tabular data:

Noexpandtab disables expanding of inputted tabs to spaces. Adjust the number of spaces to your liking. Tabstop sets the visual appearance of tab stops (here 16 spaces).

Show tabs visually, disable cursor line:

Jump one column left or right Ctrl+H / Ctrl+L in both normal and visual modes to make navigation easier:

Jump 10 lines up or down with Ctrl+K / Ctrl+J:

Disable the behaviour of going to start of line after jumps to make it easier to work on columns:

Now you can G or gg and have your cursor in the same column where it was. Makes it easy to select, yank, delete and move columns. Just don’t add an empty line at the bottom of the file (you can use “set virtualedit=all” to work around that as well if you want).

Excellent blog post on the subject:


Leave a Reply