Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Behavior of star (*) command

Tags:

vim

I've noticed on occasion that that using * to search for the word under the cursor occasionally will have slightly different behavior (usually when I'm switching between various computers). The issue is when I perform a search for a word that has a * in front of it (like a c++ pointer). For example:

MyPointer *foo;
...
foo = new MyPointer();

When I move the cursor over the first occurrence of "foo", it usually does a search for that exact word (e.g. /\<foo\>), but sometimes it will include the * character in its search (e.g. /\<*foo\>) which causes it to fail to find any other occurrences of that variable since it's including the * character.

Does anyone know what causes this behavior and/or how to control it?

like image 686
Chris Avatar asked Mar 15 '12 15:03

Chris


People also ask

What does a * * * Line in the traceroute response mean?

This is the Round-Trip Time or the amount of time it took for the traceroute packets to reach that hop and receive a reply. You might notice one or more lines of your traceroute output is listed only with an asterisk (*). This means that the program did not receive any response from the router at that hop.

What does 3 asterisks mean in traceroute?

The asterisks indicate that the target server did not respond as traceroute expected before a timeout occurred - this does not always indicate packet loss.

What is the difference between traceroute and Tracepath?

How are they different? Most documentation simply states that tracepath does not require root privileges to run, and traceroute does (or some traceroute options require root).

How do you know if a traceroute is successful?

Checking the Hop Times The times listed in the RTT columns are the main thing you want to look at when evaluating a traceroute. Consistent times are what you are looking for. There may be specific hops with increased latency times but they may not indicate that there is an issue.


1 Answers

The behavior is affected by the isk(iskeyword) option.
It may different when you switch to a different buffer.
You can type :help 'isk' to read more.

like image 84
kev Avatar answered Oct 20 '22 18:10

kev