{"id":13895034,"url":"https://github.com/fu5ha/i3-vim-nav","last_synced_at":"2025-03-16T08:32:12.646Z","repository":{"id":41538158,"uuid":"98711355","full_name":"fu5ha/i3-vim-nav","owner":"fu5ha","description":"Seamlessly navigate i3 windows and vim splits","archived":false,"fork":false,"pushed_at":"2020-09-23T18:23:34.000Z","size":1756,"stargazers_count":99,"open_issues_count":3,"forks_count":10,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-27T05:51:28.885Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fu5ha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-29T05:43:06.000Z","updated_at":"2024-07-01T07:52:45.000Z","dependencies_parsed_at":"2022-08-03T18:01:01.481Z","dependency_job_id":null,"html_url":"https://github.com/fu5ha/i3-vim-nav","commit_stats":null,"previous_names":["termhn/i3-vim-nav"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fu5ha%2Fi3-vim-nav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fu5ha%2Fi3-vim-nav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fu5ha%2Fi3-vim-nav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fu5ha%2Fi3-vim-nav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fu5ha","download_url":"https://codeload.github.com/fu5ha/i3-vim-nav/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806070,"owners_count":20350775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T18:01:56.901Z","updated_at":"2025-03-16T08:32:12.134Z","avatar_url":"https://github.com/fu5ha.png","language":"Go","readme":"# i3-vim-nav\nSeamlessly change focus between i3 windows and Vim splits using the same hotkey.\n\n# Installation\n\n## Dependencies\n\nThis depends on you having a couple packages installed. Most notably, `xdotool/libxdo`, the second of which should be installed as a dependency of the first. If you want to build the binary from source and you're on Fedora, you'll also need the `libxdo-devel` package. We also currently require you to be using a version of vim with either python or python3 support.\n\n## Vim plugin\n\nFirst, install the Vim plugin.\n \n### Using vim-plug\nIn your .vimrc (vim) or .config/nvim/init.vim (neovim):\n\n```vim\nPlug 'termhn/i3-vim-nav'\n\t\n\" i3 integration\nnnoremap \u003csilent\u003e \u003cc-l\u003e :call Focus('right', 'l')\u003cCR\u003e\nnnoremap \u003csilent\u003e \u003cc-h\u003e :call Focus('left', 'h')\u003cCR\u003e\nnnoremap \u003csilent\u003e \u003cc-k\u003e :call Focus('up', 'k')\u003cCR\u003e\nnnoremap \u003csilent\u003e \u003cc-j\u003e :call Focus('down', 'j')\u003cCR\u003e\n```\n\t\n### Using Pathogen\n1. cd ~/.vim/bundle\n2. git clone https://github.com/termhn/i3-vim-nav\n3. add the following to your .vimrc\n\n```vim\n\" i3 integration\nnnoremap \u003csilent\u003e \u003cc-l\u003e :call Focus('right', 'l')\u003cCR\u003e\nnnoremap \u003csilent\u003e \u003cc-h\u003e :call Focus('left', 'h')\u003cCR\u003e\nnnoremap \u003csilent\u003e \u003cc-k\u003e :call Focus('up', 'k')\u003cCR\u003e\nnnoremap \u003csilent\u003e \u003cc-j\u003e :call Focus('down', 'j')\u003cCR\u003e\n```\n\t\n## Binary\n\nNext, install the binary on your PATH. If you have go installed, this can be done simply by\n\n```\ngo get -u github.com/termhn/i3-vim-nav\n```\nIf not, you can symlink the binary from its downloaded directory (this changes based on which plugin manager you used and if you're using vim or neovim) into /usr/local/bin. For example, if you used Pathogen on default Vim, this would be:\n\n```\nln -s ~/.vim/bundle/i3-vim-nav/i3-vim-nav /usr/local/bin\n```\n\nThen, in your i3 config (adjust the path to the executable as necessary if you installed it differently). Feel free to change the key bind as you please.\n\n```\nbindsym --release $mod+h exec --no-startup-id \"i3-vim-nav h\"\nbindsym --release $mod+j exec --no-startup-id \"i3-vim-nav j\"\nbindsym --release $mod+k exec --no-startup-id \"i3-vim-nav k\"\nbindsym --release $mod+l exec --no-startup-id \"i3-vim-nav l\"\n```\n\nNote: I've gotten a bug where in some installations of i3, it seems to not respect user $PATH additions, even though it seems to recognize them in the variable. If it doesn't work when placed in a user $PATH directory, try hard-coding the path to the binary in the exec commands.\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffu5ha%2Fi3-vim-nav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffu5ha%2Fi3-vim-nav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffu5ha%2Fi3-vim-nav/lists"}