PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

How to shift a block of code in Vim

Written by Erick Kiiya on Jul 10th, 2022 Views Report Post

How to shift a block of code in Vim.png

I've been trying to improve my vim skills and one thing that usually bothered me was how to shift a block of code one tab their to the right or left.

It's actually quit easy place your cursor on the line from which you cant to shift your code, the type >> to shift the code one tab to the right and << to shift the line one tab to the left.

I've setup my IDE to use relative line numbers so to shift a block of n lines of code I just type n >> for right and n<< for left.

Comments (0)

loading comments