My config for Vim. I'm JavaScript Node developer. Also use in my job pythone.
First of all want to say thanks to all authors of plugins. Awesome job!
:Npm <command> [options..]
- use npm inside file:Gist -s comment
- publish gist:Gist -l
- get gists list:Gist -c u1y4o34o234134
- open gist:Gist -d
delete current opened gist
You need Vim 8+
installed. Just clone this repo to your ~/.vim
directory:
[pinkyrabbit@mypc ~]$ git clone https://github.com/PinkyRabbit/nodejs-python-vim-config.git .vim
Open your ~/.vim/.vimrc
file and installation will start automatically:
vim ~/.vim/.vimrc
Wait until it end. Symlinking .vimrc
to home root by:
sudo ln -s ~/.vim/.vimrc .vimrc
The most powerfull feature for js coding is snippents. But we need YCM. It is autocomplete. We install autocomplete for JS and Pythone with commands:
mkdir -p ~/.vim/bundle/YouCompleteMe/third_party/ycmd
cd ~/.vim/bundle/YouCompleteMe
sudo chmod 777 -R ~/.vim/bundle/YouCompleteMe/third_party/ycmd
./install.py --js-completer
sudo chmod 555 -R ~/.vim/bundle/YouCompleteMe/third_party/ycmd
If you know other path to install js-completer - you are welcome.
I tryed some color schemes and best looking was Material Monokai Color Scheme for Vim thats why I propose it to you. I included it in repo. Hope Steven Kielbasa will agree with decision.
Disabled now
I use Unite
for file navigation. This is very powerfull tool, but most documentation maked on japanise. But this plugin even out of the box sooooo good that you dont need any documentanion atall. Just type :Unite
and you in menu.
I dont using YouCompleteMe
with tern. I tryed, but... it was not such good. Snippets for JS development mach better!
- html
- full list of honza's snippets
(Honza's snippets commented! if you want to use it you must open it into
.vimrc
) - ES6
- React
I created cheatsheet for fast lerning hotkeys.
Most people are fans of prettier
, but not me. I enjoy hard coding ESLint/AIRBnb-style. If you not - look to prettier
+ neoformat
for Vim. That is strong bundle, but I go other way. I use autoformat
+ fixmyjs
To use gist you need to set up your local gitconfig. Create token into your GitHub account with gist
and add it to .gist-vim
file