Archivo de configuración VIMrc 01-mar-09
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set tabstop=4
set shiftwidth=4
set softtabstop=4
set smarttab
set hls ic
set ruler
syntax on
set nu
set autoindent
set tw=80
set ignorecase
set nocursorline
"colorscheme murphy
colorscheme miesquema
set guifont=Courier_New:h9:cANSI
set errorbells
set lbr!
map ,n :tabnew
map ,1 :tabprevious
map ,0 :tabnext
map ,ah
map ,dl
map ,wk
map ,sj
map :w
"imap
imap
nmap
nmap
nmap 0i//j
nmap 0xxj
ab \1 /**
ab \b \brief
ab \p \param
ab \r \return
ab \f \file
ab \d \date=strftime("%d-%b-%Y")
ab \a \author
"ab \zi/JI
ab \m /** \mainpage
ab \t \todo
ab \w \warning
ab \v \version
ab \g \bug
ab \s \see
ab \\ //!<
ab \* /**< */2hi
ab #d #define
ab #i #include
ab ## #ifdef comment
ab #e #endif // comment
set visualbell
"syntax on
set ruler
set wrap
"set tabstop=4
"set shiftwidth=4
"set showmatch
set ai
set sm
"set smarttab
set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
let arg1 = v:fname_in
if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
let arg2 = v:fname_new
if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
let arg3 = v:fname_out
if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
let eq = ''
if $VIMRUNTIME =~ ' '
if &sh =~ '\ let cmd = '""' . $VIMRUNTIME . '\diff"'
let eq = '"'
else
let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
endif
else
let cmd = $VIMRUNTIME . '\diff'
endif
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
endfunction
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set tabstop=4
set shiftwidth=4
set softtabstop=4
set smarttab
set hls ic
set ruler
syntax on
set nu
set autoindent
set tw=80
set ignorecase
set nocursorline
"colorscheme murphy
colorscheme miesquema
set guifont=Courier_New:h9:cANSI
set errorbells
set lbr!
map ,n :tabnew
map ,1 :tabprevious
map ,0 :tabnext
map ,a
map ,d
map ,w
map ,s
map
"imap
imap
nmap
nmap
nmap
nmap
ab \1 /**
ab \b \brief
ab \p \param
ab \r \return
ab \f \file
ab \d \date
ab \a \author
"ab \z
ab \m /** \mainpage
ab \t \todo
ab \w \warning
ab \v \version
ab \g \bug
ab \s \see
ab \\ //!<
ab \* /**< */
ab #d #define
ab #i #include
ab ## #ifdef comment
ab #e #endif // comment
set visualbell
"syntax on
set ruler
set wrap
"set tabstop=4
"set shiftwidth=4
"set showmatch
set ai
set sm
"set smarttab
set diffexpr=MyDiff()
function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
let arg1 = v:fname_in
if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
let arg2 = v:fname_new
if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
let arg3 = v:fname_out
if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
let eq = ''
if $VIMRUNTIME =~ ' '
if &sh =~ '\
let eq = '"'
else
let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
endif
else
let cmd = $VIMRUNTIME . '\diff'
endif
silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
endfunction
Comentarios