Coder Social home page Coder Social logo

stesen / occur.vim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vim-scripts/occur.vim

0.0 2.0 0.0 3 KB

[fix map conflict for mark.vim]Show all lines in the buffer containing word (grep buffer)

Home Page: http://www.vim.org/scripts/script.php?script_id=2262

Vim Script 100.00%

occur.vim's Introduction

This is a mirror of http://www.vim.org/scripts/script.php?script_id=2262

This script looks like 'occur' of emacs script.

Create a quickfix list using all lines in the buffer containing a match for regexp.
Search for regexp in the current buffer or all buffers.

Search current buffer:
(1) Search the word by '/' command.
(2)  :Occur

Search all buffers:
(1) Search the word by '/' command.
(2)  :Moccur

Seach all buffers for occurrence of the word nearest to the cursor:
(1) move the cursor to the word
(2) :StarOccur

You can use keymappings of
  <Leader>oc   - Occur
  <Leader>mo   - Moccur
  <Leader>*   - StarOccur

# The default <Leader> is backslash. (ex: \* = StarOccur) 
# (see :help mapleader)

[QUICKFIX KEY-MAPPING]
This plugin enhances quickfix key-mapping.
(when this plugin opens the quickfix window.)

<Space> : Set current window height to highest.
x : Display the occurence the current line.
q : Quit the quickfix window.

If you want to disable this, then you can set the variable in the "vimrc".

  let g:occur_no_quickfix_map = 1

occur.vim's People

Contributors

noriyosi avatar

Watchers

stesen avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.