Skip to content

Instantly share code, notes, and snippets.

@carlosb1
Created May 30, 2020 19:24
Show Gist options
  • Save carlosb1/39d95fe20f889a24df8aafd775762831 to your computer and use it in GitHub Desktop.
Save carlosb1/39d95fe20f889a24df8aafd775762831 to your computer and use it in GitHub Desktop.
## Quick Start
### normal mode / visual mode
* start: `<C-n>` start multicursor and add a _virtual cursor + selection_ on the match
* next: `<C-n>` add a new _virtual cursor + selection_ on the next match
* skip: `<C-x>` skip the next match
* prev: `<C-p>` remove current _virtual cursor + selection_ and go back on previous match
* select all: `<A-n>` start multicursor and directly select all matches
You can now change the _virtual cursors + selection_ with **visual mode** commands.
For instance: `c`, `s`, `I`, `A` work without any issues.
You could also go to **normal mode** by pressing `v` and use normal commands there.
At any time, you can press `<Esc>` to exit back to regular Vim.
**NOTE**: start with `g<C-n>` to match without boundaries (behaves like `g*` instead of `*`)
### visual mode when multiple lines are selected
* start: `<C-n>` add _virtual cursors_ on each line
You can now change the _virtual cursors_ with **normal mode** commands.
For instance: `ciw`.
@carlosb1
Copy link
Author

CtrL + V multip seleccion
I - Insert

@carlosb1
Copy link
Author

carlosb1 commented Jun 7, 2020

Rust
Semantic auto-completion
Real-time diagnostic display
Go to declaration/definition (GoTo, etc.)
Go to implementation (GoToImplementation)
Reference finding (GoToReferences)
View documentation comments for identifiers (GetDoc)
Automatically fix certain errors (FixIt)
Type information for identifiers (GetType)
Renaming symbols (RefactorRename )
Code formatting (Format)
Execute custom server command (ExecuteCommand )
Management of rls server instance
Python
Semantic auto-completion
Signature help
Go to definition (GoTo)
Reference finding (GoToReferences)
View documentation comments for identifiers (GetDoc)
Type information for identifiers (GetType)

run RustPlay with a selection of code.. and it will end to playpen

@carlosb1
Copy link
Author

carlosb1 commented Nov 9, 2022

  • https://vim.rtorr.com
    botright terminal
    resize -10
    Ctrl W , Mayusc N - enter in normal mode
    Ctr + o preview
    G or gg (ending or starting)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment