Getting rid of smart tabs.

42 views
Skip to first unread message

John Culleton

unread,
Feb 16, 2015, 5:04:47 PM2/16/15
to vim...@googlegroups.com
COBOL is position sensitive. I just wasted some
time editing a program that compiled OK
yesterday.
Turns out that the PROCEDURE DIVISION header had
be moved to the right because of a
legitimate change that I had made to the line
above.

Can I get rid of smart tabs and how do I do it?

--
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
Updated PDF e-book: "Create Book Covers with
Scribus 1.4.5" coming soon at
http://www.booklocker.com/!

Erik Christiansen

unread,
Feb 17, 2015, 2:12:19 AM2/17/15
to vim...@googlegroups.com
On 16.02.15 16:02, John Culleton wrote:
> Can I get rid of smart tabs and how do I do it?

Do you have smarttab set to off? (nosmarttab, the default)

Erik

--
A computer is like an air conditioner, it works poorly when you open Windows.

John Culleton

unread,
Feb 21, 2015, 3:56:29 PM2/21/15
to vim...@googlegroups.com
On Tue, 17 Feb 2015 18:12:08 +1100
Erik Christiansen <dva...@internode.on.net> wrote:

> On 16.02.15 16:02, John Culleton wrote:
> > Can I get rid of smart tabs and how do I do
> > it?
>
> Do you have smarttab set to off? (nosmarttab,
> the default)
>
> Erik
>

Do I set that in .vimrc or possibly .gvimrc?

Erik Christiansen

unread,
Feb 22, 2015, 3:15:19 AM2/22/15
to vim...@googlegroups.com
On 21.02.15 14:54, John Culleton wrote:
> On Tue, 17 Feb 2015 18:12:08 +1100
> Erik Christiansen <dva...@internode.on.net> wrote:
> > On 16.02.15 16:02, John Culleton wrote:
> > > Can I get rid of smart tabs and how do I do
> > > it?
> >
> > Do you have smarttab set to off? (nosmarttab,
> > the default)
>
> Do I set that in .vimrc or possibly .gvimrc?

In .vimrc. Having never been tempted to try gvim, I had to do a
":h .gvimrc" to see what it is good for. If you do the same, you'll
be able to confirm the choice. This should do it:

set nosmarttab

BUT observe that nosmarttab is the default (as pointed out above), so
you either have a "set smarttab" in .vimrc or /etc/vim/vimrc* , or some
plugin setting it in a script. To debug, you might try in
vim:

:set verbose smarttab?

Here that simply says "nosmarttab", implying a default.
Compare this non-default:

:verbose set iskeyword?
iskeyword=@,48-57,_,192-255
Last set from ~/.vimrc

Erik

--
"Those who live by the GUI, die by the GUI"
- Duncan Roe, on luv-main ML.
Reply all
Reply to author
Forward
0 new messages