Skip to main content
4 votes
Accepted

Setting to prevent <c-h> to erase text

Thanks to your output of verbose inoremap <c-h> it's really easy to see what is happening here! You are using the auto-pairs plug-in and it's installing buffer-local mappings for the bracket ...
filbranden's user avatar
  • 29k
3 votes

Search and replace unicode character codes with actual characters

I believe the problem is that Vim not opening the file using the right encoding. Your file is in encoding cp1252 but Vim doesn't detect it and guess utf-8. I would propose to open the file with the ++...
Vivian De Smedt's user avatar
2 votes
Accepted

Vim's "ga" and utf-8 characters: What is <M-x>?

<M-x> is the notation for Altx on a PC or Optionx on a Mac. I understand that you would like to enter the ∩ ("cap") character easily, ideally using Altx. I doubt that it is possible. ...
Vivian De Smedt's user avatar
1 vote

Search and replace unicode character codes with actual characters

I actually prefer escorting to a python one-liner, using :py3do (if you're on a older version of vim you might need :pydo) " transforms 'samuel i<81>ngel' to 'samuel i\x81ngel " Python ...
Hoblovski's user avatar
  • 313
1 vote

Search and replace unicode character codes with actual characters

I would propose you: :s/\([\x80-\xFF]\)/\='0x'.printf('%02x', char2nr(submatch(1)))/g
Vivian De Smedt's user avatar
1 vote
Accepted

Case insensitive sorting doesn't work for non ascii characters

Since Vim release 8.2.0988, Vim supports sorting by the collation. That means, it uses your currently configured locale ($LC_COLLATE). Using the collation order also means, there are specific rules ...
Christian Brabandt's user avatar
1 vote
Accepted

Can't Copy Non-ASCII Characters

Solution Setting LANG to tr_TR.UTF-8 did solve the issue. export LANG=tr_TR.UTF-8 Problem Turns out LANG being empty was the root cause: > locale LANG="" LC_COLLATE="C" ...
ogirginc's user avatar
  • 345
1 vote

What is the green <92> that's in my file?

This is a win-1252 quote character which means you're not using the correct encoding. See Unicode characters 2018 and 2019. The encoding is also called CP1252. In most other encodings, characters ...
Alexis Wilke's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible