{"id":19504111,"url":"https://github.com/ayoubcoding21/vimrc","last_synced_at":"2025-02-25T21:45:23.004Z","repository":{"id":279496257,"uuid":"671639646","full_name":"AyoubCoding21/vimrc","owner":"AyoubCoding21","description":"Vimrc is an awesome vim configuration for devs and hackers, It got LSP, Airline and other cool plugins. And it has an user-friendly script that configures everything.","archived":false,"fork":false,"pushed_at":"2024-12-09T15:41:42.000Z","size":34972,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T21:45:21.809Z","etag":null,"topics":["makefile","termux","vim","vim-configuration","vimrc","vimrc-configuration","vimscript"],"latest_commit_sha":null,"homepage":"","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AyoubCoding21.png","metadata":{},"created_at":"2023-07-27T19:37:12.000Z","updated_at":"2025-02-25T09:13:29.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/AyoubCoding21/vimrc","commit_stats":null,"previous_names":["ayoubcoding21/vimrc"],"tags_count":null,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyoubCoding21%2Fvimrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyoubCoding21%2Fvimrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyoubCoding21%2Fvimrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyoubCoding21%2Fvimrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AyoubCoding21","download_url":"https://codeload.github.com/AyoubCoding21/vimrc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240754296,"owners_count":19852186,"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":["makefile","termux","vim","vim-configuration","vimrc","vimrc-configuration","vimscript"],"created_at":"2024-11-10T22:24:24.543Z","updated_at":"2025-02-25T21:45:22.971Z","avatar_url":"https://github.com/AyoubCoding21.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My vimrc\nThis is a lightweight awesome vim configuration for devs and hackers, It got cool plugins for developers.\n# Details\nIt is lightweight, which makes it really cool for heavy lifted dev. But also has cool tricks, plugins and functions for developers and hackers to provide them with the best experience.\n\nThe *leader* key there is space, and has cool keybindings and even uses LSP for Svelte and SvelteKit developement, JS/TS, C/C++ , GLSL, React and it's brothers, Python, SQL and VimScript.\n\nIt has also pre-built keybindings for C++, Node, Python and Svelte-check compilation and also has other keybindings alongside the normal vim keybindings.\n\nFor plugins, it uses fzf, fzf.vim and ctrlp.vim for file searching, ALE and coc.nvim for LSP and intellisense and error-catching, Airline and OneDark to make the UI of vim better, JSX, Svelte and GLSL plugins for other programming langs and YATS and DevIcons and many others.\n\n# Images preview\n\nLinux using Xubuntu 22.04.3 with Hack Nerd Regular font.\n\n![Screenshot_2023-12-06_22-55-56](https://github.com/AyoubCoding21/NVix/assets/120122307/f772cb54-3775-44c2-bbf9-3a49e5162b93)\n\n# Preperation for installation\n\n**Note :** For Linux users only, install Hack Nerd Regular Font and use it, Do not use Hack Nerd Mono-* fonts.\n\nTo install Hack Nerd fonts :\n\n```sh\nsudo apt install git -y --no-install-recommends\ngit clone https://github.com/AyoubCoding21/vimrc \u0026\u0026 cd vimrc\nbash installfonts.sh\n```\n\nRestart your terminal, then change the font to Hack Nerd Font Regular in Preferences -\u003e Appeareance.\n\n# Installation\n\n**Attention : Clone the repo before you do any of this !! But before, if you did the previous step you have nothing to worry, but Termux users must clone the repo !**\n\nFirst go to the NVix directory after cloning and :\n\n*Linux users :*\n\n```sh\nbash installlinux.sh \u0026\u0026 bash copy.sh\nvim\n```\n\n*Termux users :*\n\n```sh\nbash installtermux.sh \u0026\u0026 bash copy.sh\nvim\n```\n\nThen sit down and wait for the instalation, it took me less than 2 minutes on my Samsung Galaxy A2 Core with a Wi-Fi network on the country-side (because It's slow).\n\nThen run these commands (Linux only):\n\n```sh\nsudo npm i -g n\nsudo n latest\n```\n\nAnd then run these commands to initialise coc.nvim:\n\n*Linux users :*\n\n```sh\nbash cocinstall.sh\n```\n\nBoom, Well for me It took me around 9 minutes to finish depending on your Internet connection, I hope it didn't take that long for you, But here you have it, You setted up the config on Vim.\n\n***Attention !!!!*** : If the coc.nvim installation when you open vim does errors, just close and reopen vim, And do like that, until everything is installed.\n\n# Keybindings\n\nHere are some keybindings that are used :\n\n**leader :** SPACE\n\n**Ctrl+g :** Compiles the C++ file.\n\n**Ctrl+y :** Runs python3 on the file.\n\n**Ctrl+o :** Runs node on the file.\n\n**Ctrl+N :** Autocomplete.\n\n**Ctrl+s :** Runs svelte-check.\n\n**Ctrl+P :** Runs the ctrlp file explorer.\n\n**leader + e :** Runs NERDTree.\n\n**Ctrl+b :** Runs a sh script.\n\n**F2 :** Save the file.\n\n**F3 :** Split the screen horisontally.\n\n**F4 :** Split the screen vertically.\n\n**F5 :** Quit.\n\n**F9 :** set invnumber\n\n**F10 :** set invrelativenumbber\n\n**leader + d :** Defintion (using coc.nvim)\n\n**leader + c :** Type (using coc.nvim)\n\n**leader + x :** Fix error (using coc.nvim)\n\n**leader + h :** Hover (using coc.nvim)\n\n**leader + r :** Rename (using coc.nvim)\n\n**leader + f :** Format (using coc.nvim)\n\n**leader + t :** Toggle ALE.\n\n**:W :** Switch between multiple tabs.\n\n**Ctrl + f :** Open FZF.\n\n**Ctrl + z :** Open Files that show dirs and files with their content.\n\n**Ctrl + TAB :** Moves down in the selection completion tab in coc.nvim\n\n**TAB :** Triggers HTML Emmet Expand Abreviation (When filetype is html) or autocomplete and scroll up in the selection completion tab (coc.nvim)\n\n# Commits, issues and infos\n\nUnfortunately, This script (exec.sh) has only Termux and Debian linux support, but you can still copy .vimrc for other OSes and install packages using your system's package manager.\n\nI will be happy for commits and issues and pull requests so we can make our software better.\n\nDonation:\n\nPayeer : ```P1098557175```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayoubcoding21%2Fvimrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayoubcoding21%2Fvimrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayoubcoding21%2Fvimrc/lists"}