User Tools

Site Tools


vim:config:indentation:indentation_purely_with_hard_tabs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vim:config:indentation:indentation_purely_with_hard_tabs [2022/10/08 14:04] petervim:config:indentation:indentation_purely_with_hard_tabs [2022/10/08 14:07] (current) peter
Line 1: Line 1:
 ====== VIM - Config - Indentation - Indentation purely with hard tabs ====== ====== VIM - Config - Indentation - Indentation purely with hard tabs ======
 +
 +To indent only with hard tabs, and not with spaces.
  
 <code> <code>
Line 5: Line 7:
 set tabstop=2 set tabstop=2
 </code> </code>
- 
  
 <WRAP info> <WRAP info>
Line 12: Line 13:
   * The principle is to set **set tabstop** and **set shiftwidth** to the same value, and to leave **expandtab** at its default value (**noexpandtab**), and leave **softtabstop** unset.   * The principle is to set **set tabstop** and **set shiftwidth** to the same value, and to leave **expandtab** at its default value (**noexpandtab**), and leave **softtabstop** unset.
  
-</WRAP>+  * **shiftwidth** affects what happens when you press **>>**, **<<** or **==**. 
 +    * It also affects how automatic indentation works.
  
 +  * **tabstop** changes the width of the TAB character, plain and simple.
 +</WRAP>
  
  
vim/config/indentation/indentation_purely_with_hard_tabs.1665237867.txt.gz · Last modified: 2022/10/08 14:04 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki