GithubHelp home page GithubHelp logo

teppey / popdef Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 65 KB

Vim plugin that displays a list of function and class names in the popup window

License: MIT License

Vim Script 100.00%
vim vim-plugin

popdef's Introduction

Popdef

Popdef is a Vim plugin that displays a list of function and class names in the popup window. You can move to the selected line from the displayed list. It is useful to get an overview of the source code.

popdef

By default, the following file types are supported: AsciiDoc, C, C++, Go, Markdown, Perl, Python, Ruby, Rust, Scheme, Vim. File types not supported by default can be easily added. See the description of Variables section in doc/popdef.txt for details.

Requirements

This plugin works with Vim 8.2 or later versions that support the popup window.

Install

Place autoload/popdef.vim and plugin/popdef.vim into runtime directory.

Unix/macOS:

~/.vim/autoload/popdef.vim
~/.vim/plugin/popdef.vim

Windows:

%USERPROFILE%\vimfiles\autoload\popdef.vim
%USERPROFILE%\vimfiles\plugin\popdef.vim

If you need a help file, place doc/popdef.txt into runtime directory and run :helptags ~/.vim/doc (Unix/macOS) or :helptags %USERPROFILE%\vimfiles\doc (Windows).

This plugin is invoked with the command :PopDef. To assign the execution of this command to a keymap, for example, set the following in ~/.vimrc:

nnoremap <silent> <Leader>d :PopDef<CR>

Key Mapping

  • x, CTRL-C, <Esc>: Close the popup window
  • <Space>, <Enter>: Close the popup window and jump to selected line
  • j: <count> line downward
  • k: <count> line upward
  • H: Line <count> from top of window
  • M: Middle line of window
  • L: Line <count> from bottom of window
  • CTRL-F: Page down
  • CTRL-B: Page up
  • gg: Go to first line
  • G: Goto line <count>, default last line
  • /: Forward search
  • ?: Backward search
  • n: Repeat the latest / or ?
  • N: Repeat the latest / or ? in opposite direction
  • zt: Cursor line to top of window
  • zz: Cursor line to center of window
  • zb: Cursor line to bottom of window

popdef's People

Contributors

teppey avatar

Stargazers

 avatar

Watchers

 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.