Sep 20, 2010

Vim Option

Create un archivo llamado .vimrc en tu home

cat >> ~/.vimrc
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set smarttab
set smartindent
set number
syntax on

Apreta CTRL+D

Cuando quieras pegar en un archivo abierto con el vim y se ves que la indentacion sale mal proba con esto
vim file.x
:set paste
"Pega la informacion que queres "
:set nopaste
:wq


Si queres ver en mas detalle fijate en vim options

No comments:

Post a Comment