Git Product home page Git Product logo

indexedsearch's Introduction

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

" This plugin redefines 6 search commands (/,?,n,N,*,#). At every
" search command, it automatically prints
"        "At match #N out of M matches".
" -- the total number of matches (M) and the number(index) of current
" match (N). This helps to get oriented when searching forward and
" backward.
"
" To try out the plugin, source it and play with N,n,*,#,/,? commands.
" There are no new commands and no new behavior to learn. 
" Just watch the bottom line when you do /,?,n,N,*,#.
"
" Works on vim6 and vim7.  Won't cause slowdown
" on very large files (but then counters are not displayed).
"
" -----------------------------------------------------
" Checking At which Match Number You Are
" .....................................................
" You can press g/ or \\ or \/ (that's backslach then slash),to show 
" at which match index you are, without moving the cursor.
" Messages are:
"     At Nth match of M (if cursor is exactly on the match)
"     Betwen matches N1-N2 of M (if cursor is between matches)
"     At single match
"     Before first match, of N
"     After last match, of N
" Command  ':ShowSearchIndex'  shows same information.
" ------------------------------------------------------
" To disable colors for messages, set 'let g:indexed_search_colors=0'.
" ------------------------------------------------------
" Performance.     Plugin bypasses the calculation of match index when 
" it would take too much time (too many matches, too large file). You can
" tune performance limits, look into script sources after comment 
" "Performance tuning limits".
" ------------------------------------------------------
" In case of bugs and wishes, please email to:  
" iler.ml at gmail.com
" ------------------------------------------------------
" To show slightly shorter messages, define 'let g:indexed_search_shortmess=1'

indexedsearch's People

Stargazers

 avatar

Watchers

 avatar  avatar  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.