[GoLUG] Using the tab key and options in vim editor!

Barry Fishman barry at ecubist.org
Mon Aug 21 18:02:06 EDT 2023


On 2023-08-21 20:56:16 GMT, David Billsbrough wrote:
> Has anyone ever figured out why so many "tab" options in the vim editor?  :-)
>
> I think I got the effect (alway make spaces) that I want with:
>
>   !  vim: nowrap: tabstop=3: softtabstop=3: expandtab: syntax=fortran:
> shiftwidth=3:

Their interplay is explained in the manual under:

https://vimhelp.org/options.txt.html#%27tabstop%27

I also setup in my ~/.vimrc something like:

highlight Tabs ctermfg=Yellow
match Tabs "\t"

So I can see any tabs that are in the file.

-- 
Barry Fishman



More information about the GoLUG mailing list