Git Product home page Git Product logo

Comments (9)

kien avatar kien commented on May 30, 2024

Works fine for me on Linux and Windows, haven't tried OSX yet:

accented

What Vim version are you using? If it's 7.0 or 7.1 then you'll just need to upgrade Vim.

from ctrlp.vim.

Janiczek avatar Janiczek commented on May 30, 2024

I'm using Vim v7.3.353 on OSX.
I have copied my .vim and .vimrc to my Linux machine and it works there:
linux

from ctrlp.vim.

kien avatar kien commented on May 30, 2024

Does it work if you have this in your .vimrc?

set termencoding=utf-8
set encoding=utf-8

It works for me on OSX (oddly only after a system restart):

OSX

from ctrlp.vim.

Janiczek avatar Janiczek commented on May 30, 2024

Added it to my .vimrc, but no, still nothing, even after system restart.

from ctrlp.vim.

kien avatar kien commented on May 30, 2024

It looks like the problem is with Vim's globpath() not expanding the path correctly when the path has one of those characters. I'm not 100% sure, though.

I think you'll have to use the g:ctrlp_user_command option to get the list of files instead. You can add this to your .vimrc:

let g:ctrlp_user_command = 'find %s -type f'

Or this to filter files that you don't want to be listed:

let g:ctrlp_user_command = "find %s -type f | egrep -v '\.(swp|swo|log|gitkep|keepme|so|o)$'"

Let me know how that works.

from ctrlp.vim.

Janiczek avatar Janiczek commented on May 30, 2024

That works, thank you!

I noticed just now that it's even on the homepage:
let g:ctrlp_user_command = 'find %s -type f' " MacOSX/Linux

Oh well. :)

from ctrlp.vim.

marttt avatar marttt commented on May 30, 2024

Hi,
I'm encountering a similar problem in Linux terminal: I can't type any of the Estonian umlaut characters ä, ö, ü, õ on the Ctrl-P command line.

Typing ä points the cursor to the first, topmost match in Ctrl-P window.
Typing ü points cursor to the last match at the bottom.
Typing ö does nothing.
Typing õ enters gUl to the command line.

I tried all the settings described above, including multiple restarts. It looks as though Ctrl-P doesn't recognize my Estonian keyboard. Thanks for any help!

from ctrlp.vim.

kien avatar kien commented on May 30, 2024

@marttt: that's a different issue and it's a known limitation of the ctrlp prompt. But if you update ctrlp to the latest, you can set the g:ctrlp_key_loop option to allow typing of accented characters. See :help g:ctrlp_key_loop for more details.

from ctrlp.vim.

marttt avatar marttt commented on May 30, 2024

@kien: Yes, I had just found and applied the patch a second ago. This works brilliantly, thanks very much!

from ctrlp.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.