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

today's leftovers

Leftovers: Software

  • The Linux Deepin File Manager Is a Thing of Beauty
    China-based Linux distro Deepin has shown off its all-new desktop file manager. And to say it's pretty is an understatement.
  • GRadio Lets You Find, Listen to Radio Stations from the Ubuntu Desktop
    Love to listen to the radio? My ol’ pal Lolly did. But let’s say you want to listen to the radio on Ubuntu. How do you do it? Well, the Ubuntu Software centre should always be the first dial you try, but you’ll need to sift through a load of static to find a decent app.
  • Reprotest 0.2 released, with virtualization support
    reprotest 0.2 is available in PyPi and should hit Debian soon. I have tested null (no container, build on the host system), schroot, and qemu, but it's likely that chroot, Linux containers (lxc/lxd), and quite possibly ssh are also working. I haven't tested the autopkgtest code on a non-Debian system, but again, it probably works. At this point, reprotest is not quite a replacement for the prebuilder script because I haven't implemented all the variations yet, but it offers better virtualization because it supports qemu, and it can build non-Debian software because it doesn't rely on pbuilder.
  • Calibre 2.63.0 eBook Converter and Viewer Adds Unicode 9.0 Support, Bugfixes
    Kovid Goyal has released yet another maintenance update for his popular, open-source, free, and cross-platform Calibre ebook library management software, version 2.63.0. Calibre 2.63.0 arrives two weeks after the release of the previous maintenance update, Calibre 2.62.0, which introduced support for the new Kindle Oasis ebook reader from Amazon, as well as reading and writing of EPUB 3 metadata. Unfortunately, there aren't many interesting features added in the Calibre 2.63.0 release, except for the implementation of Unicode 9.0 support in the regex engine of the Edit Book feature that lets users edit books that contain characters encoded with the recently released Unicode 9.0 standard.
  • Mozilla Delivers Improved User Experience in Firefox for iOS
    When we rolled out Firefox for iOS late last year, we got a tremendous response and millions of downloads. Lots of Firefox users were ecstatic they could use the browser they love on the iPhone or iPad they had chosen. Today, we’re thrilled to release some big improvements to Firefox for iOS. These improvements will give users more speed, flexibility and choice, three things we care deeply about.
  • LibreOffice 5.2 Is Being Released Next Wednesday
    One week from today will mark the release of LibreOffice 5.2 as the open-source office suite's latest major update. LibreOffice 5.2 features a new (optional) single toolbar mode, bookmark improvements. new Calc spreadsheet functions (including forecasting functions), support for signature descriptions, support for OOXML signature import/export, and a wealth of other updates. There are also GTK3 user-interface improvements, OpenGL rendering improvements, multi-threaded 3D rendering, faster rendering, and more.
  • Blackmagic Design Finally Introduces Fusion 8 For Linux
  • Why Microsoft’s revival of Skype for Linux is a big deal [Ed: This article is nonsense right from the headline. Web client is not Linux support. And it's spyware (centralised too).]

today's howtos

Microsoft and Linux