Hi guys, Can anybody know the usage of "set tabstop=2" and "set expandtab" in v . . .

Prasoon Mishra:
Hi guys,

Can anybody know the usage of “set tabstop=2” and “set expandtab” in vimrc file?

Rocky:
hi @Prasoon Mishra - these help you with removing hidden & troublesome characters copied from webpage or 2 space tab/4 space tab issues. You would need only these two most of the times:

  1. use :set list to see unwanted chars in the vim file.
  2. use :set et=2 | retab to remove it.
    Please refer https://vim.fandom.com/wiki/Super_retab for more info.

Prasoon Mishra:
@Rocky thanks