Code Monkey home page Code Monkey logo

cmd2.vim's People

Contributors

gelguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cmd2.vim's Issues

Not showing messages

When the plugin Cmd2 is active and I type :messages, the messages aren't shown.

Error when completing without inputting any characters.

Here's the error:

Error detected while processing function Cmd2#main#Run..122..278..112..124..142..Cmd2#ext#suggest#GetCandidates:
line   23:
E684: list index out of range: -1
E116: Invalid arguments for function len(tokens[-1]) < g:Cmd2__suggest_min_length) && !a:force_menu
E15: Invalid expression: (len(tokens[-1]) < g:Cmd2__suggest_min_length) && !a:force_menu
let g:Cmd2_cmd_mappings = {
      \ 'iw': {'command': 'iw', 'type': 'text', 'flags': 'Cpv'},
      \ 'ap': {'command': 'ap', 'type': 'line', 'flags': 'pv'},
      \ '^': {'command': '^', 'type': 'normal!', 'flags': 'r'},
      \ 'w': {'command': 'Cmd2#functions#Cword',
      \ 'type': 'function', 'flags': 'Cr'},
      \ }
let g:Cmd2_options = {
      \ '_complete_ignorecase': 1,
      \ '_complete_uniq_ignorecase': 0,
      \ '_quicksearch_ignorecase': 1,
      \ '_complete_start_pattern': '\<\(\k\+\(_\|\#\)\)\?',
      \ '_complete_fuzzy': 1,
      \ }
cmap <leader><leader> <Plug>Cmd2
nmap : :<F12>
cmap <F12> <Plug>(Cmd2Suggest)
cmap <expr> <Tab> Cmd2#ext#complete#InContext() ? "\<Plug>(Cmd2Complete)" : "\<Tab>"
set wildcharm=<Tab>

To reproduce error: :<tab>

I'm also using neovim if it matters.

Mapping help

Using the suggested mappings, when I type '/', it opens search and puts '' as search input. Have you seen this before? If I actually type / then it works - but the mapping doesn't. Spent a while trying to run it down and wasn't able to figure it out.

Thanks for your work on this plugin!

Some special characters not handled correctly

Special characters which have the no_reenter flag will cause Cmd2Suggest to exit from the cmdline.

Examples of these are <C-V>, <C-K>, <C-D> etc. These cause exit from the cmdline as Cmd2Suggest is unable to decide if it should return back to the cmdline.

The best way to handle this would be to create a special module to handle each of these cases.

To be fixed in later version (maybe).

Doesn't work with Paste Mode

I have the following hotkeys configuration:

" : or /: Enable Cmd2 automatically.
nmap : :<F11>
nmap / /<F11>

" <F11>: Enable Cmd2 manually.
cmap <F11> <Plug>(Cmd2Suggest)

" <Tab>: Perform completion using Cmd2.
cmap <expr> <Tab> Cmd2#ext#complete#InContext() ?
      \ '\<Plug>(Cmd2Complete)' :
      \ '\<Tab>'

It normally works.

However, in Paste Mode when pressing : I get :<F11> in the commandline (without cmd2) instead of having an empty commandline with cmd2 active.

Breaks :h :e etc.

Hi

If i enable it with

cmap <expr> <Tab> Cmd2#ext#complete#InContext() ? "\<Plug>(Cmd2Complete)" : "\<Tab>"

And then try

:e <TAB>

it just prints ^I

Neovim async support

Does Cmd2 support neovim async functionality?

It would be very useful for completing long lists, like help (:he ..).

Integration with Airline

I've installed both Cmd2 and airline plugins.

The problem here is that Cmd2 replaces airline as statusbar when autocompleting.
I'd like instead that Cmd2 displays autocomplete results inside the airline.

Is that possible?

Thanks,
Alessandro

A question and maybe a feature request

He

I just stumbled upon your plug-in and really like it. By now I was always using ''vim-scripts/CmdlineComplete.git' to allow for a completion on command line. The problem with that one however is that the completion in a search and replace is only working before the / not in the second part. This seems to be the same for your plug-in? Or can I achieve that with the right options set? Any help with that would be appreciated.

My setup now is:

let g:Cmd2_options = {
       \ '_complete_ignorecase': 1,
       \ '_complete_uniq_ignorecase': 0,
       \ '_complete_fuzzy': 1,
       \ }

 cmap <expr> <Tab> Cmd2#ext#complete#InContext() ? "\<Plug>(Cmd2Complete)" : "\<Tab>"

 set wildcharm=<Tab>

How to hook into new `CmdlineEnter` Vim event?

With the release of patch 1206 we now have an autocmd for entering the command line, which until now the suggestion for an auto-typed <F12> has been used to simulate. Is it possible to invoke Cmd2 using these new events, and if so, what steps are necessary to do it?

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.