Link to home
Start Free TrialLog in
Avatar of naseeam
naseeamFlag for United States of America

asked on

Why >G keyboard sequence indents line Eight spaces when book show ident as Two spaces ?

My computer is running Windows 10 Pro 64-bit.  I connect to remote Linux Machine using telnet utility.   My shell is bash.

I invoked Vim version 8.0.

I'm following a example from book, Practical Vim Second Edition.

The book asks to press certain keyboard sequence to indent Two spaces but the line is indented Eight spaces.  Please see attached.

I don't have vimrc file.  Whether I run default vimrc or not, I get the same result.
Avatar of Andrew Leniart
Andrew Leniart
Flag of Australia image

Sample code/data

Please see attached.

Naseeam, there is no attachment?
Avatar of gelonida
we need to see the example.

It might be an issue with the settings of
tabstop
softabstop
ident
Avatar of naseeam

ASKER

Attached is the attachment.
indent_increase__book_example.PNG
my_result.PNG
ASKER CERTIFIED SOLUTION
Avatar of gelonida
gelonida
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of naseeam

ASKER

I set indentation to 2 in .vimrc file.  Then, result was as expected.

Expert found root cause of the problem.  

Thank you!