Highlighting text in insert mode

I was wondering how I best go about higlighting text to copy, for instance, in insert mode in doom emacs? As a concrete example, suppose I have the following code:

class Foo():
    def print_it(self, print_str):
        print('here is your string: {}'.format(print_str))
        
    def return_it(self, return_str):
        print('returning your string...')
        return return_str

and let’s suppose I wanted to highlight returning your . Normally I’d place my cursor at the r , and hold SHIFT while pressing the right arrow until I got to the last character. However, this doesn’t seem to work in insert mode. Is there another keybinding that allows for this method of highlighting text? Thanks in advance for your help!

I was able to track something down that uses evil-mode:

in normal mode:

  • Visual highlight with: SHIFT v
  • Make your selection with arrows.

Here’s a reference I pulled it from: https://www.reddit.com/r/emacs/comments/94saum/whats_the_best_way_to_indent_a_selection_in_emacs/

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.