Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I had this simple plugin to disable a mostly keys that lead to anti-stuff between vim and neovim (yes I use both) and I have unmapped j k now.
Folds might be helpful, they also allow to jump to the next fold with zj, depending on how you setup the folds and what kind of file you are editing, they might just do the trick. (and have a look at https://github.com/kevinhwang91/nvim-ufo which makes folds much nicer imho)
Also not that useful for text files I think, but I sometimes use something like https://github.com/preservim/tagbar to get an overview of the structure of the file, especially in unfamiliar documents. This is a quite old plugin of this nature that depends on ctags, there are more modern plugins that depend on treesitter. However for C++, I found the treesitter based bar plugins not as helpful, they need language specific settings, and the ones I tried didn't have them for C++ at the time.
I installed hop but can't get used to it and just hold j/k/W/B as someone commented higher. Btw, for plaintext files this can be useful, even without hydra: https://github.com/anuvyklack/hydra.nvim/wiki/Quick-words
This is what I do. I think searches are very reliable, keeps your eyes on the target and can be pretty much always used for vertical movements. The only thing I do is augment the regular search with something like https://github.com/woosaaahh/sj.nvim , so if I search for a target that has a lot of occurrences in the file, I can get to it directly.
I recommend vim-be-good for practicing this
Related posts
- What are some plugins that you can't live without?
- What IDEA or Vscode feature/function you want to have in neovim eco-system?
- Editing init.lua with lua_ls on gives "Undefined global : vim" ?
- Set it and forget it plugins?
- mini.files - navigate and manipulate file system (with column view and editing text)