vim remapping the hjkl

前端 未结 3 1577
自闭症患者
自闭症患者 2020-12-31 01:35

I am trying to map the letter hjkl to jkl in my .vimrc file so that I can have my fingers the way they always are on the keyboard, whi

相关标签:
3条回答
  • 2020-12-31 01:52

    Check out :help noremap. This will prevent maps from recursively being mapped.

    0 讨论(0)
  • 2020-12-31 01:56

    use noremap:

    noremap ; l
    noremap l k
    noremap k j
    noremap j h
    
    0 讨论(0)
  • 2020-12-31 02:10

    As a follow-up to @Lie Ryan's comment, I've written this Answer on a similar question

    Basically, you might want to consider keeping:

    j & k = up & down

    since those are so primary

    But then also consider:

    l & ; = left & right

    0 讨论(0)
提交回复
热议问题