benschaefer

mission vim

Nov 4th, 2025 (edited)
1,052
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.27 KB | None | 0 0
  1. I just remembered hyprland has Submaps now, so i made a small vim-like submap that you can enter with the keybind specified by $VimEnter like so:
  2.  
  3. $VimEnter = SUPER, I
  4.  
  5. source = vim_mode.conf
  6. So you can enter vim mode with Win+I
  7.  
  8. vim_mode.conf source:
  9.  
  10. # PLEASE SET $VimEnter before sourcing this file
  11. bind = $VimEnter, submap, vim
  12.  
  13. submap = vim
  14.  
  15. # Press escape to quit vim mode
  16. bind = , escape, submap, reset
  17.  
  18. # Useful binds
  19. bind = , q, exec, kitty
  20. bind = , d, killactive
  21. bind = , e, fullscreen
  22. bind = , f, togglefloating
  23.  
  24. # Screenshot
  25. bind = , s, exec, hyprshot $ScreenshotFlags -m output
  26. bind = SHIFT, s, exec, hyprshot $ScreenshotFlags -m region
  27.  
  28. # Move focus with "hjkl"
  29. bind = , h, movefocus, l
  30. bind = , j, movefocus, d
  31. bind = , k, movefocus, u
  32. bind = , l, movefocus, r
  33.  
  34. # Completely ignore anything else
  35. bind = , catchall, exec, echo
  36.  
  37. submap = reset
  38.  
  39.  
  40. # vimstyle bindinds
  41. Super HJKL move focus [x]
  42. Super Alt move window [x]
  43. Super CTRL alt resize [x]
  44. super shift move to deskpt
  45. Super Alt Shift mov window to desktop
  46.  
  47. # part of submap
  48. $ vim ~/.config/hypr/hyprland.conf
  49. input {
  50.   kb_options: caps:swapescape
  51. }
  52.  
  53. # us keyboard -- keybr lessons.
  54. sudo dpkg-reconfigure keyboard-configuration
  55. or edit the XKBLAYOUT line in /etc/default/keyboard.
Advertisement
Comments
  • wmgubuw
    2 days
    # text 0.12 KB | 0 0
    1. ⭐Make 3000$ with Swapzone Exchange Method
    2.  
    3. >>> docs.google.com/document/d/1IB4SkLZdU8hex0Kn-GyFHXSSV6kLUXhhOhxPwmEuuc4
Add Comment
Please, Sign In to add comment