# Indent several lines with VIM?

As an example, I'm editing and enhancing this code :

<html>
<body>
<script>
var a = 10;
a += 100;
</script>
</body>
</html>


currently I require to indent the manuscript line :

<html>
<body>
<script>
var a = 10;
a += 100;
</script>
</body>
</html>


How could I do this without relocating arrow to the begin of each line and also press Tab?

63
2019-12-06 14:37:53
Source Share

If it was me, I would certainly see that there are 4 lines to indent, placement onto the leading line and afterwards type >4>. If there were way too many lines to count, I would certainly place onto the leading line and also type mk to make a mark called k, after that placement onto the lower line (which could be numerous screenfuls away), and also type >'k

11
2022-06-03 20:21:24
Source

Here is a wonderful strategy, if you are attempting to indent over a multitude of lines :

:/<script>/,/<\/script>/ >>

4
2022-06-03 18:44:17
Source