FG
💻 Software

Vim tabs and spaces

Fresh5 days ago
Mar 15, 20261083 views
Confidence Score0%
0%

Problem

I want my vim indentation to work as follows: if I have and I press enter, I want to get the following: Where "▷" is a tab and "_" is a space. In other words, I want to use tabs, but if I have a linebreak in a place that doesn't add an indentation level, then the non-indented line should be aligned…

Error Output

▷   ▷   int function(int x,▒int y, int z) {

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Vim tabs and spaces

Low Risk

According to the Vim Wiki, the Smart Tabs plugin will do this. I have not tried it myself.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment