Skip to content
This repository has been archived by the owner on Mar 5, 2020. It is now read-only.

Commit

Permalink
Use <C-y> instead of <CR> to accept completion (#46)
Browse files Browse the repository at this point in the history
<CR> isn't the standard Vim mapping to accept the completion, <C-y> is.
This is just a personal preference that snuck in when I wrote the
completion (#6).

Fixes #42 and #43
  • Loading branch information
arp242 authored and joereynolds committed Nov 13, 2019
1 parent b5bcaff commit 81a87b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions doc/minisnip.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ MAPPINGS *minisnip-mappings*
-------------------------------------------------------------------------------
*minisnip_<C-x><C-t>*
<C-x><C-t> Start |ins-completion| for the snippet. Press <C-t> again
to go to the next snippet; press <CR> or <Tab> to complete
it.
to go to the next snippet; press <C-y> or <Tab> to
complete it.

===============================================================================
CONFIGURATION *minisnip-configuration*
Expand Down Expand Up @@ -142,8 +142,8 @@ Defaults: '{{-', '-}}'

The start and end delimiters of the final placeholder string to use. While the
normal placeholders will be dealt with in the order they appear in the snippet,
these placeholders will be targeted last.>
# BEGIN FUNCTON {{++}}
these placeholders will be targeted last. >
# BEGIN FUNCTION {{++}}
{{--}}
# END FUNCTION {{+~\~1+}}
<
Expand Down
2 changes: 1 addition & 1 deletion plugin/minisnip.vim
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ endif
if !hasmapto('<Plug>(minisnip-complete)')
imap <C-x><C-t> <Plug>(minisnip-complete)
inoremap <expr> <C-t> pumvisible() ? "\<C-n>" : "\<C-t>"
imap <expr> <CR> pumvisible() ? "\<Tab>" : "\<CR>"
imap <expr> <C-y> pumvisible() ? "\<Tab>" : "\<C-y>"
endif

0 comments on commit 81a87b1

Please sign in to comment.