An open API service indexing awesome lists of open source software.

https://github.com/voldikss/vim-codelf

(Neo)Vim plugin for searching variable names
https://github.com/voldikss/vim-codelf

codelf vim-codelf vim-plugin

Last synced: 8 months ago
JSON representation

(Neo)Vim plugin for searching variable names

Awesome Lists containing this project

README

          

# vim-codelf

![CI](https://github.com/voldikss/vim-codelf/workflows/CI/badge.svg)

(Neo)Vim plugin for searching useful variable names from [CODELF](https://github.com/unbug/codelf)






## Install

```vim
Plug 'voldikss/vim-codelf'
```

## Keymap

```vim
" Example key mappings configuration
inoremap =codelf#start()
nnoremap :call codelf#start()
```

## Configuration

#### `g:codelf_enable_popup_menu`

If set `v:true`, the available variable names will displayed in popup menu, which behaviors just like code completion.
Otherwise, they will be displayed in cmdline, prompting the user to select one(like `:z=`) to replace the word under the cursor.

#### `g:codelf_proxy_url`

e.g. `let g:codelf_proxy_url=http://127.0.0.1:1081`

## Commands

#### `:Codelf [word]`

Query the `word` from [codelf](https://github.com/unbug/codelf), return the variable name.

#### `:CodelfOpenBrowser [word]`

Go to [CODELF](https://github.com/unbug/codelf) for the `word`. If no `word`, use the word under the cursor. [vim-browser-search](https://github.com/voldikss/vim-browser-search) supplies the same function.

## Statusline

- `g:codelf_status`

## Q&As

- How to stop it from displaying after triggering a codelf query?

If the cursor was moved to another place, the callback function will be disabled.

- Will it frozen my Vim?

If your (Neo)Vim has `job` feature, this plugin won't stop your behavior. Otherwise, yes(and this plugin is not recommended in that case).