|
1 |
| -# Vim as a Python IDE |
| 1 | +# Contents |
2 | 2 |
|
3 |
| -This repo contains a script to build vim from the source, and install a set |
4 |
| -of plugins that will make VIM look like Python IDE. |
| 3 | +This project aims to use Vim as a powerful and complete Python IDE. In order |
| 4 | +to do that, we curated a list of awesome plugins available in the community and |
| 5 | +provided an automatic installation procedure for this set. |
5 | 6 |
|
6 |
| -Please check the available features and the plugins that enable them: |
| 7 | +<img src="./docs/img/vim.png?raw=true"/> |
7 | 8 |
|
8 |
| -## Syntax Highlighting |
| 9 | +## Installation |
9 | 10 |
|
10 |
| -## Color Themes |
11 | 11 |
|
12 |
| -## Project Navigation |
| 12 | +### Requirements for Ubuntu distros |
13 | 13 |
|
14 |
| -- Nerdtree |
15 |
| -- Tags |
16 |
| -- Fzf |
| 14 | +```bash |
| 15 | +sudo apt install libncurses5-dev libgnome2-dev libgnomeui-dev \ |
| 16 | +libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \ |
| 17 | +libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev \ |
| 18 | +python3-dev git |
| 19 | +``` |
17 | 20 |
|
18 |
| -## Powerfull Full Text search |
| 21 | +### Requirements for Fedora distros |
19 | 22 |
|
20 |
| -- Ripgrep |
| 23 | +```bash |
| 24 | +sudo dnf install -y ctags git python python-devel \ |
| 25 | +python3 python3-devel tcl-devel |
| 26 | +``` |
21 | 27 |
|
22 |
| -## Real time linting |
23 |
| -- Ale |
| 28 | +### Installation process |
24 | 29 |
|
25 |
| -## Code navigation |
| 30 | +```bash |
| 31 | +git clone https://github.com/rapphil/vim-python-ide.git && \ |
| 32 | +cd vim-python-ide && ./install.sh |
| 33 | +``` |
26 | 34 |
|
27 |
| -- guttentag + jedi |
| 35 | +## Features |
28 | 36 |
|
29 |
| -## Code refactoring |
| 37 | +Please check the available features and the plugins that enable them. |
30 | 38 |
|
31 |
| -Jedi + Rope |
32 |
| -- Extract method |
33 |
| -- Rename functions |
| 39 | +### Syntax Highlighting |
34 | 40 |
|
35 |
| -## Code completion |
36 |
| -https://github.com/davidhalter/jedi-vim |
37 |
| -## Snippets |
| 41 | +Syntax highlighting for several languages, besides Python. |
38 | 42 |
|
39 |
| -Snippets save time while you type and create standardization |
| 43 | +Powered by: |
40 | 44 |
|
41 |
| -## Git Integration |
| 45 | + * [vim-polyglot](https://github.com/sheerun/vim-polyglot) |
| 46 | + |
| 47 | +### Color Themes |
| 48 | + |
| 49 | +Several popular color schemes: |
| 50 | + |
| 51 | + * Monokai |
| 52 | + * Gruvbox |
| 53 | + * Much more |
| 54 | + |
| 55 | +Powered by: |
| 56 | + |
| 57 | + * [vim-colorschemes](https://github.com/flazz/vim-colorschemes) |
| 58 | + |
| 59 | + |
| 60 | +### Project Navigation |
| 61 | + |
| 62 | +Easily navigate your project using: |
| 63 | + |
| 64 | + * File tree explore (Nerdtree) |
| 65 | + |
| 66 | + * Fuzzy finder based on the file names |
| 67 | + |
| 68 | + * File structure (classes, functions, methods). |
| 69 | + |
| 70 | +Powered by: |
| 71 | + |
| 72 | + * [Nerdtree](https://github.com/scrooloose/nerdtree) |
| 73 | + * [Fzf](https://github.com/junegunn/fzf.vim) |
| 74 | + * [Tagbar](https://majutsushi.github.io/tagbar/) |
| 75 | + |
| 76 | +### Powerfull Full Text search |
| 77 | + |
| 78 | + * Full text search based on both exact match and fuzzy finder capabilities |
| 79 | + * Extremely fast. |
| 80 | + |
| 81 | +Powered by: |
| 82 | + |
| 83 | + * [Ripgrep](https://github.com/BurntSushi/ripgrep) |
| 84 | + * [Fzf](https://github.com/junegunn/fzf.vim) |
| 85 | + |
| 86 | +### Real time linting |
| 87 | + |
| 88 | +Lint source files in real time an check for errors and warnings. |
| 89 | + |
| 90 | +Powered by: |
| 91 | + |
| 92 | + * [Ale](https://github.com/w0rp/ale) |
| 93 | + |
| 94 | +### Code navigation |
| 95 | + |
| 96 | +* Go to function definitions |
| 97 | +* Check parameters and docstrings easily. |
| 98 | + |
| 99 | +Powered by: |
| 100 | + |
| 101 | +* [vim-gutentags](https://github.com/ludovicchabant/vim-gutentags) |
| 102 | +* [jedi-vim](https://github.com/davidhalter/jedi-vim) |
| 103 | + |
| 104 | +### Code refactoring |
| 105 | + |
| 106 | +Extract methods, variables and rename functions easily. |
| 107 | + |
| 108 | +Powered by: |
| 109 | + |
| 110 | + * [jedi-vim](https://github.com/davidhalter/jedi-vim) |
| 111 | + * [rope-vim](https://github.com/python-rope/ropevim) |
| 112 | + |
| 113 | +### Code completion |
| 114 | + |
| 115 | +Use hints and dialog boxes to speed your development using code completion. |
| 116 | + |
| 117 | +Powered by: |
| 118 | + |
| 119 | + * [jedi-vim](https://github.com/davidhalter/jedi-vim) |
| 120 | + |
| 121 | +### Snippets |
| 122 | + |
| 123 | +Snippets save time while you type and creates standardization for your code. |
| 124 | + |
| 125 | +Powered by: |
| 126 | + |
| 127 | + * [vim-snippets](https://github.com/honza/vim-snippets) |
| 128 | + * [ultisnips](https://github.com/SirVer/ultisnips) |
| 129 | + |
| 130 | +### Git Integration |
| 131 | + |
| 132 | +Perform git operations and highlight changes in the repo. |
| 133 | + |
| 134 | +Powered by: |
| 135 | + |
| 136 | + * [vim-fugitive](https://github.com/tpope/vim-fugitive) |
| 137 | + * [vim-gitgutter](https://github.com/airblade/vim-gitgutter) |
| 138 | + |
| 139 | +## Key bindings |
| 140 | + |
| 141 | +| Action | Mode | key binding | |
| 142 | +|--------------------------|------------------|-----------------| |
| 143 | +| Toogle Nerdtree | Normal | `crtl + n` | |
| 144 | +| toogle Tagbar | Normal | `f8` | |
| 145 | +| Look for file | Normal | `crtl + p` | |
| 146 | +| Goto definition | Normal | `crtl + ]` | |
| 147 | +| Show docstring | Normal | `K` | |
| 148 | +| Extract method | Normal/Visual | `crlt + c r m` | |
| 149 | +| Auto complete | Insert | `crtl + space` | |
| 150 | +| Expand snippet | Insert |`tab` | |
| 151 | + |
| 152 | +## Commands |
| 153 | + |
| 154 | +| Command Description | Command | |
| 155 | +|--------------------------------|----------------| |
| 156 | +| Look for string | `:Rg <string>` | |
| 157 | +| git status | `:Gstatus` | |
| 158 | +| git diff | `:Gdiff` | |
0 commit comments