function! <sid>CCR()
if getcmdtype() isnot# ':'
return "\<CR>"
endif
let cmdline = getcmdline()
if cmdline =~# '\v^\s*(ls|files|buffers)!?\s*(\s[+\-=auhx%#]+)?$'
" like :ls but prompts for a buffer command
return "\<CR>:b"
elseif cmdline =~# '\v/(#|nu%[mber])$'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# From | |
# Based on: | |
# https://github.com/BarbUk/dotfiles/blob/master/bin/snippy | |
# https://git.zx2c4.com/password-store/tree/contrib/dmenu/passmenu | |
DIR=${HOME}/.snippy | |
MENU_ENGINE="rofi" | |
DMENU_ARGS='-dmenu -i -sort -lines 25' |