<![CDATA[Forum Ubuntu-fr.org / Comportement bizarre de mon vim]]> http://forum.ubuntu-fr.org/viewtopic.php?id=337767 Sun, 04 Oct 2009 19:48:42 +0000 FluxBB <![CDATA[Réponse à : Comportement bizarre de mon vim]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=2964944#p2964944 Je me permet un up…

]]>
Sun, 04 Oct 2009 19:48:42 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=2964944#p2964944
<![CDATA[Réponse à : Comportement bizarre de mon vim]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=2867720#p2867720 En fait, ça arrive de manière aléatoire, parfois même sans toucher à rien.

]]>
Thu, 13 Aug 2009 19:16:57 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=2867720#p2867720
<![CDATA[Comportement bizarre de mon vim]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=2867699#p2867699 Bonsoir,

Parfois, lorsque j'appuie sur la lettre k, vim affiche ceci au bas de l'écran :

[1-/home/michael/Math<e9>matiques/boris/boris.tex!]
-- Plus --

J'appuie sur "Entrée" et j'obtiens :

[1-/home/michael/Math<e9>matiques/boris/boris.tex!]

Appuyez sur ENTRÉE ou tapez une commande pour continuer

C'est très embétant et complétement inutile....


Sauriez-vous comment désactiver cela?

Je met mon vimrc à toutes fins utiles :

syntax on
au BufWinLeave * mkview
au BufWinEnter * silent loadview
autocmd BufRead,BufNewFile *.py syntax on 
autocmd BufRead,BufNewFile *.py set ai
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
set mouse=a
set background=dark
set spelllang=fr
set wildmenu
filetype plugin on
set grepprg=grep\ -nH\ $*
filetype indent on
set runtimepath+=/usr/share/vim/addons/
set number
au FileType tex call FT_tex()
autocmd BufRead,BufNewFile *.tex call FT_tex() 
function FT_tex() 
	map _eq i\begin{equation}<CR><CR>\end{equation}<Up>
	map _pma i\begin{pmatrix}<CR><CR>\end{pmatrix}<Up>
	map _ens i\left \{  \right \}<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>
	map _fra i\frac{}{}<Left><Left><Left>
	map _ite i\begin{itemize}<CR>\item{}<CR>\end{itemize}<Up><Left>
	map _enu i\begin{enumerate}<CR>\item{}<CR>\end{enumerate}<Up><Left>
	map _rée i\mathbb{R}
	"syn region MonRepli start="{" end="}" transparent fold
	"set foldmethod=syntax
	"set foldmarker=chapter,chapter
	"set foldmethod=marker
	"set foldtext=substitute(getline(v:foldstart),'{.*','{...}',)
	lo
	syn sync fromstart
endfunction
function TabWrapper()
	let col = col(".") - 1
	if col && getline(".")[0:col - 1] =~ '[.>a-zA-Z0-0_]'
		return "\<c-n>"
	else
		return "\<tab>"
	end
endfunction
inoremap <expr> <tab> TabWrapper()

Quand je fais un k majuscule, vim me renvoit sur la ligne de commande. J'ai apparement un problème avec mon k.

]]>
Thu, 13 Aug 2009 19:03:13 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=2867699#p2867699