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

Leftovers: OSS

  • Why Open-Source Pros Are in Great Demand
    The majority of hiring managers predict that the demand for open-source IT professionals will rise more than other recruitment-based areas of interest over the next six months, according to a recent survey from the Linux Foundation and Dice. The resulting report, "Moving Toward Professionalization: Rising Need for Open-Source Skills in 2016," indicates that these managers struggle to fill open-source positions, especially when trying to find candidates with needed cloud, networking and/or security experience. Meanwhile, when considering an offer, open-source professionals said they're most interested in working on appealing projects with cutting-edge technology challenges. Money and perks are of secondary interest, even though, given the hot market, many open-source specialists are able to negotiate a great compensation package. According to the report, "In the last decade, open-source development has experienced a massive shift: Once a mostly community and volunteer-based concern, the model has since become a mainstay of the IT industry. Flexibility in accommodating new technologies and speed at adapting to a changing market have made open source vital to modern companies, which are now investing zealously in open source and open-source talent. More and better code is the way forward, and the skilled professionals who can make it happen are highly in demand." More than 400 hiring managers and 4,500 open-source professionals took part in the research.
  • Open Source Realm Mobile Database Hits Version 1.0
    Citing advantages over the SQLite and Core Data databases commonly used in iOS and Android apps, Realm today launched version 1.0 of its namesake "mobile-first database."
  • Realm has hit the version 1.0 milestone, and now reaches over 1 billion users
    As mobile databases go, Realm was already a fan favorite. Now we get an idea of just how popular it really is, as the company notes it now reaches one billion iOS and Android users via 100,000 active developers.
  • Rackspace Adopts OX's Dovecot Pro Open Source IMAP Email Platform
    Dovecot, the open source email platform from Open-Xchange, received a significant endorsement this week from Rackspace, which announced that it will use the company's Dovecot Pro product for email hosting.
  • An Apparent Exodus Continues At OwnCloud
    This week we've now seen the announcements by Jos Poortvliet, Lukas Reschke, Björn Schießle, and Arthur Schiwon are among those leaving ownCloud Inc. Each of their blog posts confirm they are leaving but don't shed much light on the underlying situation at the company.
  • Upcoming governance workshop for the European Catalogue of ICT Standards for Public Procurement
    On the 15th June, 2016, DG Connect and DG Growth wil be co-hosting an interactive workshop for the European Catalogue of ICT Standards for Public Procurement. This catalogue of standards is being developed to assist public procurers implement interoperable ICT solutions across Member States, as well as reducing incidence of vender lock-in, and ultimately to assist in the continued development of the Digital Single Market.
  • American schools are teaching our kids how to code all wrong
    To truly impact an children’s cognitive development, and prepare them for future computing jobs that may not even exist yet, we must move beyond pop computing. I strongly believe that learning computing should become mandatory in all schools, and should be viewed in the same context as reading and writing. Students must be challenged and encouraged to think differently in each grade level, subject matter, and read/write various computing projects every day in their academic life. With this mindset and approach we’ll help this generation of students fill those one million jobs, all of which require so much more than dragging and clicking.
  • Google Inbox Notifications
    I made a Firefox addon that brings that functionality to Google Inbox. It gives you a notification when new mail arrives and updates the pages title with the unread mail count. You can get it here!
  • Upcoming Webinar on Getting Linux Certified - Tips, Tactics, and Practical Advice

Security Leftovers

  • Security updates for Thursday
  • Paul Vixie on IPv6 NAT, IPv6 security and Internet of Things
    Internet pioneer Paul Vixie spoke with SearchSecurity about IPv6 NAT, IPv6 and the Internet of Things, and the long, thankless path to deploying IPv6.
  • PHP 7.0.7 Released Fixing 28 Bugs
    As is the case with a .xy update, this is mostly a bug fix update, with at least 28 different issues being fixed in an effort to make PHP 7.x more stable. Though the PHP project hasn't identified any specific security vulnerabilities that are fixed in the update, I see at least one with bug #72162.
  • Skimmers Found at Walmart: A Closer Look
    Recent local news stories about credit card skimmers found in self-checkout lanes at some Walmart locations reminds me of a criminal sales pitch I saw recently for overlay skimmers made specifically for the very same card terminals.

Android Leftovers

Leftovers: BSD

  • Faces of FreeBSD 2016: Michael Lucas
    Back by popular demand, we’re again sharing a story from someone involved in FreeBSD with our Faces of FreeBSD series. It may be a story from someone who’s received funding from us to work on development projects, run conferences, travel to conferences, or advocate for FreeBSD. Or, it may be from someone who gives back to FreeBSD financially or in another way. Regardless, it is always from someone who is making a positive difference in the FreeBSD world.
  • pfSense 2.3.1 FreeBSD Firewall Update Patches Web GUI Security Issue, Seven Bugs
    Released a week ago as the first maintenance build in the 2.3 stable series, pfSense 2.3.1 received its first update, bringing a patch for a major security issue in the Web GUI, as well as seven other bug fixes. pfSense 2.3.1 was a major point release of the FreeBSD-based network firewall distribution that introduced over 100 changes, but pfSense 2.3 brought a new pkg system that lets the project's maintainers update only individual parts of the system.