{"id":15891615,"url":"https://github.com/csukuangfj/kfj-vim","last_synced_at":"2025-04-02T17:25:14.746Z","repository":{"id":103068776,"uuid":"121842104","full_name":"csukuangfj/kfj-vim","owner":"csukuangfj","description":"My vim settings.","archived":false,"fork":false,"pushed_at":"2025-02-17T02:20:25.000Z","size":78,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-02-17T03:25:42.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csukuangfj.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-17T09:21:22.000Z","updated_at":"2025-02-17T02:20:29.000Z","dependencies_parsed_at":"2023-04-22T15:37:40.819Z","dependency_job_id":null,"html_url":"https://github.com/csukuangfj/kfj-vim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csukuangfj%2Fkfj-vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csukuangfj%2Fkfj-vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csukuangfj%2Fkfj-vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csukuangfj%2Fkfj-vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csukuangfj","download_url":"https://codeload.github.com/csukuangfj/kfj-vim/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246858154,"owners_count":20845248,"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-10-06T07:40:43.970Z","updated_at":"2025-04-02T17:25:14.728Z","avatar_url":"https://github.com/csukuangfj.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Table of Contents\n\n- [Introduction](#introduction)\n- [Mapped Keys](#mapped-keys)\n- [Installed Plugins](#installed-plugins)\n    * [Code Format](#code-format)\n    * [Color Scheme](#color-scheme)\n    * [Comment](#comment)\n    * [Directory Window](#directory-window)\n    * [Fix Trailing and Leading Spaces](#fix-trailing-and-leading-spaces)\n    * [Fuzzy File Finder](#fuzzy-file-finder)\n    * [Indent Guides](#indent-guides)\n    * [Indent Line](#indent-line)\n    * [Mark Visualization](#mark-visualization)\n    * [Python Auto Completion](#python-auto-completion)\n    * [Repeat](#repeat)\n    * [Resize or Move Split Windows](#resize-or-move-split-windows)\n    * [Status Line](#status-line)\n    * [Tagbar](#tagbar)\n    * [YouCompleteMe](#youcompleteme)\n    * [deoplete](#deoplete)\n- [TODO](#todo)\n- [Notes](#notes)\n\n# Introduction\n\nThis repository contains my Vim configurations.\n\n# Mapped Keys\n - `\u003cleader\u003e` has been mapped to the key `;`\n\n# Installed Plugins\n\n## Code Format\n - `google/vim-codefmt`\n - refer to the Github page for configuration\n - for C++, install clang-format, e.g., `brew install clang-format`\n - for Python, install yapf, e.g., `pip install yapf`\n - for Bazel, install `buildifier`, refer to \u003chttps://github.com/bazelbuild/buildtools/blob/master/buildifier/README.md\u003e\n - files are auto formated on save; reformated files overwrite current files!\n\n## Color Scheme\n - altercation/vim-colors-solarized\n - tomasr/molokai\n\n## Comment\n - [scrooloose/nerdcommenter][2]\n - `\u003cleader\u003e`cc, to comment the current line or selected lines\n - `\u003cleader\u003e`c`\u003cspace\u003e` to toggle the comment of the current line within selected lines\n - `\u003cleader\u003e`cs, s is short for sexy, i.e., beautiful comment.\n - `\u003cleader\u003e`cm, m is short for minimal comment, i.e, use `/* */` instead of `//`\n\n## Directory Window\n - [scrooloose/nerdtree][3]\n - [jistr/vim-nerdtree-tabs][4]\n - `\u003cC-n\u003e`, i.e., press ctrl + n to toggle the directory window\n - Inside the directory window\n   - the upper case `i` to toggle hidden files\n   - `t` to open the file in a new tab\n   - `s` to vertically split the window and open the file in the split window\n   - `\u003cEnter\u003e` to open the file in the current tab\n\n## Fix Trailing and Leading Spaces\n - bronson/vim-trailing-whitespace\n - the trailing/leading spaces are shown in red\n - `:FixWhiteSpace` to delete trailing/leading spaces of the whole file or the selected region\n\n## Fuzzy File Finder\n - `kien/ctrlp.vim`\n - settings: `let g:ctrlp_map = '\u003cc-p\u003e'`\n - press `\u003cc-p\u003e`, i.e., ctrl + p to find the file (case-insensitive) in the current directory and subdirectories\n\n## Indent Guides\n - `nathanaelkane/vim-indent-guides`\n - `\u003cleader\u003eig` to toggle indent guides\n\n## Indent Line\n - `Yggdroot/indentLine`\n - Show indents with lines\n\n## Mark Visualization\n - `kshenoy/vim-signature`\n - `ma` to create a mark named `a`\n - remember how to jump to mark `a`: backtick -- column, `'` -- beginning of the line\n - `dma` to delete mark `a`\n - `m-` to delete the mark in the current line\n - `m\u003cspace\u003e to delete all marks\n - `m,` to allocate the next available mark for the current line\n\n## Python Auto Completion\n - `davidhalter/jedi-vim`\n - `ctrl + g` to show/hide completion suggestions.\n\n## Repeat\n - tpope/vim-repeat\n - Install this plugin so that `.` works for commands defined by other plugins\n\n## Resize or Move Split Windows\n - `simeji/winresizer`\n - First press `ctrl + E`\n    * it enters *resize* mode, press `j`, `h`,`k`, or `l` to resize windows.\n    * to change it to *move* mode, press `m` or `e`, then press `j`, `h, `k`, or `l`\n    * to change it to *focus* mode, press `f`, then press `j`, `h, `k`, or `l`\n\n## Status Line\n - vim-airline/vim-airline\n - vim-airline/vim-airline-themes\n\n## Tagbar\n - install ctags first, e.g., `brew install ctags`\n - `\u003cleader\u003eilt` to toggle the tagbar window\n - it is shown in the right side, since the left side is for the directory window\n\n## YouCompleteMe\n - **CAUTION**: Do NOT use it as it eats up too much resources. Use [./init-nvim.sh](./init-nvim.sh) instead\n - `cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON` or `set( CMAKE_EXPORT_COMPILE_COMMANDS ON )`,\n which generate a file `compile_commands.json` in the build directory.\n - symlink it to the project root directory.\n - ;gl to go to declaration\n - ;gf to go to definition\n - ;gi to go to include\n - ;gg to go to declaration or definition\n - ctrl + o to go backward\n - ctrl + i to go forward\n - If anaconda is used, compile YouCompleteMe with `/usr/bin/python install.py`\n\n## deoplete\n  - `pip3 install pynvim`\n  - `apt-get install python3-neovim`. NOTE: it requires `sudo` permission.\n  - It consumes less resource than YouCompleteMe.\n\n[6]: https://github.com/\n[5]: https://github.com/\n[4]: https://github.com/jistr/vim-nerdtree-tabs\n[3]: https://github.com/scrooloose/nerdtree\n[2]: https://github.com/scrooloose/nerdcommenter\n[1]: https://github.com/csukuangfj/vim-exercises\n\n## TODO\n - https://github.com/cHoco/dotFiles/blob/master/vimrc\n\n## Notes\n - `gg=G` to fix indent\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsukuangfj%2Fkfj-vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsukuangfj%2Fkfj-vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsukuangfj%2Fkfj-vim/lists"}