Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trouble with delimitemate and latexsuite #48

Closed
cartazio opened this issue Nov 15, 2010 · 7 comments
Closed

trouble with delimitemate and latexsuite #48

cartazio opened this issue Nov 15, 2010 · 7 comments

Comments

@cartazio
Copy link

hello, I can't seem to get delimitmate to work in tandem with latex suite, but i've had it work elsewhere when not in tex files. I can't tell if its a bug on one side or another, or perhaps just an unforseen interaction bteween the two, how would i determine this?

@Raimondi
Copy link
Owner

What is it that doesn't work?

@cartazio
Copy link
Author

the paren completion.
Namely, if in a .tex file i type "(", theres no completion, and I think it may be some interaction with latex-suite because when i type "()" it adds "<++>" afterwards. I've stared at the documentation for a bit and tried various things, and my only guess is that these two plugins don't interact well, but I'm new to (mac)vim so i'm not sure how to make it work out properly.

Does this clarify?
thanks
-Carter

@Raimondi
Copy link
Owner

Run :DelimitMateTest from the buffer where the feature is broken and post the output here.

@cartazio
Copy link
Author

(reformatted slightly for hopefully better readability)

delimitMate Report

  • Options: ( - ) unset, (g) global, (b) buffer

( - ) delimitMate_apostrophes = ''

( - ) delimitMate_autoclose = 1

( - ) delimitMate_balance_matchpairs = 0

( - ) delimitMate_excluded_ft = ''

( - ) delimitMate_excluded_regions = 'Comment'

( - ) delimitMate_expand_cr = 0

( - ) delimitMate_expand_space = 0

( - ) delimitMate_matchpairs = '(:),{:},[:]'

( - ) delimitMate_nesting_quotes = []

( - ) delimitMate_quotes = '" '' `'

( - ) delimitMate_smart_matchpairs = 1

( - ) delimitMate_smart_quotes = 1


  • Mappings:

    ): is not set:

i ) * =23_LookupCharacter(")")

Last set from ~/.vim/bundle/vim-latex-1.8.23-20101027-r1112/plugin/imaps.vim

}: is not set:

i } * =23_LookupCharacter("}")

Last set from ~/.vim/bundle/vim-latex-1.8.23-20101027-r1112/plugin/imaps.vim

]: is not set:

i ] * =23_LookupCharacter("]")

Last set from ~/.vim/bundle/vim-latex-1.8.23-20101027-r1112/plugin/imaps.vim

(: is not set:

i ( * =23_LookupCharacter("(")

Last set from ~/.vim/bundle/vim-latex-1.8.23-20101027-r1112/plugin/imaps.vim

{: is not set:

i { * =23_LookupCharacter("{")

Last set from ~/.vim/bundle/vim-latex-1.8.23-20101027-r1112/plugin/imaps.vim

[: is not set:

i [ * =23_LookupCharacter("[")

Last set from ~/.vim/bundle/vim-latex-1.8.23-20101027-r1112/plugin/imaps.vim

": is not set:

i " *@"=41_TexQuotes()

Last set from ~/.vim/bundle/vim-latex-1.8.23-20101027-r1112/ftplugin/latex-suite/main.vim

i " * =23_LookupCharacter(""")

Last set from ~/.vim/bundle/vim-latex-1.8.23-20101027-r1112/plugin/imaps.vim

': is not set:

i ' * =23_LookupCharacter("'")

Last set from ~/.vim/bundle/vim-latex-1.8.23-20101027-r1112/plugin/imaps.vim

`: is not set:

i * <C-R>=<SNR>23_LookupCharacter("")

Last set from ~/.vim/bundle/vim-latex-1.8.23-20101027-r1112/plugin/imaps.vim

: is not set:

i *@=41_SmartBS(41_SmartBS_pat())

Last set from ~/.vim/bundle/vim-latex-1.8.23-20101027-r1112/ftplugin/latex-suite/main.vim

: is not set:

i * =BackwardsSnippet()

Last set from ~/.vim/bundle/snipmate/after/plugin/snipMate.vim

  • Showcase:

Open: (|

Delete: |

Exit: (|)<++>

Space: ( |

Delete space: (|

Car return: (
|

Delete car return: (|

Open: {|

Delete: |

Exit: {|}<++>

Space: { |

Delete space: {|

Car return: {

|
|
|

Open: [|

Delete: |

Exit: [|]<++>

Space: [ |

Delete space: [|

Car return: [

|
|
|

Open: ``|

Delete: '|

Exit: ''``|

Space: '' |

Delete space: ``|

Car return: ''

|
|
|

Open: '|

Delete: |

Exit: ''|

Space: ' |

Delete space: '|

Car return: '

|
|

Open: \Big|

Delete: |

Exit: ``|

Space: ` |

Delete space: \Big|

Car return: `

|
|
|

@cartazio
Copy link
Author

https://gist.github.com/701311 is a more readable version

@Raimondi
Copy link
Owner

delimitMate mappings conflict with latex-suite's and I have no idea what they do, so I can't give you a solution to make them work together.

@cartazio
Copy link
Author

oh well, thanks!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants