Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |||
debian:etape_2_installation_base [2010/01/17 11:12] – smolski | debian:etape_2_installation_base [2010/01/17 19:25] (Version actuelle) – smolski | ||
---|---|---|---|
Ligne 15: | Ligne 15: | ||
| | ||
+ | |||
+ | ===== Installation de VIm ===== | ||
+ | |||
+ | VIm est un éditeur de fichier tout à fait remarquable, | ||
+ | |||
+ | ==== Installer ==== | ||
+ | |||
+ | # aptitude install vim-nox vim-scripts exuberant-ctags | ||
+ | |||
+ | ==== VIm par défaut ==== | ||
+ | |||
+ | Placez '' | ||
+ | |||
+ | # update-alternatives --set editor / | ||
+ | |||
+ | <note important>'' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ==== Configuration de VIm ==== | ||
+ | |||
+ | vim se configure dans le fichier ''/ | ||
+ | |||
+ | Pour exemple, voici le mien : | ||
+ | |||
+ | < | ||
+ | " / | ||
+ | " you can find below. | ||
+ | " do it in this file (/ | ||
+ | " everytime an upgrade of the vim packages is performed. | ||
+ | " make changes after sourcing debian.vim since it alters the value of the | ||
+ | " ' | ||
+ | |||
+ | " This line should not be removed as it ensures that various options are | ||
+ | " properly set to work with the Vim-related packages available in Debian. | ||
+ | runtime! debian.vim | ||
+ | |||
+ | " Uncomment the next line to make Vim more Vi-compatible | ||
+ | " NOTE: debian.vim sets ' | ||
+ | " options, so any other options should be set AFTER setting ' | ||
+ | "set compatible | ||
+ | |||
+ | " Vim5 and later versions support syntax highlighting. Uncommenting the next | ||
+ | " line enables syntax highlighting by default. | ||
+ | syntax on | ||
+ | |||
+ | " If using a dark background within the editing area and syntax highlighting | ||
+ | " turn on this option as well | ||
+ | set background& | ||
+ | |||
+ | " Uncomment the following to have Vim jump to the last position when | ||
+ | " reopening a file | ||
+ | "if has(" | ||
+ | " | ||
+ | " | ||
+ | "endif | ||
+ | |||
+ | " Uncomment the following to have Vim load indentation rules and plugins | ||
+ | " according to the detected filetype. | ||
+ | "if has(" | ||
+ | " | ||
+ | "endif | ||
+ | |||
+ | " The following are commented out as they cause vim to behave a lot | ||
+ | " differently from regular Vi. They are highly recommended though. | ||
+ | "set showcmd | ||
+ | "set showmatch | ||
+ | "set ignorecase | ||
+ | "set smartcase | ||
+ | "set incsearch | ||
+ | "set autowrite | ||
+ | "set hidden | ||
+ | "set mouse=a | ||
+ | set number | ||
+ | set cursorline | ||
+ | highlight CursorLine ctermbg=grey | ||
+ | |||
+ | " Source a global configuration file if available | ||
+ | " XXX Deprecated, please move your changes here in / | ||
+ | if filereadable("/ | ||
+ | source / | ||
+ | endif | ||
+ | |||
+ | </ | ||
+ | Il en est de multiples exemples bien plus élaborés qu' | ||
+ | |||
+ | ===== Installation de MC (midnight commander) ===== | ||
+ | |||
+ | '' | ||
+ | |||
+ | # aptitude install mc | ||
+ | |||
+ | == Note : == | ||
+ | |||
+ | '' | ||
+ | $ mcedit | ||
+ | //Mais à quoi bon que '' | ||
+ | |||
+ | ===== Gestion des priorités - le fichier Preferences ===== | ||
+ | |||
+ | * Créez et éditez le fichier des '' | ||
+ | |||
+ | # vim / | ||
+ | |||
+ | * Et écrivez : | ||
+ | |||
+ | Package: * | ||
+ | Pin: release o=Debian, | ||
+ | Pin-priority: | ||
+ | | ||
+ | Package: * | ||
+ | Pin: release o=Unofficial Multimedia Packages, | ||
+ | Pin-priority: | ||
+ | | ||
+ | Package: * | ||
+ | Pin: release o=Backports.org archive, | ||
+ | Pin-priority: | ||
+ | |||
+ | Les priorités peuvent être vérifiées avec la commande : | ||
+ | |||
+ | # apt-cache policy | ||
+ | |||
+ | ===== Configurations des premiers outils ===== | ||
+ | |||
+ | ==== Complétion avec bash ==== | ||
+ | |||
+ | === Installation === | ||
+ | |||
+ | Installer les paquets nécessaires : | ||
+ | |||
+ | $ sudo aptitude install bash-completion | ||
+ | |||
+ | === Configuration === | ||
+ | |||
+ | Editez le fichier '' | ||
+ | |||
+ | # vim / | ||
+ | |||
+ | Les lignes suivantes ne doivent pas être commentées : | ||
+ | |||
+ | < | ||
+ | . / | ||
+ | fi | ||
+ | </ | ||
===== Outils d' | ===== Outils d' |