dotvim/README.md

79 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2016-10-28 00:24:08 +02:00
My vim configuration
====================
2015-07-02 10:45:19 +02:00
2016-10-28 00:24:08 +02:00
Made for php developments.
## Installation
2017-02-07 00:08:38 +01:00
First, move to your home directory: `cd $HOME`
### Dependencies
2017-04-21 22:55:22 +02:00
Packages for Debian GNU/Linux. You have to adapt it for your system.
2017-02-07 00:08:38 +01:00
```
2017-04-21 22:55:22 +02:00
$ sudo apt install \
2017-02-07 00:08:38 +01:00
vim \
vim-athena \
vim-common \
vim-gtk \
vim-gui-common \
vim-nox \
vim-runtime \
vim-scripts \
vim-tiny \
wget \
git \
2017-04-21 22:55:22 +02:00
exuberant-ctags \
2020-11-20 22:24:44 +01:00
nodejs \
fzf
2017-04-21 22:55:22 +02:00
```
PHP-CS-Fixer:
```
2017-02-07 00:08:38 +01:00
$ wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v1.12.3/php-cs-fixer.phar
$ chmod +x php-cs-fixer.phar
```
2017-04-21 22:55:22 +02:00
Instant Markdown preview:
```
$ sudo npm -g install instant-markdown-d
```
2017-02-07 00:08:38 +01:00
Notify me if I forgot something :)
**Do backups if needed:**
2016-10-28 00:24:08 +02:00
```
$ [ -f .vimrc ] && mv .vimrc .vimrc-back
$ [ -d .vim ] && mv .vim .vim-back
2017-02-07 00:08:38 +01:00
```
### Cloning the configuration
```
2017-04-21 22:55:22 +02:00
$ git clone https://gitnet.fr/deblan/dotvim.git deblan-vim
2016-10-28 00:24:08 +02:00
$ ln -rs deblan-vim/vimrc .vimrc
$ ln -rs deblan-vim/vim .vim
2017-02-07 00:08:38 +01:00
```
### Plugins
```
2016-10-28 00:24:08 +02:00
$ git clone https://github.com/VundleVim/Vundle.vim.git .vim/bundle/Vundle.vim
$ vim +PluginInstall +qall
```
2017-02-07 00:08:38 +01:00
### Hack the conf!
2016-10-28 00:24:08 +02:00
* `let g:snips_author = "Your username"`
* `let g:snips_email = "Your email"`
* `let g:snips_github = "Your website"`
2017-02-07 00:08:38 +01:00
2019-03-28 13:20:46 +01:00
GVim is configured to use `Fantasque Sans Mono`: https://fontlibrary.org/en/font/fantasque-sans-mono
2017-02-07 00:08:38 +01:00
If you want to use another one, edit `set guifont=Fantasque\ Sans\ Mono\ 14`.
`F1` is mapped to run a script named `indentation`. It's a personal and ugly script that indents the html, css and javascript. If you want to use it, you must install `node` and run `sudo cp .vim/bin/* /usr/local/bin/`.