Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7075615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:11:55+00:00 2026-05-28T06:11:55+00:00

While using Vim, in visual mode, selecting text and then calling a colon command

  • 0

While using Vim, in visual mode, selecting text and then calling a colon command shows : '<,'> instead of just : as it would show when I do other things (such as opening a file).

What does '<,'> mean?

Using linux (debian), gnome-terminal, vim7.2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:11:56+00:00Added an answer on May 28, 2026 at 6:11 am

    It means that the command that you type after :'<,'> will operate on the part of the file that you’ve selected.

    For example, :'<,'>d would delete the selected block, whereas :d deletes the line under the cursor.

    Similarly, :'<,'>w fragment.txt would write the selected block to the file called fragment.txt.

    The two comma-separated things ('< and '>) are marks that correspond to the start and the end of the selected area. From the help pages (:help '<):

                                                           *'<* *`<*
    '<  `<                  To the first line or character of the last selected
                            Visual area in the current buffer.  For block mode it
                            may also be the last character in the first line (to
                            be able to define the block).  {not in Vi}.
    
                                                            *'>* *`>*
    '>  `>                  To the last line or character of the last selected
                            Visual area in the current buffer.  For block mode it
                            may also be the first character of the last line (to
                            be able to define the block).  Note that 'selection'
                            applies, the position may be just after the Visual
                            area.  {not in Vi}.
    

    When used in this manner, the marks simply specify the range for the command that follows (see :help range). They can of course be mixed and matched with other line number specifiers. For example, the following command would delete all lines from the start of the selected area to the end of the file:

    :'<,$d

    The Vim Wiki has more information on Vim ranges.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I frequently make mode errors while using vim, i.e. I'll start typing text while
This popped-up while writing a script for vim. Using the well-documented ':normal' command: :normal
While in Insert Mode in Vim, is there any way to traverse the text
While using Vim (at home and at work), I often find myself doing similar
I've been using VIM for a few weeks now while messing with various web
While using Vim I'll sometimes want to look at a function definition or a
I have recently started using Vim as my text editor and am currently working
Hello I have a problem using latest vim with omnicompletion while editing a file
I come from an Eclipse/Vim background, and I've just started using Emacs for the
I've recently begun doing ASP.NET MVC work with others using Visual Studio. While MonoDevelop

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.