{"id":21035317,"url":"https://github.com/nolleh/vim","last_synced_at":"2025-03-13T20:24:03.056Z","repository":{"id":41806567,"uuid":"223954907","full_name":"nolleh/vim","owner":"nolleh","description":"vim environment sets","archived":false,"fork":false,"pushed_at":"2025-03-02T12:10:05.000Z","size":759,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T12:26:58.663Z","etag":null,"topics":["lua","nvim","vim","vimscript"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/nolleh.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":"2019-11-25T13:26:43.000Z","updated_at":"2025-03-02T12:10:08.000Z","dependencies_parsed_at":"2023-10-23T11:29:46.568Z","dependency_job_id":"70972890-7a45-42ee-b71c-aa21ab487e6f","html_url":"https://github.com/nolleh/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/nolleh%2Fvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolleh%2Fvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolleh%2Fvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nolleh%2Fvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nolleh","download_url":"https://codeload.github.com/nolleh/vim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243475330,"owners_count":20296714,"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":["lua","nvim","vim","vimscript"],"created_at":"2024-11-19T13:14:32.305Z","updated_at":"2025-03-13T20:24:03.009Z","avatar_url":"https://github.com/nolleh.png","language":"Lua","readme":"# 1.VIM INITIAL ENVIRONMENT\n\n## vimrc\n\n1. put .vimrc files to home dir, `~`\n2. put to colors(jellybeans.vim) to `~/.vim/`\n\n# 2.APPENDIX\n\n## 2-1. ShortCut\n\neasy to forget shortcut's list.\n\n### Split\n\n#### basic\n\n```bash\n:vsp {file-name}\n```\n\nincludes specifying file name,\n\n```bash\n:10sp ~/.zshrc\n```\n\n```bash\n:sp\n```\n\ninterchange position splited window\n\n```bash\nCtrl + w + r\n```\n\nrotate split window\n\n- to vertical\n\n```bash\nCtrl + w + H\n```\n\n- to horizontal\n\n```bash\nCtrl + w + J\n```\n\n#### focusing\n\nCtrl + w + {direction}\n\nthe {direction} is, one of `h,j,k,l`\n\n#### Resizing\n\n- vertical split size\n  Ctrl + w + \u003e (bigger)\n  Ctrl + w + \u003c (smaller)\n\n```bash\n:vertical resize {N}\n```\n\n- horizontal split size\n\n'Ctrl' + 'w' + '+' (bigger)\n'Ctrl' + 'w' + '-' (smaller)\n\n```bash\n:resize {N}\n```\n\n### Mode\n\n- getting in to explorer mode\n\n```bash\n:Sexplore\n```\n\n```bash\n:Vexplore\n```\n\n### File Manage\n\n- create directory\n  in file explore mode, 'd' for directory, '%' for file.\n\n-\n\n### Viewer\n\n- font size\n  'cmd' + '+' or 'cmd' + 'shift' + '+'\n\n- move cursor\n  n + {direction}\n\nthe {direction} is, one of `h,j,k,l`\n\n- move cursor to line's edge\n  end of line, g + \\_\n  start of line, g + ^\n\n### Edit\n\n- enter insert mode to after last charactor.\n  `a`\n\n- copy vim's text to outside clipboard\n  `\"+y`\n\n- search with selection\n\n1. first yank (select -\u003e y)\n2. `/, [Ctrl] + r, \"`\n\n## 2-2. NerdTree\n\n- go to workspace as upper directory\n  `u`\n\n- go to workspace as currenct directory\n  `C`\n\n- refresh\n  `r`\n\n- open file with to new window\n  `i`\n\n- open file to new tabs\n  `t`\n\n- browse command\n  `m`\n\n- toggle showing hiddenfiles\n  `shift + i`\n\n## 2-3. Markdown Preview\n\n## 2-4. git difftool\n\n### command\n\n```bash\ngit difftool -y -t vimdiff\n```\n\n### shortcut\n\n##### folder\n\nin (+, -) row, press\n\nopen\n`zo`\n\nfold\n`zc`\n\nfor all folder, press\n\nopen\n`zr`\n\nfold\n`zm`\n\n#### go to modified\n\nnext\n`]c`\n\nprevios\n`[c`\n\n#### refresh\n\n`:diffupdate`\n\n#### apply left or right (put/optain)\n\napply origin (put from remote file)\n`dp`\n\napply local (obtain from local file)\n`do`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnolleh%2Fvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnolleh%2Fvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnolleh%2Fvim/lists"}