hardtime.nvim Break bad habits, master Vim motions Features • Installation • Usage • Configuration RestrictKeys.mov Hints.mov ✨ Features Block repeated keys within a short period of time Provide hints for faster Vim motion Get report of your most common bad habits 👍🏻 Recommended workflow Instead of only relying on hjkl , arrow keys and mouse, you should: Use relative jump (eg: 5j 12- ) for vertical movement within the screen. Use CTRL-U CTRL-D CTRL-B CTRL-F gg G for vertical movement outside the screen. Use word-motion ( w W b B e E ge gE ) for short-distance horizontal movement. Use f F t T , ; 0 ^ $ for medium to long-distance horizontal movement. Use operator + motion/text-object (eg: ci{ y5j dap ) whenever possible. Use % and square bracket commands (see :h [ ) to jump between brackets. Learn more in this blog post ⚡ Requirements 📦 Installation Install via your favorite package manager. { " m4xshen/hardtime.nvim " , lazy = false , dependencies = { " MunifTanjim/nui.nvim " }, opts = {}, }, Setup the plugin in your init.lua . This step is not needed with lazy.nvim if opts is set as above. require ( " hardtime " ). setup () If you want to see the hint messages in insert and visual mode, set the 'showmode' to false. But if you want to see both the hint message and current mode you can setup with one of the following methods: Display the mode on status line and set 'showmode' to false. You can do this with some statusline plugin such as lualine.nvim. to false. You can do this with some statusline plugin such as lualine.nvim. Set the 'cmdheight' to 2 so that the hint message won't be replaced by mode message. to 2 so that the hint message won't be replaced by mode message. Use nvim-notify to display hint messages on the right top corner instead of commandline. 🚀 Usage Hardtime is enabled by default. You can change its state with the following commands: :Hardtime enable enable Hardtime enable Hardtime :Hardtime disable disable Hardtime disable Hardtime :Hardtime toggle...
First seen: 2025-05-18 14:51
Last seen: 2025-05-19 04:53