Skip to content
Liu-Cheng Xu edited this page Jan 23, 2020 · 6 revisions

The examples here are community-driven and not guaranteed to be bug-free.

Ensure your code is tested at least by yourself before adding it here.

Table of Contents

Open dotfiles

let g:clap_provider_dotfiles = {
      \ 'source': ['~/.vimrc', '~/.spacevim', '~/.bashrc', '~/.tmux.conf'],
      \ 'sink': 'e',
      \ }

Use :Clap dotfiles to open some dotfiles quickly.

Execute custom commands

let g:clap_provider_commands = {
      \ 'source': ['Clap debug', 'UltiSnipsEdit'],
      \ 'sink': { selected -> execute(selected, '')},
      \ }

Use :Clap commands to execute the custom commands.

Clone this wiki locally