The project is Basic Development Environment, including:
- bashrc
- vimrc, plugins
- gitconfig
- ...
This environment is a simple, clean and easy to manage.
Vimlatest8.xversionNeoVim0.3.3version
The following are the total plugins in here:
- Common Plugins
- Status Bar
- Git
- Coding
- Omnifunc Management
| Language | Language Server |
|---|---|
| C/C++ | YouCompleteMe(libclang), cquery, clangd, ccls |
| Python | YouCompleteMe(jedi), pyls |
| Java | YouCompleteMe(eclipse-jdt) |
| Javascript | YouCompleteMe(tsserver) |
| Bash | bash-language-server |
| Language | Linter |
|---|---|
| C/C++ | clangtidy |
| Python | flake8, pylint |
| Bash | shellcheck |
| YAML | yamllint |
| Markdown | alex, write-good |
| Json | jsonlint |
| XML | xmllint |
| HTML | htmllint, alex, write-good |
| Javascript | eslint |
| Language | Fixers/Formatters |
|---|---|
| C/C++ | clang-format |
| Python | isort, yapf |
| Bash | N/A |
| YAML | prettier |
| Markdown | prettier |
| Json | jq, prettier |
| XML | xmllint |
| HTML | prettier |
| Javascript | prettier, eslint |
Besides go through the Installation steps, the eaisest way to use this environment is pulling the Docker Image, and start it directly:
docker pull finaldie/devThis docker image is based on Ubuntu 18.10 release, and includes all basic build toolchains which work out of box.
From the project you want to jump in the dev environment, then type:
docker run -it --rm -v `pwd`:/workspace finaldie/devThen, we enter the dev environment with all the scripts we want.
Notes: Configure above into .bash_profile would save a lot time in the future.
alias dev='docker run -it --rm -v `pwd`:/workspace finaldie/dev'If we want to build it from scratch, follow the step 1 to 4 :)
First click Fork Button, then clone the code from your own repository and install it
git clone git@github.com:$yourname/final_dev_env.git fenv
cd fenv
git submodule update --init
make-
After
make, you will see the following text:if [ -f /path/to/fenv/user_env/all.bashrc ]; then . /path/to/fenv/user_env/all.bashrc fi
-
Copy this into your own ~/.bash_profile
-
Restart Bash
NOTE: After that, the two global environment variables already there:
- FENV_HOME - All the bashrcs, git config and vim plugins here
- FENV_GIT - the place of this repository in your computer
All the vim plugins are managed by vim-plug, so you need to install them for the first time
- Run
vim +PlugInstall +qall
NOTE: You also can open vim and run :PluginInstall for the first time
NOTE: For updating plugins, you can run :PluginUpdate to update all your plugins
For who also install the YouCompleteMe, to complete this plugin's installation step:
- go to its folder
$FENV_HOME/vim/YouCompleteMe - Run
./install.py --clang-completer
If in Mac, use system clang sometimes may be a solution, but not recommended
- go to its folder
$FENV_HOME/vim/YouCompleteMe - Run
./install.py --clang-completer --system-libclang
NOTE: If you are a Mac User, please download the lastest MacVim.
Now, your development environment is ready, any question/problem please file an issue here. If you also like it, please Star it.
If you only want to update your vim plugins, just run the following in your shell:
bash$ vim +PluginUpdate +qall
make
NOTES: This won't break your vim plugins, only re-deploy your scripts/configs
To give a better experience, install SourceCodePro font for the terminal.
Download it and install it in the laptop, and configure it from the terminal settings.
If you have more suggestions or recommendations, it's great to send a pull request.
