Say you have a file like this one, and the cursor is at line 5, and you have auto_indent
turned off.
function renamefile() {
local new="$(rename "$2")"
if [[ "$2" != "$new" ]]; then
mv "$1/$2" "$1/$new"
|
echo "$new"
fi
}
Is it possible to indent line 5 to its upper line? That is, like this:
function renamefile() {
local new="$(rename "$2")"
if [[ "$2" != "$new" ]]; then
mv "$1/$2" "$1/$new"
|
echo "$new"
fi
}
Maybe using a macro?