Giter VIP home page Giter VIP logo

Comments (19)

Shougo avatar Shougo commented on June 24, 2024

It is feature. You want to complete non English characters, you must change g:neocomplcache#keyword_patterns variable.

Shougo/neocomplete.vim#316

from neocomplcache.vim.

naquad avatar naquad commented on June 24, 2024

As I understand variable is g:neocomplcache_keyword_patterns['_'].
I've set it to [\kА-Яа-я]\+ (which works: :echo match('тест', '[\kА-Яа-я]\+')) that didn't help :(
Any clues?

UPD: file was text (test.txt)

from neocomplcache.vim.

Shougo avatar Shougo commented on June 24, 2024

If you want to edit text filetype, you must change g:neocomplcache_keyword_patterns['text'].

from neocomplcache.vim.

naquad avatar naquad commented on June 24, 2024

that didn't help either :(

from neocomplcache.vim.

naquad avatar naquad commented on June 24, 2024

let g:neocomplcache_keyword_patterns['text']= '[\kа-яА-Я]\+' - not working

from neocomplcache.vim.

Shougo avatar Shougo commented on June 24, 2024

I think you must regenerate cache by :NeoComplCacheClean.

from neocomplcache.vim.

naquad avatar naquad commented on June 24, 2024

Didn't help.

from neocomplcache.vim.

Shougo avatar Shougo commented on June 24, 2024

It is same behavior on neocomplete?
I don't want to change neocomplcache. But if neocomplete, I will check it.

from neocomplcache.vim.

naquad avatar naquad commented on June 24, 2024

I don't have neocomplete and can't check it.

from neocomplcache.vim.

Shougo avatar Shougo commented on June 24, 2024

Oh, I get it.
I think it is feature. Because, neocomplete or neocomplcache ignore multibyte input.

from neocomplcache.vim.

Shougo avatar Shougo commented on June 24, 2024

It is neocomplete function. But neocomplcache is same.

function! neocomplete#is_multibyte_input(cur_text) "{{{
  return (exists('b:skk_on') && b:skk_on)
        \     || char2nr(split(a:cur_text, '\zs')[-1]) > 0x80
endfunction"}}}

from neocomplcache.vim.

Shougo avatar Shougo commented on June 24, 2024

You cannot complete full multibyte input candidates like тест.

from neocomplcache.vim.

naquad avatar naquad commented on June 24, 2024

Erm so basically it can't be fixed because you call that bug a feature? 0o

from neocomplcache.vim.

Shougo avatar Shougo commented on June 24, 2024

It is not bug. It is intended feature. Because, current GVim IM integration is buggy.
Auto completion should not work on IM input. So, neocomplete/neocomplcache ignores multibyte input.

from neocomplcache.vim.

naquad avatar naquad commented on June 24, 2024

Could you please add some option to turn this off? like g:neocomplcache_force_multibite or something

from neocomplcache.vim.

Shougo avatar Shougo commented on June 24, 2024

I don't want to change neocomplcache code. Pull request is wellcome.

from neocomplcache.vim.

Shougo avatar Shougo commented on June 24, 2024

I think the name should beg:neocomplcache_enable_multibyte_completion.

from neocomplcache.vim.

naquad avatar naquad commented on June 24, 2024

https://github.com/naquad/neocomplcache.vim/commit/77d518050489e04a4197faf75f74405b8123b200

I've called it g:neocomplcache_allow_multibyte, but that can be changed. In any case that causes some unclear issue I can't figure out: completion looses last byte, i.e. was тест and suggestion is тес. Trying to figure it out.

from neocomplcache.vim.

Shougo avatar Shougo commented on June 24, 2024

Well, neocomplcache has multibyte input bugs. Can you check it?

from neocomplcache.vim.

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.