fredr a écritSalut,
Si il font des ... c'est qu'il ne sont pas mappés correctement, si tu tapes la commande :map, vois-tu tes F3 dans la liste?
Pour rappel dans ton fichier ~/.vimrc F3 et F4 doivent être écrits :
imap <F3> .......
Fred
PS: fais un
cat ~/.vimrc
pour voir si ton .vimrc est correct.
Justement dans mon vimrc il n'y a rien avec f3 ou f4 et quand je tappe :map ils n'apparaissent pas non plus c'est pour ça que je comprend pas pourquoi ils ne marchent pas.
" Basics
"-------------------------------------------------------------
set nocompatible " get out of horrible vi-compatible mode
set background=dark " we are using a dark background
syntax on " syntax highlighting on
colors elflord " theme de couleur (pour voir les themes dispo => :colorsheme <tab>)
start " ouvre vim en mode insert par defaut !
"Utiliser des commandes windows
"-------------------------------------
source $HOME/.vim/mswin.vim
behave mswin
" General
"-----------------------------------------------------------------------------------------
set history=1000 " How many lines of history to remember
set clipboard+=unnamed " turns out I do like is sharing windows clipboard
set fileformats=unix,dos,mac " support all three, in this order
set viminfo+=! " make sure it can save viminfo
set iskeyword+=_,$,@,%,# " none of these should be word dividers, so make them not be
set selectmode=mouse " active la selection à la souris
set undolevels=150 " undo, pour revenir en arrière
set autoread " Quand un fichier est changé en dehors de Vim, il est relu automatiquement
" Vim UI
"--------------------------------------------------------------------------------------------------
set popt+=syntax:y " Syntax when printing
set showcmd " show the command being typed
set linespace=0 " space it out a little more (easier to read)
set wildmenu " turn on wild menu
set wildmode=list:longest " turn on wild menu in special format (long format)
set wildignore=*.dll,*.o,*.obj,*.bak,*.exe,*.pyc,*.swp,*.jpg,*.gif,*.png " ignore some formats
set ruler " Always show current positions along the bottom
set cmdheight=1 " the command bar is 1 high
set number " turn on line numbers
set numberwidth=4 " If we have over 9999 lines, ohh, boo-hoo
set lazyredraw " do not redraw while running macros (much faster) (LazyRedraw)
set hidden " you can change buffer without saving
set backspace=indent,eol,start " autorisation du retour arriere
set backspace=2 " make backspace work normal
set whichwrap+=<,>,[,],h,l " backspace and cursor keys wrap to
set mouse=a " use mouse everywhere
set shortmess=atI " shortens messages to avoid 'press a key' prompt
set report=0 " tell us when anything is changed via :...
set noerrorbells " don't make noise
set list " we do what to show tabs, to ensure we get them out of my files
set listchars=tab:>-,trail:- " show tabs and trailing whitespace
" Visual Cues
"--------------------------------------------------------------------------------------
set showmatch " show matching brackets
set matchtime=5 " how many tenths of a second to blink matching brackets for
set nohlsearch " do not highlight searched for phrases
set incsearch " BUT do highlight as you type you search phrase
set scrolloff=5 " Keep 5 lines (top/bottom) for scope
set sidescrolloff=5 " Keep 5 lines at the size
set laststatus=2 " Afficher en permanence la barre d'état (en plus de la barre de commande)
set statusline=%<%f%m\ %r\ %h\ %w%=%l,%c\ %p%%
" Les indentation
"-------------------------------------------------------------------------------------
set smartindent " smartindent (filetype indenting instead)
set autoindent " autoindent (should be overwrote by cindent or filetype indent)
set cindent " do c-style indenting
"set expandtab " indent invisible
set softtabstop=4 " nombre de tabulation pour l'indentation
set shiftwidth=4 " nombre d'espace pour la tabulation
set tabstop=4 " real tabs should be 4, but they will show with set list on
filetype plugin indent on
" aucun backup
"------------------
set nobackup
set nowritebackup
" foldings
"------------------
set viewdir=$HOME/.vim/saveview/ " repertoire pour sauvegarder les vues
set fdm=indent " Repli selon l'indentation
set foldcolumn=2 " colonne de replis(fold colding)
set foldlevel=100 " Don't autofold anything
au BufWinLeave *.pl mkview " sauvegarde automatique des vues ...
au BufWinEnter *.pl silent loadview " ... utile pour les replis manuels
" Dernière ligne en cours d'édition
"------------------------------------------------------------------
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g'\"" | endif
endif
" Touche espace pour eteindre les messages alertes
"---------------------------------------------------
noremap <silent> <Space> :silent noh<Bar>echo<CR>
" Quitter plus vite !
"--------------------------
inoremap <c-q> <esc>:q<cr>
vnoremap <c-q> <esc>:q<cr>
nnoremap <c-q> :q<cr>
" Ajouter enlever des commentaires #
"-------------------------------------------------------
inoremap <F6> <esc>:s/^/#/<CR>:silent noh<Bar>echo<CR>i
vnoremap <F6> <esc>:s/^/#/<CR>:silent noh<Bar>echo<CR>i
nnoremap <F6> :s/^/#/<CR>:silent noh<Bar>echo<CR>i
inoremap <F7> <esc>:s/^#//<CR>:silent noh<Bar>echo<CR>i
vnoremap <F7> <esc>:s/^#//<CR>:silent noh<Bar>echo<CR>i
nnoremap <F7> :s/^#//<CR>:silent noh<Bar>echo<CR>
" Place le curseur a l'interieur ...
"------------------------------------
inoremap (( ()<Esc>i
inoremap [[ []<Esc>i
inoremap {{ {}<Esc>i
inoremap {<CR> {<CR>}<Esc>O<Tab>
inoremap "" ""<Esc>i
inoremap '' ''<Esc>i