Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Vim: Markiertes Wort in Suche
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Tue Jun 14, 2016 6:04 am    Post subject: [solved] Vim: Markiertes Wort in Suche Reply with quote

Guten Morgen,

bei Vim kann man ja mit * (oder #) einen Begriff markieren und dann mit n oder N die weiteren Vorkommen suchen.

Der Begriff steht in den Registern dann unter: "/

Kann ich diesen Begriff irgendwie in die Kommandozeile einfügen? Also:
Code:
:%g/<hier soll der Begriff rein>/d


Update:
Hab's gefunden: http://stackoverflow.com/questions/3997078/how-to-paste-yanked-text-into-vim-command-line

Code:
<Ctrl+R>+/

tut, was ich will.

Anmerkung:
Code:
<Ctrl+R>+"

fügt "geyankten" Text in die Suche ein.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum