My vim configuration (~/.vimrc, ~/.vim).
ファイルへ移動
Simon Vieille 78c59cf2bf
add vim-which-key ahd vim-chatgpt
2023-08-02 09:33:46 +02:00
vim update configuration 2023-07-19 14:42:18 +02:00
.gitignore Configuration refactored 2016-10-27 00:54:46 +02:00
README.md add documentation 2020-11-20 22:24:44 +01:00
vimrc add vim-which-key ahd vim-chatgpt 2023-08-02 09:33:46 +02:00

README.md

My vim configuration

Made for php developments.

Installation

First, move to your home directory: cd $HOME

Dependencies

Packages for Debian GNU/Linux. You have to adapt it for your system.

$ sudo apt install \
vim \
vim-athena \
vim-common \
vim-gtk \
vim-gui-common \
vim-nox \
vim-runtime \
vim-scripts \
vim-tiny \
wget \
git \
exuberant-ctags \
nodejs \
fzf

PHP-CS-Fixer:

$ wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v1.12.3/php-cs-fixer.phar
$ chmod +x php-cs-fixer.phar

Instant Markdown preview:

$ sudo npm -g install instant-markdown-d

Notify me if I forgot something :)

Do backups if needed:

$ [ -f .vimrc ] && mv .vimrc .vimrc-back
$ [ -d .vim ] && mv .vim .vim-back

Cloning the configuration

$ git clone https://gitnet.fr/deblan/dotvim.git deblan-vim
$ ln -rs deblan-vim/vimrc .vimrc
$ ln -rs deblan-vim/vim .vim

Plugins

$ git clone https://github.com/VundleVim/Vundle.vim.git .vim/bundle/Vundle.vim
$ vim +PluginInstall +qall

Hack the conf!

  • let g:snips_author = "Your username"
  • let g:snips_email = "Your email"
  • let g:snips_github = "Your website"

GVim is configured to use Fantasque Sans Mono: https://fontlibrary.org/en/font/fantasque-sans-mono 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/.