Coder Social home page Coder Social logo

Comments (8)

Raimondi avatar Raimondi commented on June 3, 2024

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.

hariton avatar hariton commented on June 3, 2024

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.

Raimondi avatar Raimondi commented on June 3, 2024

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.

hariton avatar hariton commented on June 3, 2024

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.

Raimondi avatar Raimondi commented on June 3, 2024

I can reproduce that and it seems really weird. I'll see what I can do about it.

Israel

from delimitmate.

Raimondi avatar Raimondi commented on June 3, 2024

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.

hariton avatar hariton commented on June 3, 2024

Now it works perfectly. Thanks, Israel!

from delimitmate.

Raimondi avatar Raimondi commented on June 3, 2024

I'm glad it does, I'll put it in the next release.

from delimitmate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.