Welcome to Mini Harpoon! This plugin enhances your Vim navigation experience by allowing you to save and quickly navigate to multiple locations within your projects.
The plugin is taking inspiration from the ThePrimeagen/harpoon plugin but it is written in Vim script which makes it compatible with both NVIM
and VIM
!
To install Mini Harpoon, simply add the following line to your Vim configuration file using your preferred plugin manager:
'YanivZalach/mini-harpoon'
-
Example using Vim-Plug:
Plug 'YanivZalach/mini-harpoon'
Then, reload your Vim configuration and run
:PlugInstall
.
- Save your current file with ease using
:SaveLocation
. - Navigate to saved locations quickly with
:GoToLocation {index}
. - Open the file containing saved locations in a split window with
:OpenLocationFile
.
- Saving file with ease
" Adding Location to min-harpoon
nnoremap <leader>ha :SaveLocation<CR>
- Going to wonted location
" Going to location by index (start from 1 - easer with the keyboard)
nnoremap <leader>hg :GoToLocation<space>
- Opening the editable file list
"Opening the file list
nnoremap <leader>hj :OpenLocationFile<CR>
- Opening the first 4 locations
" Going to specific location
nnoremap <leader>h1 :GoToLocation 1<CR>
nnoremap <leader>h2 :GoToLocation 2<CR>
nnoremap <leader>h3 :GoToLocation 3<CR>
nnoremap <leader>h4 :GoToLocation 4<CR>
For detailed instructions and usage information, refer to the documentation file.
This plugin is distributed under the MIT License. See the LICENSE file for details.
We welcome contributions! If you have any ideas or improvements, feel free to open an issue or submit a pull request.
If you find this plugin helpful, consider starring the repository and spreading the word!
Happy navigating! 🌟