{"id":16509795,"url":"https://github.com/dc3671/dotfiles","last_synced_at":"2025-03-21T08:31:19.531Z","repository":{"id":48143568,"uuid":"56292717","full_name":"dc3671/dotfiles","owner":"dc3671","description":"dotfiles for frontend-developer and python-user, including:  vim(support vue files and python pylint), tmux, zsh(with oh-my-zsh)","archived":false,"fork":false,"pushed_at":"2024-10-08T01:28:32.000Z","size":323,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T04:24:16.767Z","etag":null,"topics":["config","dotfiles","frontend-developer","tmux","vim","vue","ycm","zsh"],"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/dc3671.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":"2016-04-15T05:11:35.000Z","updated_at":"2024-10-08T01:28:36.000Z","dependencies_parsed_at":"2022-09-11T02:50:24.639Z","dependency_job_id":"2e9e6b78-16d0-4a6c-98d0-8b6835c22000","html_url":"https://github.com/dc3671/dotfiles","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/dc3671%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dc3671%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dc3671%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dc3671%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dc3671","download_url":"https://codeload.github.com/dc3671/dotfiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244124181,"owners_count":20401684,"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":["config","dotfiles","frontend-developer","tmux","vim","vue","ycm","zsh"],"created_at":"2024-10-11T15:52:31.184Z","updated_at":"2025-03-21T08:31:18.957Z","avatar_url":"https://github.com/dc3671.png","language":"Lua","readme":"# Dotfiles #\n\nMy dotfiles for frontend-developer and python-user, including:\n\n* vim(support vue files and python pylint)\n* tmux\n* zsh(with [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh))\n\n## Install ##\n\nMake sure `vim`, `tmux`, `zsh`, `git` have been installed.\n\n```bash\ngit clone https://github.com/dc3671/dotfiles.git\ncd dotfiles\n./install.sh\n```\n\n## Advanced config for `YouCompleteMe` ##\n\nInstall [`YouCompleteMe`](https://github.com/Valloric/YouCompleteMe) plugin, require Vim 7.4.1578 with Python 2 or Python 3 support. Because `YouCompleteMe` contains many submodules and it will cost a lot of time, I just add basic `js` and `python` support of it. If you need more support such as Go, Java, and C, you may do as below:\n\n```bash\ncd ~/.vim/bundle/YouCompleteMe/\n# for C# support\npython install.py --cs-completer\n# for Go support\npython install.py --go-completer\n# for Java support\npython install.py --java-completer\n```\nreference: https://github.com/Valloric/YouCompleteMe#installation\n\n## Key Mappings ##\n\n**may already be depreciated**\n\n### Tmux ###\n\n`\u003cleader\u003e` key has been changed to ctrl+x\n```tmux\nset -g prefix C-x\n```\n\nresize window\n```tmux\nbind -r ^k resizep -U 10 # upward (prefix Ctrl+k)\nbind -r ^j resizep -D 10 # downward (prefix Ctrl+j)\nbind -r ^h resizep -L 10 # to the left (prefix Ctrl+h)\nbind -r ^l resizep -R 10 # to the right (prefix Ctrl+l)\n```\n\nswap windows position\n```tmux\n# swap with the previous pane (prefix Ctrl+u)\nbind ^u swapp -U\n# swap with the next pane (prefix Ctrl+d)\nbind ^d swapp -D\n```\n\nsplit window\n```tmux\nunbind '\"'          # vertical split (prefix -)\nbind - splitw -v\nunbind %\nbind | splitw -h    # horizontal split (prefix |)\n```\n\nreload config `prefix+r`\n```tmux\nbind r source-file ~/.tmux.conf \\; display \"Reloaded!\"\n```\n\n### Vim ###\n\n`\u003cleader\u003e` key has been changed to `,`\n```vim\nlet mapleader = ','\n```\n\nedit or save\u0026reload vim config without exit\n```vim\nlet g:spf13_edit_config_mapping='\u003cleader\u003eec'\nlet g:spf13_apply_config_mapping='\u003cleader\u003esc'\n```\n\neasier moving in windows\n```vim\nmap \u003cC-J\u003e \u003cC-W\u003ej\nmap \u003cC-K\u003e \u003cC-W\u003ek\nmap \u003cC-L\u003e \u003cC-W\u003el\nmap \u003cC-H\u003e \u003cC-W\u003eh\n```\n\ndelete current buffer\n```vim\nnnoremap qq :Bdelete\u003ccr\u003e\n```\n\ntoggle search highlight\n```vim\nnmap \u003csilent\u003e \u003cleader\u003e/ :set invhlsearch\u003cCR\u003e\n```\n\ndelete all trailing whitespaces\n```vim\nmap \u003cleader\u003e\u003cspace\u003e :FixWhitespace\u003ccr\u003e\n```\n\nuse 'm/M' to move among buffers\n```vim\nnoremap m :bn\u003cCR\u003e\nnoremap M :bp\u003cCR\u003e\n```\n\ntoggle between two buffers\n```vim\nnnoremap t \u003cC-^\u003e\n```\nquick move in insert mode\n```vim\ninoremap \u003cC-o\u003e \u003cEsc\u003eo\ninoremap \u003cC-a\u003e \u003cHome\u003e\ninoremap \u003cC-e\u003e \u003cEnd\u003e\ninoremap \u003cC-h\u003e \u003cLeft\u003e\ninoremap \u003cC-j\u003e \u003cDown\u003e\ninoremap \u003cC-k\u003e \u003cUp\u003e\ninoremap \u003cC-l\u003e \u003cRight\u003e\ninoremap \u003cC-d\u003e \u003cDELETE\u003e\n```\n\nGo to home and end using capitalized directions\n```vim\nnoremap H 0\nnoremap L $\nnoremap Y y$\n```\n\nselect all\n```vim\nnoremap \u003cLeader\u003esa ggVG\n```\n\nautoformat file\n```vim\nnoremap \u003cleader\u003e\u003cleader\u003ef :Autoformat\u003cCR\u003e\n```\n\nCtrlSF, a grep plugin like that in SublimeText\n```vim\nnmap     \u003cC-F\u003ef \u003cPlug\u003eCtrlSFPrompt\nvmap     \u003cC-F\u003ef \u003cPlug\u003eCtrlSFVwordPath\nvmap     \u003cC-F\u003eF \u003cPlug\u003eCtrlSFVwordExec\nnmap     \u003cC-F\u003en \u003cPlug\u003eCtrlSFCwordPath\nnmap     \u003cC-F\u003ep \u003cPlug\u003eCtrlSFPwordPath\nnnoremap \u003cC-F\u003eo :CtrlSFOpen\u003cCR\u003e\nnnoremap \u003cC-F\u003et :CtrlSFToggle\u003cCR\u003e\ninoremap \u003cC-F\u003et \u003cEsc\u003e:CtrlSFToggle\u003cCR\u003e\n```\n\nNerdtree, show directory structures\n```vim\nmap \u003cC-e\u003e \u003cplug\u003eNERDTreeTabsToggle\u003cCR\u003e\nmap \u003cleader\u003ee :NERDTreeFind\u003cCR\u003e\nnmap \u003cleader\u003ent :NERDTreeFind\u003cCR\u003e\n```\n\nfzf, search files/tags/text among project\n```vim\nnnoremap \u003csilent\u003e \u003cC-p\u003e :Files\u003cCR\u003e\nnnoremap \u003csilent\u003e \u003cC-t\u003e :Tags\u003cCR\u003e\nnnoremap \u003cleader\u003e\u003cleader\u003e/ :Ag\u003cspace\u003e\n```\n\nmore detailed mapping see `.vimrc` -\u003e `Key Mapping` part\n\n## Contact ##\n\nAny problem is welcome in [issues](https://github.com/dc3671/dotfiles/issues)\n\n[Dash Chen](https://github.com/dc3671) \u003cchenzhh3671@gmail.com\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdc3671%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdc3671%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdc3671%2Fdotfiles/lists"}