First download and create a link for vimrc
git clone --recursive https://github.com/carlosmaniero/vim.git .vim
ln -s ~/.vim/vimrc ~/.vimrc
$ sudo pip install flake8
To use vim-airline you can download the powerlines-fonts from github and put in your ~/.fonts.
If you no have ~/.fonts path
git clone https://github.com/Lokaltog/powerline-fonts ~/.fonts
After putting the fonts in ~/.fonts you need clean the font cache.
fc-cache -vf ~/.fonts
If you want use vim in terminal you must configure manually the font in your terminal preference. By default I use Meslo LG S Regular for Powerline.
For set virtual env you can create a .vim with the project config, eg.:
**project.vim**
python activate_this = '/path/absolute/to/your/virtualenv/bin/activate_this.py'
python execfile(activate_this, dict(__file__=activate_this))
cd /path/to/your/project
To load this file use the "source" command
:source project.vim
Command | Description |
---|---|
< C-v > | Enter in visual mode (selction) |
< C-y > | Copy selected content |
p | Paste |
x | Cut selected content |
< C-R > * | Past from clipboard |
d | Delete selected content |
dd | Delete line |
> | Indent selected content |
< | De-indent selected content |
< C-Left > | Previous Tab |
< C-Right > | Next tab |
That will enable CSS auto-completion in Vim. To use it, press Ctrl + x followed by Ctrl + o while partially typing CSS codes.
Start typing and press < C-y > ,
Command | Description |
---|---|
\d | Go to definition |
\g | Goto assignments |
< C-Space > | AutoComplete |
K | Show documentation |
\r | Rename |
\n | Show all usages |
Command | Description |
---|---|
:Git add < file > | Add a file |
:Git add % | Add current file |
:GCommit | Commit |
:Git < command > | Run a git command |
< F3 > | Add all files in Git |
< F4 > | Add current file in Git |
< F5 > | git pull |
< F6 > | git commit |
< F7 > | git push |
To resolve commit see this tutorial
< C-t > To open and close NERDTree
:ConqueTerm or :ConqueTermSplit with param bash, eg.:
:ConqueTermSplit bash