Code Monkey home page Code Monkey logo

vim-fzf-tjump's Introduction

vim-fzf-tjump

A Vim plugin aiming to be an alternative to Vim's built-in :tjump.

  • Filter tag candidates and select a one by fzf
  • Show selected tag candidate's code preview
vim-fzf-tjump-demo.mp4

Functions

fzf_tjump#jump

Show tag candidates matched with given tag name and go to selected tag. Go directly if matched tag is only 1.

Use current word (<cword>) as given tag name if no argument is given or given tag name is an empty string.

Show selected tag's code preview.

Commands

:Tjump

A wrapper of fzf_tjump#jump.

g:fzf_command_prefix is respected. The command name is :FzfTjump if you configure as following:

let g:fzf_command_prefix = "Fzf"

Mappings

vim-fzf-tjump adds no mappings. You can add mappings.

Mapping example

" Press `g]` in normal mode to call `fzf_tjump#jump`.
" Press `g]` in visual mode to call `fzf_tjump#jump` with selected word.
map g] <Plug>(fzf-tjump)

Configurations

Let's execute as following for more information:

:h vim-fzf-tjump-variables

Installation

If you use dein.vim:

call dein#add("kg8m/vim-fzf-tjump")

Requirements

  • fzf 0.22+
    • fzf 0.22 supports preview window option for setting the initial scroll offset
  • fzf.vim
  • Tag file with line numbers of tag definitions
    • You can probably create it by ctags --fields=n command
  • Newer Vim
  • Linux or Mac

vim-fzf-tjump's People

Contributors

kg8m avatar

Stargazers

 avatar

Watchers

 avatar  avatar

vim-fzf-tjump's Issues

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.