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
- Host: GitHub
- URL: https://github.com/voldikss/vim-codelf
- Owner: voldikss
- Created: 2019-12-30T13:30:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-03T04:01:48.000Z (about 5 years ago)
- Last Synced: 2025-04-03T21:11:27.564Z (11 months ago)
- Topics: codelf, vim-codelf, vim-plugin
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 53
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-codelf

(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).