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 184667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:19:57+00:00 2026-05-11T15:19:57+00:00

ReSharper has a nice feature called extend selection: by pressing CTRL+W (I think this

  • 0

ReSharper has a nice feature called ‘extend selection’: by pressing CTRL+W (I think this is the default) repeatedly, you select more and more from your current caret location. First it’s a word, then more and more words, a line, inner then outer block of lines (for example an if-block), then a function, etc…

Basically, by pressing the key combination repeatedly, you can end up selecting the entire file. I’m sure at least some of you will be familiar with it.

I have just started learning all the intricacies of vim and I don’t have enough experience to see how something like this could be implemented in Vim (although I assume it’s possible). So my question is meant for Vim gurus out there: can this be done and how?

Update: a bit of a background story. I’ve been talking to my ex-boss about all the benefits of Vim, and he thinks it’s all great. His only question/problem was: does it have ‘extend selection’? My question so far has been no. So, if someone knows the answer, I’ll finally win a discussion 😛 (and maybe create a new Vim convert:-))

  • 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. 2026-05-11T15:19:58+00:00Added an answer on May 11, 2026 at 3:19 pm

    I had a quick go at this problem. It doesn’t work as is. Feel Free to make edits and post on the vim wiki or as a plugin if you get it refined.

    chances are you’d want to make a g:resharp_list for each language (eg. one for paranthesised languages, etc.)

    All that is needed is a marker for the original cursor position :he markers and a timeout autocommand that resets the index.

    'resharp emulator 'TODO this needs a marker 'also c-w is bad mapping as it has a lag with all the other- 'window mappings ' let g:resharp_index = 0  let g:resharp_select =  ['iw', 'is', 'ip', 'ggVG']  func! ResharpSelect()     if g:resharp_index >= len (g:resharp_select)         let g:resharp_index = 0     endif      exe 'norm \<esc>v' . g:resharp_select[g:resharp_index]     let g:resharp_index = g:resharp_index + 1 endfun  nnoremap <c-w>  :call ResharpSelect()<cr> vnoremap <c-w>  :call ResharpSelect()<cr>  'Something to reset on timeout. TODO this doesn't work au CursorHold :let g:resharp_index = 0<cr> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 119k
  • Answers 119k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Never use these styles for a drop down list. It… May 11, 2026 at 11:51 pm
  • Editorial Team
    Editorial Team added an answer I finally decided to use xhtmlrenderer. It perfectly fits my… May 11, 2026 at 11:51 pm
  • Editorial Team
    Editorial Team added an answer I've recently been able to come back to this, and… May 11, 2026 at 11:51 pm

Related Questions

Having recently gotten into test driven development I am using the Nunit test runner
I've been using ReSharper for the past months and, advertising aside, I can't see
I have read a lot about ReSharper on here. It sounds like it has
Recenty I installed ReSharper 4.5. It has a cool new feature of checking naming

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.