informatique:linux:vimrc_ide
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:linux:vimrc_ide [2024/06/24 07:56] – admin | informatique:linux:vimrc_ide [2024/06/24 08:02] (Version actuelle) – admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | < | + | |
| - | " ------------------------------------------------------------ | + | " Load plugins |
| - | " Load plugins | + | " ------------------------------------------------------------ |
| - | " ------------------------------------------------------------ | + | |
| - | + | set nocompatible | |
| - | set nocompatible | + | filetype off |
| - | filetype off | + | |
| - | + | " Set the runtime path to include Vundle and initialize | |
| - | " Set the runtime path to include Vundle and initialize | + | set rtp+=~/ |
| - | set rtp+=~/ | + | |
| - | + | " Plugins will be downloaded under the specified directory. | |
| - | " Plugins will be downloaded under the specified directory. | + | call vundle# |
| - | call vundle# | + | |
| - | + | " Let Vundle manage Vundle, required | |
| - | " Let Vundle manage Vundle, required | + | Plugin ' |
| - | Plugin ' | + | |
| - | + | " Colorschemes | |
| - | " Colorschemes | + | Plugin ' |
| - | Plugin ' | + | Plugin ' |
| - | Plugin ' | + | Plugin ' |
| - | Plugin ' | + | Plugin ' |
| - | Plugin ' | + | Plugin ' |
| - | Plugin ' | + | Plugin ' |
| - | Plugin ' | + | Plugin ' |
| - | Plugin ' | + | |
| - | + | " PloyGlot | |
| - | " PloyGlot | + | Plugin ' |
| - | Plugin ' | + | |
| - | + | " Auto Pairs | |
| - | " Auto Pairs | + | Plugin ' |
| - | Plugin ' | + | |
| - | + | " NERDTree | |
| - | " NERDTree | + | Plugin ' |
| - | Plugin ' | + | |
| - | + | " Tagbar | |
| - | " Tagbar | + | Plugin ' |
| - | Plugin ' | + | |
| - | + | " ctrlsf.vim | |
| - | " ctrlsf.vim | + | Plugin' |
| - | Plugin' | + | |
| - | + | " vim-fswitch | |
| - | " vim-fswitch | + | Plugin ' |
| - | Plugin ' | + | |
| - | + | " vim-protodef | |
| - | " vim-protodef | + | Plugin ' |
| - | Plugin ' | + | |
| - | + | " List ends here. Plugins become visible to Vim after this call. | |
| - | " List ends here. Plugins become visible to Vim after this call. | + | call vundle# |
| - | call vundle# | + | filetype plugin indent on |
| - | filetype plugin indent on | + | |
| - | + | ||
| - | + | " ------------------------------------------------------------ | |
| - | " ------------------------------------------------------------ | + | " auto-pairs configuration |
| - | " auto-pairs configuration | + | " ------------------------------------------------------------ |
| - | " ------------------------------------------------------------ | + | |
| - | + | let g: | |
| - | let g: | + | |
| - | + | ||
| - | + | " ------------------------------------------------------------ | |
| - | " ------------------------------------------------------------ | + | " NERDTree configuration |
| - | " NERDTree configuration | + | " ------------------------------------------------------------ |
| - | " ------------------------------------------------------------ | + | |
| - | + | let NERDTreeShowBookmarks = 1 | |
| - | let NERDTreeShowBookmarks = 1 | + | let NERDTreeShowHidden = 1 |
| - | let NERDTreeShowHidden = 1 | + | let NERDTreeShowLineNumbers = 0 |
| - | let NERDTreeShowLineNumbers = 0 | + | let NERDTreeMinimalMenu = 1 |
| - | let NERDTreeMinimalMenu = 1 | + | let NERDTreeWinPos = " |
| - | let NERDTreeWinPos = " | + | let NERDTreeWinSize = 31 |
| - | let NERDTreeWinSize = 31 | + | |
| - | + | ||
| - | + | " ------------------------------------------------------------ | |
| - | " ------------------------------------------------------------ | + | " tagbar configuration |
| - | " tagbar configuration | + | " ------------------------------------------------------------ |
| - | " ------------------------------------------------------------ | + | |
| - | + | let g: | |
| - | let g: | + | let g: |
| - | let g: | + | let g: |
| - | let g: | + | |
| - | + | ||
| - | + | " ------------------------------------------------------------ | |
| - | " ------------------------------------------------------------ | + | " ctrlsf configuration |
| - | " ctrlsf configuration | + | " ------------------------------------------------------------ |
| - | " ------------------------------------------------------------ | + | |
| - | + | let g: | |
| - | let g: | + | let g: |
| - | let g: | + | let g: |
| - | let g: | + | let g: |
| - | let g: | + | let g: |
| - | let g: | + | let g: |
| - | let g: | + | let g: |
| - | let g: | + | let g: |
| - | let g: | + | let g: |
| - | let g: | + | let g: |
| - | let g: | + | |
| - | + | ||
| - | + | " ------------------------------------------------------------ | |
| - | " ------------------------------------------------------------ | + | " fswitch configuration |
| - | " fswitch configuration | + | " ------------------------------------------------------------ |
| - | " ------------------------------------------------------------ | + | " |
| - | " | + | " Set fswichdst and fswitchloc variables when BufEnter event takes place |
| - | " Set fswichdst and fswitchloc variables when BufEnter event takes place | + | " on a file whose name matches {*.cpp}. |
| - | " on a file whose name matches {*.cpp}. | + | |
| - | + | au! BufEnter *.cpp let b: | |
| - | au! BufEnter *.cpp let b: | + | au! BufEnter *.h let b: |
| - | au! BufEnter *.h let b: | + | |
| - | + | " fswitchdst | |
| - | " fswitchdst | + | " |
| - | " | + | " |
| - | " | + | " fswitchlocs - Contains a set of directories that indicate directory names |
| - | " fswitchlocs - Contains a set of directories that indicate directory names | + | " |
| - | " | + | " |
| - | " | + | |
| - | + | " ------------------------------------------------------------ | |
| - | " ------------------------------------------------------------ | + | " vim-protodef configuration |
| - | " vim-protodef configuration | + | " ------------------------------------------------------------ |
| - | " ------------------------------------------------------------ | + | |
| - | + | nmap < | |
| - | nmap < | + | nmap < |
| - | nmap < | + | |
| - | + | " NOTE: This doesn' | |
| - | " NOTE: This doesn' | + | let g: |
| - | let g: | + | |
| - | + | ||
| - | + | " ------------------------------------------------------------ | |
| - | " ------------------------------------------------------------ | + | " Vim configuration |
| - | " Vim configuration | + | " ------------------------------------------------------------ |
| - | " ------------------------------------------------------------ | + | |
| - | + | "set nu " Enable line numbers | |
| - | "set nu " Enable line numbers | + | syntax on " |
| - | syntax on " | + | set incsearch |
| - | set incsearch | + | set hlsearch |
| - | set hlsearch | + | set splitbelow |
| - | set splitbelow | + | set mouse=a |
| - | set mouse=a | + | set tabstop=4 |
| - | set tabstop=4 | + | set shiftwidth=4 |
| - | set shiftwidth=4 | + | set expandtab |
| - | set expandtab | + | |
| - | + | if !has(' | |
| - | if !has(' | + | set termwinsize=12x0 |
| - | set termwinsize=12x0 | + | endif |
| - | endif | + | |
| - | + | set background=dark | |
| - | set background=dark | + | " |
| - | " | + | |
| - | + | ||
| - | + | " ------------------------------------------------------------ | |
| - | " ------------------------------------------------------------ | + | " Key mappings |
| - | " Key mappings | + | " ------------------------------------------------------------ |
| - | " ------------------------------------------------------------ | + | |
| - | + | " General | |
| - | " General | + | nmap < |
| - | nmap < | + | nmap < |
| - | nmap < | + | |
| - | + | " NERDTree | |
| - | " NERDTree | + | nmap < |
| - | nmap < | + | |
| - | + | " tagbar | |
| - | " tagbar | + | nmap < |
| - | nmap < | + | |
| - | + | " ctrlds | |
| - | " ctrlds | + | nmap < |
| - | nmap < | + | xmap < |
| - | xmap < | + | xmap < |
| - | xmap < | + | nmap < |
| - | nmap < | + | nmap < |
| - | nmap < | + | nnoremap |
| - | nnoremap | + | nnoremap |
| - | nnoremap | + | inoremap |
| - | inoremap | + | |
| - | + | " fswitch | |
| - | " fswitch | + | nmap < |
| - | nmap < | + | |
| - | + | set mouse=r | |
| - | </ | + | |
informatique/linux/vimrc_ide.1719215818.txt.gz · Dernière modification : de admin
