Hola: Estoy migrando a vim y la función más importante que voy a usar con vim es la edición en docbook. Necesito una gestión de tags. He bajado el xmledit de sukima Source: <http://github.com/sukima/xmledit> la última que no esta en el repositorio vim. 1.9.4 Creo el vba con make sin problemas. lo abro con vim y le digo que so % todo perfecto Configuro el vimrc según las instrucciones pero no soy capaz de hacerlo funcionar. Igual como soy un newbie en vim he cargado demasiado el vimrc y hay alguna opción que se está pegando con el xml.vim Evidentemente hay algo que choca o que está mal configurado. Ni idea. Después de un montón de horas, os pregunto. Un saludo BasaBuru Tengo esto instalado de vim, puede faltar algo o sobrar no lo se: ii vim 2:7.3.154+hg~74503f6ee649-2+b1 Vi IMproved - enhanced vi editor ii vim-addon-manager 0.4.3 manager of addons for the Vim editor ii vim-common 2:7.3.154+hg~74503f6ee649-2+b1 Vi IMproved - Common files ii vim-doc 2:7.3.154+hg~74503f6ee649-2 Vi IMproved - HTML documentation ii vim-doc-es 0.6-1 Vi IMproved - Documentation files (Spanish translation) ii vim-runtime 2:7.3.154+hg~74503f6ee649-2 Vi IMproved - Runtime files ii vim-scripts 20091011 plugins for vim, adding bells and whistles Y el .vimrc es este: " Debian system-wide default configuration Vim set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim73,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after " Suffixes that get lower priority when doing tab completion for filenames. " These are files we are not likely to want to edit or read. set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc " Set paper size from /etc/papersize if available (Debian-specific) if filereadable("/etc/papersize") let s:papersize = matchstr(readfile('/etc/papersize', '', 1), '\p*') if strlen(s:papersize) exe "set printoptions+=paper:" . s:papersize endif endif " FUNCIONAMIENTO GENERAL set nocompatible " Activar modo de no compativilidad con Vi set history=50 " tamaño del historial de comandos set ttyfast " Terminal rápido set noerrorbells " Evita pitidos en caso de error set novisualbell " Evita advertencias de los errores set helplang=es " Idioma para la ayuda y los mensajes set autochdir " El directorio activo es el del fichero abierto set encoding=utf-8 " Codificación unicode utf-8 " VISUALIZACION set ruler " Activa la regla inferior set showmode " Activa la indicación de modos set showcmd " Activa la indicación de comandos syntax on " Activa coloreado de sintaxis set number " Muestra los números de línea set showmatch " Cuando se cierran paréntesis, llaves o chorchetes " muestra con qué cáracter coinciden. set background=light "establece colores suaves en el terminal "SANGRADO, SALTOS DE LINEA Y TABULADORES set wrap " Las líneas anchas se ven enteras en lineas falsas set backspace=indent,eol,start " more powerful backspacing set tabstop=4 " Define el tamaño en espacios de los tabuladores set softtabstop=3 " Saltos blandos de tabulador. Es decir: los " espacios en blano a insertar cada vez que se " pulse la tecla TAB. set shiftwidth=3 " Tamaño para el sangrado con los comandos <, > set expandtab " El tabulodor no inserta verdaderas tabulaciones " sino espacios en blanco set textwidth=75 " Ancho de línea set autoindent " Respeta automáticamente el sangrado de la " línea precedente set backspace=2 " Funcionamiento de la tecla retro runtime macros/justify.vim " Carga el paquete justify que habilita el " comando _j para justificar texto " BUSQUEDAS set hlsearch " Iluminar todas las apariciones de la cadena " buscada set ignorecase smartcase " Ignorar mayúsculas y minúsculas salvo si se " usan mayúsculas en la cadena de búsqueda set incsearch " Búsqueda incremental "BACKUP set backup " backup hace copias antes de guardar el fichero set backupdir=~/vim-backups au BufWritePre * let &bex = '-' . strftime("%Y-%b-%d-%X") . '.bak' " COMANDOS PROPIOS Y ABREVIATURAS " Justifica un párrafo map <F3> gqap{vap_j} " posicionamiento automático a la última posición en la que estábamos al cerrar el docu autocmd BufReadPost * \ if line("'\"") > 0 && line("’\"") <= line("$") | \ exe "normal g`\"" | \ endif " activa el corrector ortográfico map <F10> :w!<CR>: !aspell -c %<CR>:e! %<CR> "To activte the script place filetype plugin on " PLUGINS xmledit : A filetype plugin to help edit XML, HTML, and SGML documents "Use this setting to change the default mapping to auto complete a "tag. By default typing a literal `>' will cause the tag your editing to auto complete; let xml_tag_completion_map = "<C-l>" " Sets a pattern that is used to distinguish XML syntax elements that identify xml tags let xml_tag_syntax_prefixes = 'html\|xml\|xsl\|docbk' " This turns off the auto nesting feature. let xml_no_auto_nesting = 1 " When editing HTML this will auto close the short tags to make valid XML like <hr /> and <br />. let xml_use_xhtml = 1 " This turns off the support for HTML specific tags let xml_no_html = 1
Attachment:
signature.asc
Description: This is a digitally signed message part.