macvim-dev / macvim-dev/macvim

Using dead keys acute and grave/backtick in normal mode doesn't work

オープン
#1,519 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Input
主要言語
Vim Script
スター
7.9k
フォーク
691
PR マージ指標
30日以内にマージされた PR はありません

説明

Steps to reproduce

I'm using macOS with a German locale and a German keyboard where ´ (acute) is a dead key and ` (grave/backtick) is produced by hitting shift and ´.

It easier to type ´ as it does not require the shift key. Thus in my .vimrc, I have defined: nmap ´ `

This works fine in Terminal of macOS!

In MacVim, neither ´ nor ` works.

For vowels, I got it working with mappings à la:

nmap ´á `a
nmap ´Á `A
nmap `à `a
nmap `À `A

But this does not work for consonants like b. The error is raised: E78: Unknown mark

Expected behaviour

Both ´b and `b should jump to the mark.

Version of Vim and architecture

9.1.727

Environment

OS: Sequoia, arm64
Terminal: macOS Terminal
$TERM: xterm-256color
$SHELL: /bin/zsh

How MacVim was installed

Homebrew

Logs and stack traces

No response

Vim configuration where issue is reproducable

No response

Issue has been tested with given configuration
  • by running MacVim.app from GUI macOS interface
  • by running vim/gvim/etc installed by MacVim
  • by running other versions of vim (e.g. /usr/bin/vim)
Issue has been tested with no configuration
  • by running mvim --clean (or gvim, supplied by MacVim distribution)
  • by running vim --clean (in terminal, supplied by MacVim distribution)
  • by running vim --clean (in terminal, other suppliers, e.g. /usr/bin/vim)
Other conditions
  • The both Homebrew packages "vim" and "macvim" are installed

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず MacVim.app で mvim --clean を使って問題を再現し、次に、文書化されたアキュートおよびグレイヴのマッピングを使って macOS Terminal で vim --clean と比較します。MacVim によるデッドキー入力とノーマルモードのマーク移動の処理を追跡します。´b と `b の両方が E78 なしで対応するマークへジャンプすれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
macos, vim
領域
desktop-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。