Vim

Posted on ven. 03 décembre 2010 in Linux

Installation du gestionnaire de plugins

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
vim ~/.vimrc
    set nocompatible              " be iMproved, required
    filetype off                  " required

    " set the runtime path to include Vundle and initialize
    set rtp+=~/.vim/bundle/Vundle.vim
    call vundle#begin()
    " alternatively, pass a path where Vundle should install plugins
    "call vundle#begin('~/some/path/here')

    " let Vundle manage Vundle, required
    Plugin 'VundleVim/Vundle.vim'

    " Add your plugins here

    " All of your Plugins must be added before the following line
    call vundle#end()            " required
    filetype plugin indent on    " required

ColorSheme

Ajouter la ligne suivante dans le fichier ~/.vimrc :

Plugin 'mhartington/oceanic-next'

et

" Theme
syntax enable
set t_Co=256
colorscheme OceanicNext
set background=dark

Taper la commande suivante : vim +PluginInstall +qall

Syntaxe manquante

nginx

cd ~
wget -O nginx.vim http://www.vim.org/scripts/download_script.php\?src_id\=19394
mkdir -p ~/.vim/syntax
mv nginx.vim ~/.vim/syntax/
# vim ~/.vim/filetype.vim
au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/conf/* if &ft == '' | setfiletype nginx | endif