Vim Dvorak keybindings (rebindings :)

后端 未结 7 1210
野的像风
野的像风 2020-12-12 12:13

Although I played with it before, I\'m finally starting to use Dvorak (Simplified) regularly. I\'ve been in a steady relationship with Vim for several years now, and I\'m tr

7条回答
  •  失恋的感觉
    2020-12-12 12:45

    My rebindings:

    noremap h h
    noremap t j
    noremap n k
    noremap s l
    noremap j t
    noremap l n
    noremap k s
    noremap J T
    noremap L N
    noremap K S
    noremap T J
    noremap N L
    noremap S K
    

    Notes:

    • In qwert, vi has to use 'h', because vi doesn't want to use ';' a non-letter. But in dvroak, we have 's', so why not take this advantage?
    • vi uses Caps for relative actions. This is a good design philosophy. So I try to conform this.

    Meanings:

    n (Next) -> l (Left) -- "What's left?" resembles "What's next?"
    s (Substitute) -> k (Kill then insert)
    t (jump Till) -> j (Jump till)
    N, S, T are similar.
    
    J (Join lines) -> T (make lines Together)
    K (Keyword) -> S (Subject)
    L[count] (Line count) -> N (line Number)
    

    B.T.W. L itself goes to the last line, and N is the last letter of fin. (Thanks for tenzu to point out this.)

    P.S. I have used these rebindings for a while. Now I does not use it in vim. I just use the default ones.

提交回复
热议问题