{"id":16411421,"url":"https://github.com/yetone/work-vimrc","last_synced_at":"2026-03-05T14:04:41.742Z","repository":{"id":12169463,"uuid":"14767411","full_name":"yetone/work-vimrc","owner":"yetone","description":"work .vimrc","archived":false,"fork":false,"pushed_at":"2016-04-25T03:54:13.000Z","size":941,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-02T00:35:54.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"VimL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"openai/requests-for-research","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yetone.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}},"created_at":"2013-11-28T04:05:07.000Z","updated_at":"2021-07-10T20:01:21.000Z","dependencies_parsed_at":"2022-09-23T04:43:08.972Z","dependency_job_id":null,"html_url":"https://github.com/yetone/work-vimrc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yetone/work-vimrc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yetone%2Fwork-vimrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yetone%2Fwork-vimrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yetone%2Fwork-vimrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yetone%2Fwork-vimrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yetone","download_url":"https://codeload.github.com/yetone/work-vimrc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yetone%2Fwork-vimrc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30130031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T12:40:50.676Z","status":"ssl_error","status_checked_at":"2026-03-05T12:39:32.209Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11T06:45:28.265Z","updated_at":"2026-03-05T14:04:41.717Z","avatar_url":"https://github.com/yetone.png","language":"VimL","funding_links":[],"categories":[],"sub_categories":[],"readme":"Maple's Vim config\n==================\n\nI use `vundle` to manage my plugins, which makes my `.vim` directory clean and tidy. If you are new to vim, the following two posts\n\n* [Vim Introduction and Tutorial](http://blog.interlinked.org/tutorials/vim_tutorial.html)\n* [Vim plugins I use](http://mirnazim.org/writings/vim-plugins-i-use/)\n\nwill be good for you.\n\n#### Most of the time we are writing code so we need:\n## Code Completions\n\nSuch as completions for variable names and function names(neocomplcache), expanding snippets(snipMate), auto closing brackets/brace/quote(delimitMate) and fast expand expressions to HTML(ZenCoding).\n\n* [neocomplcache](http://github.com/Shougo/neocomplcache) - Ultimate auto completion system for Vim.\n* [snipMate](https://github.com/garbas/vim-snipmate) - Plugin for using TextMate-style snippets in Vim.\n* [supertab](http://github.com/ervandew/supertab) - Perform all your vim insert mode completions with Tab.\n* [ZenCoding](http://github.com/mattn/zencoding-vim) - High speed HTML and CSS coding.\n* [delimitMate](http://github.com/Raimondi/delimitMate) - Provides auto-balancing and some expansions for parens, quotes, etc.\n\n### Shortcuts\n\n* `Tab` -\u003e Rotate across the completion list\n* `Tab` -\u003e Expand snippets or jump to the next placeholder of snippet\n* `Ctrl` + `j` -\u003e Call zen-coding expansion on html tags\n\n### Dependencies\n\nCompile Vim with `--enable-pythoninterp` and `--enable-rubyinterp` to enable powerful syntax completion supplied by neocomplcache.\n\n``` bash\nbrew install macvim --override-system-vim  # OS X\nyaourt -S gvim                             # ArchLinux\nsudo apt-get install vim-gtk               # Ubuntu\n```\n\n### Tutorial\n\n``` vim\n:help zencoding\n```\n\n[Movie teaching zencoding.vim](http://mattn.github.com/zencoding-vim/)\n\n### Screenshots\n\n![Completions](https://raw.github.com/humiaozuzu/dot-vimrc/master/screenshots/completions.gif)\n![Snippets](https://raw.github.com/humiaozuzu/dot-vimrc/master/screenshots/snippets.gif)\n\n#### Sometimes we need to jump to previous positions to copy/paste or do some fixes:\n## Fast navigation\n\n* [matchit](http://github.com/tsaleh/vim-matchit) - Extended % matching for HTML, LaTeX, and many other languages.\n* [EasyMotion](https://github.com/Lokaltog/vim-easymotion) - Vim motions on speed!\n\n### Tutorial\n\n``` vim\n:help easymotion\n```\n\n### Shortcuts\n\n* `%` -\u003e Jump between brackets and html/xml tags\n* `\u003cleader\u003e` + `w` -\u003e Beginning of the word.\n* `\u003cleader\u003e` + `f` + `{char}` -\u003e Find {char} to the right.\n\n#### Doing fixes should be as fast as possible!\n## Fast editing\n\n* [surround](http://github.com/tpope/vim-surround) - Easily delete, change and add such surroundings in pairs.\n* [nerdcommenter](http://github.com/scrooloose/nerdcommenter) - Easy commenting of code for many filetypes.\n* [Gundo](https://github.com/sjl/gundo.vim/) - visualize your Vim undo tree.\n* [tabular](https://github.com/godlygeek/tabular) - Vim script for text filtering and alignment.\n* [IndentGuides](https://github.com/nathanaelkane/vim-indent-guides) - A Vim plugin for visually displaying indent levels in code.\n\n### Tutorial\n\n``` vim\n:help text-objexts\n:help surround\n:help tabular\n```\n\n### Shortcuts\n\n* `%` -\u003e Jump between brackets and html/xml tags\n* `\u003cleader\u003e` + `c` + `\u003cspace\u003e` -\u003e Toggle comment\n* `F3` -\u003e Toggle Gundo viewer\n* `F4` -\u003e Toggle Indent Guides\n\n## IDE features\n\n* [nerdtree](http://github.com/scrooloose/nerdtree) - A tree explorer plugin for navigating the filesystem.\n* [tabbar](http://github.com/humiaozuzu/TabBar) -  Add tab bar and quickt tab switch with alt+1~9.\n* [tagbar](http://github.com/majutsushi/tagbar) - Displays the tags of the current file in a sidebar.\n* [ack-vim](http://github.com/mileszs/ack.vim) - Front for the Perl module App::Ack.\n* [ctrlp](https://github.com/kien/ctrlp.vim) - Fuzzy file, buffer, mru and tag finder.\n* [powerline](https://github.com/Lokaltog/vim-powerline) - The ultimate vim statusline utility.\n* [fugitive](https://github.com/tpope/vim-fugitive/) - a Git wrapper so awesome, it should be illegal.\n* [syntastic](https://github.com/scrooloose/syntastic) - Syntax checking hacks for vim.\n\n### Dependencie\n\n```bash\nyaourt -S ack ctags                  # ArchLinux\nsudo apt-get install ack-grep ctags  # Ubuntu\nbrew install ack ctags               # OS X\n```\n\nFor syntax check tools:\n\nLanguages    | Lint Tools    | Install guide\n------------ | ------------- | ------------\nC            | gcc           | built-in\nCPP          | g++           | built-in\nCoffeeScript | coffee        | `npm install -g coffeelint`\nCSS          | csslint       | `npm install -g csslint`\nErlang       | escript       | built-in\nGo           | go            | `go get code.google.com/p/rog-go/exp/cmd/godef`\nHaml         | haml          | built-in\nHaskell      | ghc-mod       | `cabal install ghc-mod`\nHTML         | tidy          | built-in\nJava         | javac         | built-in\nJavascript   | jshint        | `npm install -g jshint`\nJson         | jsonlint      | `npm install -g jsonlint`\nLess         | lessc         | built-in\nLisp         | clisp         | built-in\nLua          | luac          | built-in\nPerl         | perl          | built-in\nPHP          | php           | built-in\nPuppet       | puppet        | built-in\nPython       | pyflakes      | `sudo pip install pyflakes`\nRuby         | ruby          | built-in\nScala        | scala         | built-in\nSass         | sass          | built-in\nScss         | scss/compass  | `gem install compass`\nXML          | xmllint       | built-in\nYAML         | js-yaml       | `npm install -g js-yaml`\n\n### Shortcuts\n* `F5` -\u003e Toggle Nerd-Tree file viewer\n* `F6` -\u003e Toggle tagbar\n* `Ctrl` + `p` -\u003e Toggle ctrlp\n* `Alt` + `1~9` -\u003e Switch between multiple buffers\n* `Ctrl` + `h/j/k/l` -\u003e Moving between spilt windows\n* `:Ack` or `\u003cleader\u003e` + `a` -\u003e Toggle Ack searching\n\n### Screenshots\n\n![Vim IDE 1](https://raw.github.com/humiaozuzu/dot-vimrc/master/screenshots/vim.jpg)\n![Vim IDE 2](https://raw.github.com/humiaozuzu/dot-vimrc/master/screenshots/vim2.jpg)\n\n## Other Utils\n\n* [fcitx-status](https://github.com/humiaozuzu/fcitx-status) - automatic change status of fcitx in vim.\n* [togglemouse](https://github.com/nvie/vim-togglemouse/) - Toggles the mouse focus between Vim and your terminal emulator, allowing terminal emulator mouse commands, like copy/paste.\n\n### Shortcuts\n\n* `F12` -\u003e Toggle Mouse\n\n## Better syntax/indent for language enhancement\n\n- Server\n   - php\n   - go\n   - rails\n   - jinja\n   - jade\n- Web\n   - html5\n   - haml\n   - javascript\n   - jquery\n   - coffeescript\n   - less\n   - stylus\n   - handlebar\n- Markup language\n   - markdown\n   - textile\n- FPs\n   - racket\n   - clojure\n   - scale\n  \n\n## Themes\n\n* [blackboard](https://github.com/rickharris/vim-blackboard) - Textmate's Blackboard theme for vim (with iTerm2 theme)\n* [molokai](https://github.com/rickharris/vim-monokai) - A port of the monokai scheme for TextMate\n* [solarized](https://github.com/altercation/vim-colors-solarized) - precision colorscheme for the vim text editor\n* [vividchalk](https://github.com/tpope/vim-vividchalk) - colorscheme based on the Vibrant Ink theme for TextMate\n* [distinguished](https://github.com/Lokaltog/vim-distinguished) - A dark vim color scheme for 256-color terminals.\n* [tomorrow](https://github.com/chriskempson/vim-tomorrow-theme) - Tomorrow Theme for Vim\n* [fisa](https://github.com/fisadev/fisa-vim-colorscheme) - soft color scheme for terminals with 256 colors\nClone in Mac\n\n## Additional functions\n\n1. File encoding auto detection\n* Hightlight current line and column\n* Automatically jump to the last edited location\n* `:w`/`:wq` error correction\n* Remove trailing white space(run `:FixWhitespace` in vim)\n* Code folding is disabled, enable it as you wish\n* `w!!` to write if you forget add sudo\n* Indent style:\n   * JavaScript - Use soft-tabs with a two space indent(According to this [Post](http://atroche.org/post/30994290348/javascript-indentation)).\n   * HTML/CSS - Use soft-tabs with a two space indent(According to Google and Github's HTML/CSS style guide, just Google it).\n   * PHP - Use soft-tabs with a two space indent(According to [Apache PHP Style Guide](http://svn.apache.org/repos/asf/shindig/trunk/php/docs/style-guide.html)).\n   * Python - Use soft-tabs with a four space indent([PEP8](http://www.python.org/dev/peps/pep-0008/)).\n\n## Installation\n\n1. Backup your old vim configuration files:\n\n        mv ~/.vim ~/.vim.orig\n        mv ~/.vimrc ~/.vimrc.orig\n\n2. Clone and install this repo:\n\n        git clone git://github.com/humiaozuzu/dot-vimrc.git ~/.vim\n        ln -s ~/.vim/vimrc ~/.vimrc\n\n3. Setup `Vundle`:\n\n        git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle\n\n4. Install bundles. Launch vim(ignore the errors and they will disappear after installing needed plugins)and run:\n\n        :BundleInstall\n\nThst's it!\n\nFor installation on Windows, please refer to this post: http://blog.yoxyue.com/post/gvim-on-win7 (Thanks to [yoxyue](https://github.com/yoxyue))\n\n## How to manage this vimrc?\n\nAll plugins are listed in file `bundles.vim` with detailed comments, just add plugins as you like.\n\n1. `:BundleClean` to clean up unused plugins\n2. `:BundleInstall` to install newly added plugins\n3. `:BundleInstall!` to upgrade all plugins\n\nOther configurations are also well organized in vimrc.\n\n## Known issues\n\n* Compeletions are not well supported for statically typed languages(c/c++)\n* Snippets are not shown in completions popups\n* May has some conflicts with GVIM\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyetone%2Fwork-vimrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyetone%2Fwork-vimrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyetone%2Fwork-vimrc/lists"}