Language Selection

English French German Italian Portuguese Spanish

Search Next or Backwards and Goto Line Tips for VIM

Filed under
HowTos

To search in vim is very simple, even a noob vim user know that,

/keyword

To search for next?

simply follow by pressing n for next keyword match point and search backward with shift+n or N.

Wanna highlight the keyword and search for next keyword match point?
Place your cursor at the desire word, and press shift 8(8 not at number pad) or *.

To highlight the keyword search?

Full Story.

Gobbeldy Schmockel

Just as I suspected. Vi advocates cannot communicate with humans:

Quote:
even a noob vim user know that

Quote:
Place your cursor at the desire word

Quote:
While opening the file sample.cc, I wanna goto line 165, which originally mention at here before.

Of course, you know why they cannot communicate and why man pages are so hard to decipher? It's because the writers are using vi.

When every fibre of your being is focussed on remembering key bindings, how can you even begin to think about what you are writing?

For seekers only

re: Gobbeldy Schmockel

Quote:

When every fibre of your being is focussed on remembering key bindings, how can you even begin to think about what you are writing?

teehee! I often shutter at some of the grammer mistakes I see in some of the posts I link to and there are times they are so thick you can barely make out what the 'author' is trying to say. I try not to make too many myself, but there isn't an article written by me in which I'm not still finding mistakes. Writing is harder than it looks. Big Grin

Vi was the first terminal editor I learned. In fact, it's probably the only console editor I learned. I still use it for quick config file edits. I never learned all (or even most) of the key-bindings. I learned enough to do quick edits. I write my stories in kwrite. I like it because it is a bit more primitive than some of the others, with the main advantage being it doesn't code the line breaks like even Vi does. But I still like Vi for those quick edits.

In fact, I believe everyone should learn the few commands needed to use Vi for editing. There are still a few distros out there that only ship with Vi. What if you needed to edit the xorg.conf file to get into X and Vi is all that's available?

----
You talk the talk, but do you waddle the waddle?

The early pioneer days are over

- get used to it

Quote:
There are still a few distros out there that only ship with Vi. What if you needed to edit the xorg.conf file to get into X and Vi is all that's available?

That's easy. I don't do distros which are that unevolved. Like I don't use software that's stuck in the '80s.

----
I try to take one day at a time -- but sometimes several days attack me at once - Ashleigh Brilliant

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

More in Tux Machines

Ultimate Linux Mint 1.4 Looks Much Better than Its Linux Mint Cinnamon Base – Gallery

Ultimate Linux Mint 1.4, a Linux distribution based on Linux Mint 17 Qiana Cinnamon Edition 64-bit, has been released and is available for download. Read more

Matching databases to Linux distros

Relational database management systems (RDBMSs) aren’t the sort of thing to get most folk out of bed in the morning – unless, of course, you happen to think they’re one of the most brilliant concepts ever dreamed up. These days you can’t sneeze without someone turning it into a table value in a database somewhere - and in combination with the freely available Linux operating system, there’s no end to them. Most Linux distros make it almost trivial to add popular DBMSs to your system, such as MySQL and MariaDB, by bundling them in for free in their online app stores. But how do you tell which combination - which Linux distro and which DBMS - will give you the best performance? This week we've revved up the Labs servers to ask the question: what level of performance do you get from OS repository-sourced DBMSs? Read more

The Curious Case of Raspberry Pi Consumerism

I find the attitude of many within the Raspberry Pi community to be strange and offensive. I first discovered this odd phenomenon (odd because it contradicts the ethos of the project's academic foundations) back when it first started, as many within the Raspberry Pi community took an extremely hostile attitude toward academic freedom, apparently in defence of various parties' highly dubious intellectual monopolies (Broadcom and MPEG-LA, for example). I pointed out the irony and hypocrisy of their attitude at the time, explaining that they were more than happy to leech Free (as in freedom) Software for their own benefit, but then balked at the prospect of freely sharing the results, and in particular this contradicted their stated academic goal of facilitating better computer education in UK schools, an environment that rightly demands open access to knowledge. Read more

Google Chrome 38 Beta Brings New Guest Mode and Easier Incognito Mode Switching

The developers have explained that the user switching feature has been redesigned and it will make changing profiles and into the incognito mode a lot simple. They have also added a new experimental Guest mode, a new experimental UI for Chrome supervised users has been implemented, and numerous under-the-hood changes have been made for stability and performance. "This release adds support for the new element thanks to the hard work of community contributor Yoav Weiss, who was able to dedicate his time to implementing this feature in multiple rendering engines because of a successful crowd-funding campaign that raised more than 50% of its funding goal." Read more