skywind3000 / skywind3000/vim-quickui

Create map/option list like function list?

Open
#69 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
1.2k
Forks
41
PR merge metrics
No merged PRs in 30d

Description

I want to move the cursor to the line with my map which I want to modify.
image

my current setting:

    "  快速查map
            func! Leo_keymap(keys)
                exe "verbose map "  . a:keys
                exe "verbose map! " . a:keys
                exe "verbose tmap " . a:keys

                " 不好: (没有上面的那么智能)
                    " exe "verbose nmap " . a:keys
                    " exe "verbose omap " . a:keys
                    " exe "verbose vmap " . a:keys
                    " exe "verbose imap " . a:keys
                    " exe "verbose cmap " . a:keys
                    " exe "verbose tmap " . a:keys
                " 不行
                    " exe "Verbose map " . a:keys  . <Bar> . "verbose map! " . a:keys . <Bar> .  "verbose tmap " . a:keys
            endfunc
            " nn map       :Verbose call Leo_keymap( input("请输入{left_hand_side}:") )<cr>
                " 想偷懒 每次少敲<c-c>, 但不行
                " nn map       :Verbose call Leo_keymap( input("请输入{left_hand_side}:<c-v>") )<cr>
            nn cd /\s\d<cr>lyiwbbg
                " capture digit 跳到数字处 并复制行号
                " \s : 空白符
                " \d : 数字
            vn map  <esc>:Verbose call Leo_keymap('')<left><Left>

            cnoreabbrev <expr> map   getcmdtype() == ":" && getcmdline() == 'map'          ? 'Verbose call Leo_keymap("")<left><left>'                       :   'map'

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name any repository files, tests, or entry points. Start by locating the existing function-list implementation and the code that renders or navigates lists, then determine how a map/option list should be integrated. Done means users can move the cursor to a mapping and modify it, with the requested behavior clarified first.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.