Coder Social home page Coder Social logo

vimlife_with_hammerspoon's Introduction

🍎 vimlife_with_hammerspoon πŸ”¨πŸ₯„

Config file and modules in this repository help to apply the key map anywhere in Typora and others. Enjoy your vimlife with Hammerspoon!

μ„€μ •νŒŒμΌ κ΅¬ν˜„κ³Όμ •μ€ λΈ”λ‘œκ·Έμ—μ„œ ν™•μΈν•˜μ‹€ 수 μžˆμŠ΅λ‹ˆλ‹€.

🍎 Feature

  1. Add English conversion to Esc key.
  • When you put 'esc' key, input source will be chagned to English if current input source is not English.
  • It will be helpful when usinge vim with non-English input source.
  1. 'vim_keymap mode' for text editor like typora, tistory..etc.
  • In fact, it's just a simulation of acting like a vim keymap in a text editor like typora.
  • You can turn on and off 'vim_keymap mode'. Default shorcut is {"cmd' + "shift"} + "space". You can customize it with ~/.hammerspoon/init.lua.
  • Marked by a menu icon, it is easy to see if the function is turned on.

List of keys supported

From To
h left
j down
k up
l right
x forward Delete (not cut)
w next word
b prev word
i insert mode
a append
o open below
p paste after
u undo
shift + d delete cursor to eol (not cut)
shift + a append at eol
shift + o open above
y + y copy one line
d + d delete one line (not cut)
d + w delete next word (not cut)
d + b delete prev word (not cut)

🍎 Install

If you are a skillful Hammerspoon user, just copy and paste the init.lua and modules.

If you are new to Hammerspoon, follow the process below.

1️⃣ Install hammerspoon first.

Case 1) With homebrew cask

brew install --cask hammerspoon

Case 2) With zip link

  1. Download Hammerspoon-x.x.xx.zip from this link
  2. Unzip downloaded file and move 'hammerspoon' file to Applications directory (ν•œκ΅­μ–΄λ‘œ μ‘μš© ν”„λ‘œκ·Έλž¨ 폴더)

2️⃣ Clone this repository && Execute init.sh

git clone https://github.com/humblEgo/vimlife_with_hammerspoon.git && cd vimlife_with_hammerspoon && ./init.sh

3️⃣ Execute Hammerspoon

Maybe you can find 'Hammerspoon' icon in launchpad. Click it.

Or just use Spotlight/Alfred.

In my case, execute hammerspoon with 'spotlight'. image

🍎 Contributor

I'd appreciate it if you could tell me about the modifications. Also, if you want to add a vim keymap, please feel free to send me PR or issue! :)

vimlife_with_hammerspoon's People

Contributors

humblego avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mertyn88

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.