Comments (8)
Can you tell me how to get there? I'd like to try to fix it, but I find the documentation around iminsert a bit confusing.
from delimitmate.
I'll try. Directory /usr/share/vim/vim72/keymap contains keymap-files, which we can invoke in such a way:
set keymap=hebrew_utf-8
or
set keymap=russian-jcukenwin
etc (and this will change the variable b: keymap_name).
To switch to this national keymap:
set iminsert=1 (by default iminsert=0)
or using default hotkey: Ctrl + ^ (that do the same)
Then we can see that instead of some national letters we get "pairs" (delimitMate overrides maps from keymap).
from delimitmate.
I can't reproduce it, I follow your instructions and then :lmap to see which mappings use "pairs" but they work on my end.
I moved my ~/.vim folder somewhere else and sourced delimitMate.vim, but the national chars still work. Could it be that some setting in your vimrc is messing things up? have you tried moving your ~/.vim folder?
from delimitmate.
Raimondi, I found one interesting thing. First, I moved both ~/.vim and ~/.vimrb away. Then:
vim test01.txt
:source delimitMate.vim
:set keymap=russian-jcukenwin
:set iminsert=1
Start typing:
это(это)
Wonderfull!! It's what we need!
Well, second try:
vim test02.txt
:set keymap=russian-jcukenwin
:source delimitMate.vim
:set iminsert=1
Let's typing:
'то('то')'
And this is our oldie...
(the two cases differ in the order of 'set keymap' and 'source' calls)
from delimitmate.
I can reproduce that and it seems really weird. I'll see what I can do about it.
Israel
from delimitmate.
Can you apply this patch to the plug-in and try again:
--- a/plugin/delimitMate.vim
+++ b/plugin/delimitMate.vim
@@ -744,10 +744,13 @@ function! s:DelimitMateDo() "{{{
try
"echomsg "included"
let save_cpo = &cpo
+ let save_keymap = &keymap
+ set keymap=
set cpo&vim
call s:Init()
finally
let &cpo = save_cpo
+ let &keymap = save_keymap
endtry
endfunction "}}}
"}}}
from delimitmate.
Now it works perfectly. Thanks, Israel!
from delimitmate.
I'm glad it does, I'll put it in the next release.
from delimitmate.
Related Issues (20)
- Don't add semicolon for certain match
- Handle escaped quotes
- Startup errors on 8.2.1300 HOT 19
- error when starting vim with delimMate HOT 5
- not working HOT 1
- delimitMate not working with terryma/vim-multiple-cursors HOT 3
- Support for typographic smart quotes.“”‘’ HOT 1
- <S-Tab> doesn't work HOT 1
- CTRL-W won't work
- Can I use `begin` `end` as matchpairs? HOT 1
- Can't disable smartquotes HOT 1
- Backspace key removes extra space HOT 8
- Stop the matching pair from jumping to cursor position after deleting a line
- expand_cr causing newlines when completing in coq.nvim
- add support for python f-strings HOT 2
- Clash with COC auto import
- Expand CR not working for nested quotes
- Add support for combining with other plugins that map <CR>
- Inserting the double-quotes hangs vim completely HOT 5
- Arrow functions indentation with K & R style breaks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delimitmate.