Provided, you have you vim configuration in ~/.vim
, do:
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Then:
vim +PlugInstall
Have a look into ./extras for system wide node and python tools and a script for generating a .vscode configuration for Plone projects.
Install:
https://github.com/junegunn/fzf https://github.com/junegunn/fzf.vim https://github.com/sharkdp/fd
Add to your .bashrc or similar:
# FZF [ -f ~/.fzf.bash ] && source ~/.fzf.bash # https://github.com/junegunn/fzf#environment-variables export FZF_DEFAULT_COMMAND="fdfind --type f"
Now, fzf uses fdfind. fdfind respects a .gitignore and does not include ignored files and directories in it's result set. with a multi-project repository where the project-build-root has a gitignore excluding all other repositories (like a typical Plone buildout project), you might not find what you want. Therefore, add a .ignore which excludes some of the git-ignored directories, like so:
!/src !/src/* !/parts !/parts/* !/parts/omelette !/parts/omelette/*
Have some node packages installed. An example package.json
, but I'm not sure yet, if everything is needed or if I forgot something:
{ "name": "npm-tools", "version": "1.0.0", "dependencies": { "@prettier/plugin-xml": "^2.2.0", "bash-language-server": "3.1.0", "dockerfile-language-server-nodejs": "0.9.0", "eslint": "8.24.0", "javascript-typescript-langserver": "*", "neovim": "4.10.1", "prettier": "2.7.1", "stylelint": "14.13.0", "stylelint-processor-styled-components": "*", "tslint": "*", "typescript": "4.8.4", "vscode-css-languageserver-bin": "*", "vscode-html-languageserver-bin": "*", "vscode-json-languageserver-bin": "*", "vue-language-server": "*" }, }
Add your node_modules bin directory to the PATH:
export PATH=PATH/TO/node_modules/.bin:$PATH
Have some python packages installed:
python -m venv . bin/pip install -r requirements.txt
Where requirements.txt is something like:
bandit # https://github.com/PyCQA/bandit black docformatter isort < 5 pep8 pylint pynvim ### FLAKE8 flake8 # flake8 5.0.4 dependencies mccabe>=0.7.0,<0.8.0 pycodestyle>=2.9.0,<2.10.0 pyflakes>=2.5.0,<2.6.0 #pycodestyle #pyflakes #mccabe ### PYTHON LANGUAGE SERVER jedi-language-server jedi
Add your virtual env's ./bin directory to the PATH - this way pyls is found if you start nvim in the buildout-root directory:
export PATH=PATH/TO/bin:$PATH
In your vim config, set these (See init.vim
):
let g:python3_host_prog = 'PATH/TO/bin/python' let g:node_host_prog = 'PATH/TO/node_modules/.bin/neovim-node-host'
To try out:
https://github.com/fanyun-sun/CoVim https://github.com/FredKSchott/CoVim https://github.com/Floobits/floobits-neovim https://github.com/typeintandem/tandem https://github.com/typeintandem/nvim https://teletype.atom.io/ https://github.com/atom/teletype https://github.com/atom/teletype-client https://github.com/atom/teletype-server https://www.emacswiki.org/emacs/CollaborativeEditing
https://github.com/prettier/prettier https://prettier.io/ https://github.com/w0rp/ale https://github.com/vuejs/vetur/tree/master/server https://github.com/prettier/prettier-eslint https://github.com/prettier/eslint-plugin-prettier https://eslint.org/docs/user-guide/configuring https://htmlhint.io/ https://github.com/htmlhint/HTMLHint https://github.com/maralla/completor.vim
https://pipenv.readthedocs.io/en/latest/basics/ https://github.com/pypa/pipenv https://github.com/pyenv/pyenv pypa/pipenv#3241
https://github.com/davidhalter/jedi https://github.com/palantir/python-language-server
https://github.com/rupert/pyls-black https://github.com/paradoxxxzero/pyls-isort
https://github.com/mads-hartmann/bash-language-server https://github.com/rcjsuen/dockerfile-language-server-nodejs https://github.com/sourcegraph/javascript-typescript-langserver https://github.com/vscode-langservers/vscode-css-languageserver-bin
https://github.com/felixfbecker/php-language-server
composer require felixfbecker/language-server
I personally do not install these node modules globally with the -g
option but instead have them in my ~/node_modules/
.
I have all node modules which I regulary need to use in my systems PATH
.
Node modules used by this vim configuration:
npm install eslint npm install babel-eslint npm install eslint-plugin-react npm install js-beautify npm install csscomb npm install cssbrush npm install html-beautify
Note
The following is outdated and not checked for validity.
Ubuntu (tested with: 10.10):
% sudo apt-add-repository ppa:passy/vim % sudo add-apt-repository ppa:jerome-etienne/neoip % sudo apt-get update % sudo apt-get install vim git-core ruby-dev rake ack-grep nodejs
cd ~ git clone git@github.com:garbas/dotfiles-vim.git .vim ln -s .vim/config-XYZ .vimrc cd .vim git submodule update --init
% git pull % git submodule update --init % cd addons/Command-T % rake make
In vim, run :UpdateAddons from time to time.
Find more information about vam here: https://github.com/MarcWeber/vim-addon-manager/blob/master/doc/vim-addon-manager.txt
build command-t bundle (this you have to do each time you upgrade command-t bundle):