Skip to content

Commit 3bc90f5

Browse files
committed
Added elinks.conf with some vim keybindings
1 parent d7506d6 commit 3bc90f5

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

.elinks/elinks.conf

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
## ELinks 0.13.GIT configuration file
2+
3+
## This is ELinks configuration file. You can edit it manually,
4+
## if you wish so; this file is edited by ELinks when you save
5+
## options through UI, however only option values will be altered
6+
## and missing options will be added at the end of file; if option
7+
## is not written in this file, but in some file included from it,
8+
## it is NOT counted as missing. Note that all your formatting,
9+
## own comments and so on will be kept as-is.
10+
##
11+
## Obviously, if you don't like what ELinks is going to do with
12+
## this file, you can change it by altering the config.saving_style
13+
## option. Come on, aren't we friendly guys after all?
14+
15+
16+
17+
##############################
18+
# Automatically saved options
19+
#
20+
21+
## config
22+
# Configuration handling options.
23+
24+
## config.saving_style_w [0|1]
25+
# This is internal option used when displaying a warning about obsolete
26+
# config.saving_style. You shouldn't touch it.
27+
set config.saving_style_w = 1
28+
29+
30+
## ui
31+
# User interface options.
32+
33+
## ui.language <language>
34+
# Language of user interface. 'System' means that the language will be
35+
# extracted from the environment dynamically.
36+
set ui.language = "System"
37+
38+
# KEY BINDINGS
39+
# http://ruderich.org/simon/config/elinks
40+
# `man elinkskeys`
41+
42+
# Move bindings like in Vim: hjkl.
43+
bind "main" "h" = "move-cursor-left"
44+
bind "main" "j" = "move-cursor-down"
45+
bind "main" "k" = "move-cursor-up"
46+
bind "main" "l" = "move-cursor-right"
47+
# Allow easy moving to next link. Not really like in Vim, but similar.
48+
bind "main" "K" = "move-link-prev"
49+
bind "main" "J" = "move-link-next"
50+
51+
bind "main" "i" = "keybinding-manager"
52+
53+
# Move up/down like in mutt.
54+
bind "main" "-" = "move-page-up"
55+
bind "main" "Space" = "move-page-down"
56+
57+
# Move to the start and end of the document similar to Vim.
58+
bind "main" "g" = "move-document-start"
59+
bind "main" "G" = "move-document-end"
60+
61+
# Reload the page.
62+
bind "main" "r" = "reload"
63+
64+
# Open "Go to URL" dialog.
65+
bind "main" "o" = "goto-url"
66+
bind "main" "O" = "goto-url-current"
67+
68+
# Open a new tab in background.
69+
bind "main" "Alt-t" = "open-new-tab-in-background"
70+
71+
# Close a tab, similar to Vim's :q.
72+
bind "main" "q" = "tab-close"
73+
74+
# Don't use "c" to close a tab as it's to dangerous for me; too similar to
75+
# screen's "c" which creates a new window.
76+
bind "main" "c" = "none"
77+
78+
# Unbind Q (quit without warning) as it's too dangerous.
79+
bind "main" "Q" = "none"

0 commit comments

Comments
 (0)