{"id":28220866,"url":"https://github.com/allexcd/vim-setup","last_synced_at":"2025-10-26T21:05:44.233Z","repository":{"id":56565762,"uuid":"161926898","full_name":"allexcd/vim-setup","owner":"allexcd","description":"Vim Setup for Typescript, Angular, Dart Support","archived":false,"fork":false,"pushed_at":"2020-10-31T08:41:43.000Z","size":7,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T04:16:26.220Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allexcd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-15T17:11:10.000Z","updated_at":"2024-08-01T11:33:21.000Z","dependencies_parsed_at":"2022-08-15T21:00:56.543Z","dependency_job_id":null,"html_url":"https://github.com/allexcd/vim-setup","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/allexcd%2Fvim-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allexcd%2Fvim-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allexcd%2Fvim-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allexcd%2Fvim-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allexcd","download_url":"https://codeload.github.com/allexcd/vim-setup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allexcd%2Fvim-setup/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259047888,"owners_count":22797616,"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":"2025-05-18T04:16:24.002Z","updated_at":"2025-10-26T21:05:39.213Z","avatar_url":"https://github.com/allexcd.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vim for Angular/VueJS/Dart development (MAC Setup)\n\n## 1. Install `vim-plug` as a plugin manager\n\n`vim-plug` advantages:\n- installs each plugin in its own directory\n- includes commands for plugin installation/update/removal: [See the list of commands here](https://github.com/junegunn/vim-plug)\n- parallel installation/update of plugins\n- faster than `Vundle`\n\n`vim-plug` installation:\n\n* Run this command in terminal\n```\ncurl -fLo ~/.vim/autoload/plug.vim --create-dirs \\\n    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim\n```\n* Create the `.vimrc` file in your local dir, if there's none yet\n\n```\ntouch ~/.vimrc\n```\n\n* Open the `.vimrc` file and paste:\n\n```\n\" Specify a directory for plugins\n\" - For Neovim: ~/.local/share/nvim/plugged\n\" - Avoid using standard Vim directory names like 'plugin'\ncall plug#begin('~/.vim/plugged')\n\n\" List here the plugins with Plug commands\n\" Shorthand notations can be used, as well as any valid GIT URLs\n\" Make sure you use single quotes\n\" See all possible ways to list a plugin: https://github.com/junegunn/vim-plug\n\" Ex: Plug 'https://github.com/username/reponame.git'\n\n\" Initialize the plugin system\ncall plug#end()\n```\n\n## 2. Install typescript\n\n```\nnpm install -g typescript\n```\n\n## 3. Install `typescript-vim` plugin to enable typescript syntax support\n\n* Open `~/.vimrc` file\n* Add `Plug 'https://github.com/leafgarland/typescript-vim'` before `call plug#end()`\n* Also add the following lines after `call plug#end()` to enable the plugin to display compilation errors in the QuickFix window:\n\n```\nlet g:typescript_compiler_binary = 'tsc'\nlet g:typescript_compiler_options = ''\nautocmd QuickFixCmdPost [^l]* nested cwindow\nautocmd QuickFixCmdPost    l* nested lwindow\n```\n\n* Open vim and type `:PlugInstall`\n* Open a `.ts` file with vim: `vim someFile.ts`\n* Run `:make` while editing a TypeScript file to execute the `tsc` compiler and display errors in the QuickFix window:\n\n## 4. Install `vim-js-pretty-template` plugin to enable template strings syntax support\n\n* Open `~/.vimrc` file\n* Add `Plug https://github.com/Quramy/vim-js-pretty-template`\n* Add the following lines at the end of the file:\n\n```\nautocmd FileType typescript JsPreTmpl html\nautocmd FileType typescript syn clear foldBraces\n```\n* Open vim and type `:PlugInstall`\n\nFIXME: throws E488 trailing characters error when opening `.ts` files\n\n## 5. Install `vim-javascript` plugin to enable javascript syntax highlighting\n\n* Open `~/.vimrc` file\n* Add `Plug https://github.com/pangloss/vim-javascript`\n* Open vim and type `:PlugInstall`\n\n## 6. Install TSUQUYOMI to bring IDE like features to VIM\n\n* Open `~/.vimrc` file\n* Add `Plug 'https://github.com/Shougo/vimproc.vim', {'do' : 'make'}`\n* Add `Plug 'https://github.com/Quramy/tsuquyomi'`\n* Open vim and type `:PlugInstall`\n\n## 7. Install YouCompleteMe plugin to to get completion suggestions automatically while typing\n* Open `~.vimrc` file\n* Add `Plug 'https://github.com/Valloric/YouCompleteMe'`\n* Open vim and type `:PlugInstall`\n\n### If you're in Mojave and you get an error like:\n\n```\nline    4:\nException MemoryError: MemoryError() in \u003cmodule 'threading' from '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.pyc'\u003e ignored\nSegmentation fault: 11\n```\ndo the following:\n\n* `brew install vim --with-lua --with-override-system-vi`\n* Restart terminal \n* See comments: \n    * [Valloric/YouCompleteMe#3165 (comment)](https://github.com/Valloric/YouCompleteMe/issues/3165#issuecomment-425616700)\n    * [Solution 2](https://github.com/powerline/powerline/issues/1947#issuecomment-441884283)\n\n### 8. Syntax checking\n* Open `~/.vimrc`\n* Add `Plug 'https://github.com/vim-syntastic/syntastic'`\n* Add the following lines at the end of the file:\n\n```\nset statusline+=%#warningmsg#\nset statusline+=%{SyntasticStatuslineFlag()}\nset statusline+=%*\nlet g:syntastic_check_on_open = 1\nlet g:syntastic_check_on_wq = 0\nlet g:tsuquyomi_disable_quickfix = 1\nlet g:syntastic_typescript_checkers = ['tsuquyomi'] \n```\n* Open vim and type `:PlugInstall`\n\n## 9. Other plugins\n* Add `Plugin 'https://github.com/editorconfig/editorconfig-vim'`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallexcd%2Fvim-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallexcd%2Fvim-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallexcd%2Fvim-setup/lists"}