Comments (5)
What exactly do you mean? Key bindings, commands, or what?
from vico.
The movement keys, i.e
noremap H ^
noremap L g_
Basicly to create a .vimrc
-like file that lets you create custom keys, commands and whatnot
from vico.
Gotcha. You can do this right now, but you have to use Nu:
(let (map (ViMap normalMap))
(map map:"H" to:"^")
(map map:"L" to:"g_))
Notably, g_ isn't implemented, so you'll have to implement it. You can also map to Nu expressions:
((ViMap normalMap) map:"g_" toExpression:(do ()
; code for what to do on g_
))
Lastly, you can map recursively:
((ViMap normalMap) map:"H" to:"^" recursively:t scope:nil)
I can look into exposing these maps via actual map commands, however.
from vico.
Actually I think you can define the command(s) yourself using ExMap:
((ExMap defaultMap) define:"map" syntax:"E" as:(do (command)
(let (partsArray ((command arg) componentsSeparatedByString:" "))
(if (= (partsArray length) 2)
(let (partsList (partsArray list))
((ViMap normalMap) map:(head partsList) to:(head (tail partsList))))
(else
; throw an exception or something
))))
Warning: not tested hehe. But that should more or less do it.
from vico.
Great thanks! I'll look into that
from vico.
Related Issues (20)
- Autocomplete doesn't correct camel casing mid-word. HOT 1
- Snippets ruin autocomplete selection. HOT 1
- Ability to theme Flat. HOT 8
- Inline error highlighting hook HOT 8
- Fast Full Screen Mode. HOT 2
- Entering a command in fullscreen mode then moving to another space makes the vico space inaccessible HOT 1
- Tab to complete interferes with snippet expansion. HOT 2
- Project Bookmarks HOT 4
- Store "File Explorer" and "Symbol List" size and state per "project" HOT 3
- Crashes when creating new file from file explorer HOT 3
- Retina images for tabs and symbols. HOT 1
- python through :setfiletype HOT 3
- EXC_BAD_ACCESS / KERN_INVALID_ADDRESS at 0x0000000100001180 HOT 1
- Enter causes app to crash at specific line in ruby HOT 4
- File browser icons are broken when compiling on Yosemite. HOT 1
- R (replace mode) not supported HOT 1
- Problems compiling `swiftly-forward` branch. HOT 4
- Can't load Bundles in Preferences
- Backup .dmg, help docs & APIs from the way back machine. HOT 6
- Revive Vico Editor HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vico.