Y el domingo 11 de febrero, Antonio Lemus escribi�: > Como puedo configurar el vim para que cuando entre me despliegue el texto > en color sin estar que poniendo en la linea de comando syntax on > Poniendo en ~/.vimrc ----------- CUT --------------- " Vim " An example for a vimrc file. " " To use it, copy it to " for Unix and OS/2: ~/.vimrc " for Amiga: s:.vimrc " for MS-DOS and Win32: $VIM\_vimrc
syntax on
----------- CUT -----------------
Y ya puestos le puedes a�adir un par de cosillas m�s.
----------- CUT -----------------
set autowrite
set nowrap
set nocompatible " Use Vim defaults (much better!)
set bs=2 " allow backspacing over everything in insert mode
set ai " always set autoindenting on
set tw=78 " always limit the width of text to 78
set backup " keep a backup file
set viminfo='20,\"50 " read/write a .viminfo file, don't store more
" than 50 lines of registers
set ic " Ignore case in searchs
set hlsearch " Highlight search
set incsearch " Incremental search
set ruler
set shiftwidth=4
set ts=8
set
suffixes=.bak,.BAK,~,.h,.info,.swp,.aux,.bbl,.blg,.dvi,.lof,.log,.lot,.ps,.toc
"---------------- Mapping -----------
map Q gq
map I :let @a=line(".")<CR>:%!indent<CR>@agg
map c :w:!ispell %:e %
--------------- CUT ---------------
HTH
Saludos
--
Luis Arocha Hernandez "Data" <[EMAIL PROTECTED]>, Islas Canarias - Spain
_ o__o__ o__ O_ O O
o</ ,>/,>/ ,>/ ,// ,/\ ,/|
_____()_\()___________________()_()_\(()_\()__()_\()_____()_<()__()_<()____
pgpcDkTquDlt2.pgp
Description: PGP signature

