commit dcae809ee179c7a6fe1e6003fd4e5879044d8d6d
parent 2fd5c22da5ea887322270fa0ffaa6be90c6a0dd5
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Wed, 18 Nov 2020 12:09:22 +0100
vim: equivalents for se()/ce() in shell
Former-commit-id: c26c88d693e0bc22d79fa3e393494a531da746e9
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/vim/vimrc b/vim/vimrc
@@ -293,6 +293,8 @@ nnoremap <leader>! :Todo<CR>
" Set a filetype
cabbrev setf Filetypes
+command! Scripts call fzf#run(fzf#wrap({'source': 'command find "$(readlink ~/.scripts)" -type f -or -type l -not -ipath "*/.git/*"', 'options': '--multi --reverse --inline-info --prompt="scripts> "', 'sink': 'sp'}))
+command! Configs call fzf#run(fzf#wrap({'source': 'command find ~/.dotfiles -type f ! -ipath "*/.git/*" ! -ipath "*/bin/*" ! -ipath "*/oh-my-zsh/*" ! -name ".DS_Store"', 'options': '--multi --reverse --inline-info --prompt="configs> "', 'sink': 'sp'}))
" Vimwiki {{{3
let tlist_vimwiki_settings = 'wiki;h:Headers'
let g:vimwiki_table_mappings = 0 " avoid vimwiki conflict with Ultisnips
@@ -886,7 +888,7 @@ inoremap <c-r> <c-r><c-o>
" Up/down errors on the command line search for commands starting with current
" string. I want <c-n/p> to do the same.
cnoremap <c-p> <up>
-cnoremap <c-d> <down>
+cnoremap <c-n> <down>
" Autocommands {{{1
if has('autocmd')
augroup vimrc_sets