Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.98k stars 117 forks source link

<S-Tab> doesn't work #292

Open realones opened 3 years ago

realones commented 3 years ago

Hi @Raimondi , really sorry to disturb. The <S-Tab> doesn't work in my vim somehow, the cursor doesn't move at all. I am not sure where is the issue, can you please help? Kindly request to help : )

e.g.

before: (ab|c)
action: <S-Tab>
expected: (abc)|
actual: (ab|c)
:verb imap <Tab>
No mapping found

:verb imap <S-Tab>
i  <S-Tab>      @<Plug>delimitMateS-Tab
        Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 354
delimitMate Report
==================

* Options: ( ) default, (g) global, (b) buffer

( ) delimitMate_apostrophes = ''
( ) delimitMate_apostrophes_list = []
( ) delimitMate_autoclose = 1
( ) delimitMate_balance_matchpairs = 0
( ) delimitMate_eol_marker = ''
( ) delimitMate_excluded_regions = 'Comment'
( ) delimitMate_excluded_regions_enabled = 1
( ) delimitMate_excluded_regions_list = ['Comment']
( ) delimitMate_expand_cr = 0
( ) delimitMate_expand_inside_quotes = 0
( ) delimitMate_expand_space = 0
( ) delimitMate_insert_eol_marker = 1
( ) delimitMate_jump_expansion = 0
( ) delimitMate_left_delims = ['(', '{', '[']
( ) delimitMate_matchpairs = '(:),{:},[:]'
( ) delimitMate_matchpairs_list = [['(', ')'], ['{', '}'], ['[', ']']]
( ) delimitMate_nesting_quotes = []
( ) delimitMate_quotes = '" '' `'
( ) delimitMate_quotes_list = ['"', '''', '`']
( ) delimitMate_right_delims = [')', '}', ']']
( ) delimitMate_smart_matchpairs = '^\%(\w\|\!\|[£$]\|[^[:punct:][:space:]]\)'
( ) delimitMate_smart_quotes = '\%(\w\|[^[:punct:][:space:]"''`]\|\%(\\\\\)*\\\)\%#\|\%#\%(\w\|[^[:space:][:punct:]"''`]\)'
( ) delimitMate_tab2exit = 1

( ) g:delimitMate_excluded_ft = ''
--------------------

* Mappings:

i  )            @<Plug>delimitMate)
    Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 301
i  }            @<Plug>delimitMate}
    Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 301
i  ]            @<Plug>delimitMate]
    Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 301
i  (            @<Plug>delimitMate(
    Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 291
i  {            @<Plug>delimitMate{
    Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 291
i  [            @<Plug>delimitMate[
    Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 291
i  "            @<Plug>delimitMate"
    Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 313
i  '            @<Plug>delimitMate'
    Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 313
i  `            @<Plug>delimitMate`
    Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 313
i  <BS>         @<Plug>delimitMateBS
    Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 330
i  <S-BS>       @<Plug>delimitMateS-BS
    Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 339
i  <S-Tab>      @<Plug>delimitMateS-Tab
    Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 354
i  <C-G>g       @<Plug>delimitMateJumpMany
    Last set from ~/.vim/plugged/delimitmate/plugin/delimitMate.vim line 359
--------------------

* Showcase:

Open: (|)
Delete: |)
Exit: ()|

Open: {|}
Delete: |}
Exit: {}|

Open: [|]
Delete: |]
Exit: []|

Open: "|"
Delete: |"
Exit: ""|

Open: '|'
Delete: |'
Exit: ''|

Open: `|`
Delete: |`
Exit: ``|

 * Vim configuration:

filetype detection:ON  plugin:ON  indent:ON

--- Options ---
  background=dark     filetype=cpp        modified            syntax=cpp          ttymouse=sgr
  cindent             helplang=en         scroll=38           ttyfast             t_8u=
  comments=sO:* -,mO:*  ,exO:*/,s1:/*,mb:*,ex:*/,://
  fileencoding=utf-8
  fileencodings=ucs-bom,utf-8,default,latin1
  formatoptions=croql
  omnifunc=ccomplete#Complete
  runtimepath=~/.vim,~/.vim/plugged/delimitmate,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim82,/usr/local/share/vim/vimfiles/after,~/.vim/after

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Oct 24 2020 22:29:54)
macOS version
Included patches: 1-1900
Compiled by Homebrew
Huge version without GUI.  Features included (+) or not (-):
+acl               +cmdline_info      -farsi             +langmap           +mouse_sgr         +profile           +tag_binary        +virtualedit
+arabic            +comments          +file_in_path      +libcall           -mouse_sysmouse    -python            -tag_old_static    +visual
+autocmd           +conceal           +find_in_path      +linebreak         +mouse_urxvt       +python3           -tag_any_white     +visualextra
+autochdir         +cryptv            +float             +lispindent        +mouse_xterm       +quickfix          -tcl               +viminfo
-autoservername    +cscope            +folding           +listcmds          +multi_byte        +reltime           +termguicolors     +vreplace
-balloon_eval      +cursorbind        -footer            +localmap          +multi_lang        +rightleft         +terminal          +wildignore
+balloon_eval_term +cursorshape       +fork()            +lua               -mzscheme          +ruby              +terminfo          +wildmenu
-browse            +dialog_con        +gettext           +menu              +netbeans_intg     +scrollbind        +termresponse      +windows
++builtin_terms    +diff              -hangul_input      +mksession         +num64             +signs             +textobjects       +writebackup
+byte_offset       +digraphs          +iconv             +modify_fname      +packages          +smartindent       +textprop          -X11
+channel           -dnd               +insert_expand     +mouse             +path_extra        -sound             +timers            -xfontset
+cindent           -ebcdic            +ipv6              -mouseshape        +perl              +spell             +title             -xim
-clientserver      +emacs_tags        +job               +mouse_dec         +persistent_undo   +startuptime       -toolbar           -xpm
+clipboard         +eval              +jumplist          -mouse_gpm         +popupwin          +statusline        +user_commands     -xsmp
+cmdline_compl     +ex_extra          +keymap            -mouse_jsbterm     +postscript        -sun_workshop      +vartabs           -xterm_clipboard
+cmdline_hist      +extra_search      +lambda            +mouse_netterm     +printer           +syntax            +vertsplit         -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: clang   -L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib  -L/usr/local/lib -o vim        -lncurses -liconv -lintl -framework AppKit  -L/usr/local/opt/lua/lib -llua5.3 -mmacosx-version-min=10.15 -fstack-protector-strong -L/usr/local/lib  -L/usr/local/Cellar/perl/5.32.0/lib/perl5/5.32.0/darwin-thread-multi-2level/CORE -lperl -lm -lutil -lc  -L/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/config-3.9-darwin -lpython3.9 -framework CoreFoundation  -lruby.2.7     
--------------------
duhd1993 commented 3 years ago

I'm afraid that's by design. S-tab only moves you out when you at the closing. Try another plugin called auto-pairs. It works better in this aspect.