Skip to content

Instantly share code, notes, and snippets.

@g0xA52A2A
Last active May 19, 2021 17:42
Show Gist options
  • Save g0xA52A2A/d3d6ee27cecf0f90dd1c9daf23c536e9 to your computer and use it in GitHub Desktop.
Save g0xA52A2A/d3d6ee27cecf0f90dd1c9daf23c536e9 to your computer and use it in GitHub Desktop.

Revisions

  1. @George-B George-B revised this gist May 19, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Vim_getcompletion_hell.md
    Original file line number Diff line number Diff line change
    @@ -43,4 +43,5 @@ a bag of cats.
    |var | Yes | With `\\C` |

    \* Uppercase inputs can return lowercase results with `noignorecase` set

    \** A case sensitve match appears somewhere within the match, not just at the start
  2. @George-B George-B revised this gist May 19, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Vim_getcompletion_hell.md
    Original file line number Diff line number Diff line change
    @@ -42,5 +42,5 @@ a bag of cats.
    |user | Always insensitive | With `\\C` |
    |var | Yes | With `\\C` |

    * Uppercase inputs can return lowercase results with `noignorecase` set
    ** A case sensitve match appears somewhere within the match, not just at the start
    \* Uppercase inputs can return lowercase results with `noignorecase` set
    \** A case sensitve match appears somewhere within the match, not just at the start
  3. @George-B George-B revised this gist May 19, 2021. 1 changed file with 37 additions and 37 deletions.
    74 changes: 37 additions & 37 deletions Vim_getcompletion_hell.md
    Original file line number Diff line number Diff line change
    @@ -4,43 +4,43 @@ As if string comparisons being influenced by `'ignorecase'` wasn't bad
    enough determining what will come out of `getcompletion()` is a like
    a bag of cats.

    Type | Follows `'ignorecase'` | Force case (in)sensitivity
    --------------+------------------------+---------------------------
    arglist | Always insensitive | With `\\C`
    augroup | Always insensitive | With `\\C`
    buffer | Always insensitive | With `\\C`
    behave | Always insensitive | With `\\C`
    color | Always sensitive | With `\c`
    command | Yes | With `\\C`
    compiler | Always sensitive | With `\c`
    cscope | Always insensitive | With `\\C`
    diff_buffer | Always insensitive | With `\\C`
    dir | Always insensitive | With `\C`
    environment | Always insensitive | With `\\C`
    event | Always insensitive | With `\\C`
    expression | Yes | With `\\C`
    file | Always insensitive | With `\C`
    file_in_path | Always insensitive | With `\C`
    filetype | Always sensitive | With `\c`
    function | Yes | With `\\C`
    help | Sort of* | With `\C`**
    highlight | Always insensitive | With `\\C`
    history | Always insensitive | With `\\C`
    locale | Always insensitive | With `\\C`
    mapclear | Always insensitive | With `\\C`
    mapping | Yes | With `\\C`
    menu | Yes | With `\\C`
    messages | Always insensitive | With `\\C`
    option | Yes | With `\\C`
    packadd | Always sensitive | With `\c`
    shellcmd | Always sensitive | With `\c`
    sign | Always insensitive | With `\\C`
    syntax | Always sensitive | With `\c`
    syntime | Always insensitive | With `\\C`
    tag | Yes | With `\\C`
    tag_listfiles | Yes | With `\\C`
    user | Always insensitive | With `\\C`
    var | Yes | With `\\C`
    |Type | Follows `'ignorecase'` | Force case (in)sensitivity|
    |--------------|------------------------|---------------------------|
    |arglist | Always insensitive | With `\\C` |
    |augroup | Always insensitive | With `\\C` |
    |buffer | Always insensitive | With `\\C` |
    |behave | Always insensitive | With `\\C` |
    |color | Always sensitive | With `\c` |
    |command | Yes | With `\\C` |
    |compiler | Always sensitive | With `\c` |
    |cscope | Always insensitive | With `\\C` |
    |diff_buffer | Always insensitive | With `\\C` |
    |dir | Always insensitive | With `\C` |
    |environment | Always insensitive | With `\\C` |
    |event | Always insensitive | With `\\C` |
    |expression | Yes | With `\\C` |
    |file | Always insensitive | With `\C` |
    |file_in_path | Always insensitive | With `\C` |
    |filetype | Always sensitive | With `\c` |
    |function | Yes | With `\\C` |
    |help | Sort of* | With `\C`** |
    |highlight | Always insensitive | With `\\C` |
    |history | Always insensitive | With `\\C` |
    |locale | Always insensitive | With `\\C` |
    |mapclear | Always insensitive | With `\\C` |
    |mapping | Yes | With `\\C` |
    |menu | Yes | With `\\C` |
    |messages | Always insensitive | With `\\C` |
    |option | Yes | With `\\C` |
    |packadd | Always sensitive | With `\c` |
    |shellcmd | Always sensitive | With `\c` |
    |sign | Always insensitive | With `\\C` |
    |syntax | Always sensitive | With `\c` |
    |syntime | Always insensitive | With `\\C` |
    |tag | Yes | With `\\C` |
    |tag_listfiles | Yes | With `\\C` |
    |user | Always insensitive | With `\\C` |
    |var | Yes | With `\\C` |

    * Uppercase inputs can return lowercase results with `noignorecase` set
    ** A case sensitve match appears somewhere within the match, not just at the start
  4. @George-B George-B created this gist May 19, 2021.
    46 changes: 46 additions & 0 deletions Vim_getcompletion_hell.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    # `getcompletion()` hell

    As if string comparisons being influenced by `'ignorecase'` wasn't bad
    enough determining what will come out of `getcompletion()` is a like
    a bag of cats.

    Type | Follows `'ignorecase'` | Force case (in)sensitivity
    --------------+------------------------+---------------------------
    arglist | Always insensitive | With `\\C`
    augroup | Always insensitive | With `\\C`
    buffer | Always insensitive | With `\\C`
    behave | Always insensitive | With `\\C`
    color | Always sensitive | With `\c`
    command | Yes | With `\\C`
    compiler | Always sensitive | With `\c`
    cscope | Always insensitive | With `\\C`
    diff_buffer | Always insensitive | With `\\C`
    dir | Always insensitive | With `\C`
    environment | Always insensitive | With `\\C`
    event | Always insensitive | With `\\C`
    expression | Yes | With `\\C`
    file | Always insensitive | With `\C`
    file_in_path | Always insensitive | With `\C`
    filetype | Always sensitive | With `\c`
    function | Yes | With `\\C`
    help | Sort of* | With `\C`**
    highlight | Always insensitive | With `\\C`
    history | Always insensitive | With `\\C`
    locale | Always insensitive | With `\\C`
    mapclear | Always insensitive | With `\\C`
    mapping | Yes | With `\\C`
    menu | Yes | With `\\C`
    messages | Always insensitive | With `\\C`
    option | Yes | With `\\C`
    packadd | Always sensitive | With `\c`
    shellcmd | Always sensitive | With `\c`
    sign | Always insensitive | With `\\C`
    syntax | Always sensitive | With `\c`
    syntime | Always insensitive | With `\\C`
    tag | Yes | With `\\C`
    tag_listfiles | Yes | With `\\C`
    user | Always insensitive | With `\\C`
    var | Yes | With `\\C`

    * Uppercase inputs can return lowercase results with `noignorecase` set
    ** A case sensitve match appears somewhere within the match, not just at the start