Closed guotsuan closed 12 years ago
I can't reproduce that, can you run :DelimitMateTest
from the problematic buffer and paste the output here?
Thank you
delimitMate Report
==================
* Options: ( ) default, (g) global, (b) buffer
( ) delimitMate_apostrophes = ''
(g) delimitMate_autoclose = 1
(g) delimitMate_balance_matchpairs = 1
(g) delimitMate_excluded_ft = 'mail,txt,text'
(g) delimitMate_excluded_regions = 'Comment,String'
(g) delimitMate_expand_cr = 1
(g) delimitMate_expand_space = 1
( ) delimitMate_matchpairs = '(:),{:},[:]'
( ) delimitMate_nesting_quotes = []
( ) delimitMate_quotes = '" '' `'
(g) delimitMate_smart_matchpairs = '^\%(\w\|\!\|£\|\$\|_\|["'']\s*\S\)'
(g) delimitMate_smart_quotes = 1
--------------------
* Mappings:
All mappings were set-up.
--------------------
* Showcase:
Open: (|)
Delete: |
Exit: ()|
Space: ( | )
Delete space: (|)
Car return: (|)
Delete car return: |
Open: {|}
Delete: |
Exit: {}|
Space: { | }
Delete space: {|}
Car return: {|}
Delete car return: |
Open: [|]
Delete: |
Exit: []|
Space: [ | ]
Delete space: [|]
Car return: [|]
Delete car return: |
Open: "|
Delete: |
Exit: "|"
Space: " |
Delete space: "|
Car return: "
|
Delete car return: "|
Open: '|
Delete: |
Exit: '|'
Space: ' |
Delete space: '|
Car return: '
|
Delete car return: '|
Open: `|
Delete: |
Exit: `|`
Space: ` |
Delete space: `|
Car return: `
|
Delete car return: `|
--- Options ---
autochdir filetype=python modified showtabline=2 visualbell
autoindent foldcolumn=4 mouse=a smarttab wildmenu
background=dark foldmethod=marker pastetoggle=<F11> softtabstop=4 window=52
clipboard=unnamed helplang=en ruler nostartofline t_vb=
commentstring=#%s ignorecase scroll=25 suffixesadd=.py
cursorcolumn laststatus=2 shiftwidth=4 syntax=python
cursorline lazyredraw showcmd tabstop=4
expandtab list showmatch textwidth=80
backspace=indent,eol,start
cinkeys=0{,0},0),:,!^F,o,O,e
comments=s1:/*,mb:*,ex:*/,://,b:#,:XCOMM,n:>,fb:-
completefunc=neocomplcache#manual_complete
completeopt=preview,menuone
fileencoding=utf-8
fileencodings=utf-8,prc,taiwan,enc-cn,enc-tw,gbk,gb2312,big5,ansi
foldopen=block,hor,mark,percent,quickfix,tag
grepprg=grep -nH $*
guitablabel=%{GuiTabLabel()}
include=s*\(from\|import\)
includeexpr=substitute(v:fname,'\.','/','g')
indentexpr=GetPythonIndent(v:lnum)
indentkeys=0{,0},:,!^F,o,O,e,<:>,=elif,=except
iskeyword=@,48-57,_,192-255,_,$,@,%,#
listchars=tab:>-,trail:-
omnifunc=pythoncomplete#Complete
runtimepath=~/.vim,~/.vim/bundle/delimitMate,~/.vim/bundle/neocomplcache,~/.vim/bundle/neocomplcache-snippets-complete,~/.vim/bundle/nerdcommenter,~/.vim/bundle/vim-fuzzyfinder,~/.vim/bundle/vim-gq,~/.vim/bundle/vim-indent-guides,~/.vim/bundle/vim-irblack,~/.vim/bundle/vim-l9,~/.vim/bundle/vim-lua-ftplugin,~/.vim/bundle/vim-surround,~/.vim/bundle/vim-unimpaired,/usr/share/vim/vimfiles,/usr/share/vim/vim73,/usr/share/vim/vimfiles/after,~/.vim/after
statusline=%<%f%h%m%r%=%-20.(line=%l col=%c%V totlin=%L%) %h%m%r%=%-40(bytval=0x%B,%n%Y%)%P
suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc
tabline=%!MyTabLine()
termencoding=utf-8
wildignore=*.dll,*.o,*.obj,*.bak,*.exe,*.pyc,
filetype detection:ON plugin:ON indent:ON
--------------------
I just tested it again. I think the reason may be the conflicts between plugins. When I only use delimitMate plugin, there are no problems. I will to investiage more.
I found it. It has confilcts with plugin "neocomplcache", if they are both there, then the error will apprear. I have no enough knowledge to go deep.
I'm sorry but I won't troubleshot the conflict. I'll just close the plugin and if somebody comes with a reasonable fix I'll merge it.
I'm totally understand. The good news is that After I updated the plugins and the conflicts dispeared.
Great! :)
git version
with option: let delimitMate_autoclose=1 let delimitMate_expand_space = 1 let delimitMate_expand_cr = 1 let delimitMate_smart_quotes = 1 let delimitMate_balance_matchpairs = 1 let delimitMate_smartmatchpairs='^\%(\w|!|£|\$||["'']\s*\S)' let delimitMate_excluded_regions = "Comment,String" let delimitMate_excluded_ft = "mail,txt,text
I thought that in comment area, for exmaple in test.py after # symbol, if you press three "{" three time, you get "{{{}" It probably should be only "{{{"