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

David Billsbrough kc4zvw at earthlink.net
Mon Aug 21 23:47:39 EDT 2023


Barry and all,

I might be use case number two ...  :-)

While in "syntax=fortran" I was already getting tabs showing as highlighted 'white' spaces.

In the past I would use 'set list/nolist' to show control code like Tab (^I) in the text.

Modern 'Fortran' is no longer column specific fields based off punch-cards or something.

   https://www.billsbrough.org/software/heapsort3.f95

regards,

David

-----Original Message-----
From: Barry Fishman <b... at e...g>
Sent: Aug 21, 2023 6:02 PM
To: David Billsbrough <kc4zvw at e....net>
Cc: GOLUG mail list <golug at golug.org>
Subject: Re: [GoLUG] Using the tab key and options in vim editor!


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