mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-31 09:55:38 +01:00
vim keys
This commit is contained in:
parent
90a4a758d0
commit
414de1154d
3 changed files with 41 additions and 3 deletions
|
@ -6,6 +6,7 @@ in
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
imv
|
imv
|
||||||
w3m
|
w3m
|
||||||
|
urlview
|
||||||
];
|
];
|
||||||
services.mbsync.enable = true;
|
services.mbsync.enable = true;
|
||||||
programs = {
|
programs = {
|
||||||
|
@ -21,6 +22,7 @@ in
|
||||||
# Open the highlighted mailbox
|
# Open the highlighted mailbox
|
||||||
bind index,pager <space><return> sidebar-open
|
bind index,pager <space><return> sidebar-open
|
||||||
set mailcap_path = ${./mailcap}
|
set mailcap_path = ${./mailcap}
|
||||||
|
source ${./vim-keys.rc}
|
||||||
source ${./dracula.muttrc}
|
source ${./dracula.muttrc}
|
||||||
source ${./powerline.neomuttrc}
|
source ${./powerline.neomuttrc}
|
||||||
'';
|
'';
|
||||||
|
@ -140,6 +142,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
home.file.".urlview".text = ''
|
||||||
|
COMMAND google-chrome-stable %s &> /dev/null
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
text/plain; $EDITOR %s ;
|
text/plain; w3m -I %{charset} -T text/plain; copiousoutput;
|
||||||
text/html; w3m -I %{charset} -T text/html; copiousoutput;
|
text/html; w3m -I %{charset} -T text/html; copiousoutput;
|
||||||
image/*; setsid imv %s >/dev/null & ;
|
image/*; setsid imv %s >/dev/null & ;
|
||||||
video/*; setsid mpv --quiet %s >/dev/null &;
|
video/*; setsid mpv --quiet %s >/dev/null &;
|
||||||
|
|
35
users/rouven/modules/accounts/vim-keys.rc
Normal file
35
users/rouven/modules/accounts/vim-keys.rc
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
#------------------------------------------------------------
|
||||||
|
# Vi Key Bindings
|
||||||
|
#------------------------------------------------------------
|
||||||
|
|
||||||
|
# Moving around
|
||||||
|
bind attach,browser,index g noop
|
||||||
|
bind attach,browser,index gg first-entry
|
||||||
|
bind attach,browser,index G last-entry
|
||||||
|
bind pager g noop
|
||||||
|
bind pager gg top
|
||||||
|
bind pager G bottom
|
||||||
|
bind pager k previous-line
|
||||||
|
bind pager j next-line
|
||||||
|
|
||||||
|
# Scrolling
|
||||||
|
bind attach,browser,pager,index \CF next-page
|
||||||
|
bind attach,browser,pager,index \CB previous-page
|
||||||
|
bind attach,browser,pager,index \Cu half-up
|
||||||
|
bind attach,browser,pager,index \Cd half-down
|
||||||
|
bind browser,pager \Ce next-line
|
||||||
|
bind browser,pager \Cy previous-line
|
||||||
|
bind index \Ce next-line
|
||||||
|
bind index \Cy previous-line
|
||||||
|
|
||||||
|
bind pager,index d noop
|
||||||
|
bind pager,index dd delete-message
|
||||||
|
|
||||||
|
# Threads
|
||||||
|
bind browser,pager,index N search-opposite
|
||||||
|
bind pager,index dT delete-thread
|
||||||
|
bind pager,index dt delete-subthread
|
||||||
|
bind pager,index gt next-thread
|
||||||
|
bind pager,index gT previous-thread
|
||||||
|
bind index za collapse-thread
|
||||||
|
bind index zA collapse-all # Missing :folddisable/foldenable
|
Loading…
Add table
Reference in a new issue