Ag. D. Hatzimanikas wrote:
> Hi Dj and thanks for the thanks! :)
>
> Since I've found that I am not the only one that is using vim (thank god)
> for editing, I decided to clean up an old xml vim script and to publish
> it [1].
>
> Please give it a try, as I just added a couple of functions and I don't
> have test it thoroughly as I would like to, although the tag
> auto-completion seems to work the way I want it.
>
> I'm not really sure if you are familiar with vim scripting,
Not at all....yet. Seeing what you did specific to the *xml file type,
I'm gonna have to dig into it and figure it out.
> so feel free
> to ask me about the functions or any settings you don't understand.
> If you have any comments/fixes or any other additions, please don't
> hesitate (that goes for everyone of course -- cc'ing to -dev) to reply.
>
> In normal mode just hit \h for a quick help.
>
> 1. http://www.linuxfromscratch.org/~ag/vimscripts/Xml.vim
>
I had to comment it out for right now as CnP in
introduction/welcome/changelog.xml got screwed up when I created a new
entry tonight. I didn't try to figure it out yet. My vim config is
very lite, but attached in case you see a conflict.
[EMAIL PROTECTED] openssh]# cat /etc/vimrc
" Begin /etc/vimrc
set nocompatible " use vim defaults
set backspace=2 " use back->del instead of delete
set hlsearch " highlight searches
set ignorecase " ignore case when searching
set ruler " show the cursor position all the time
set nobackup " do not keep a backup file
set title " show title in console title bar
set textwidth=80 " wrap at 80 characters
syntax on " syntax highlighing
if (&term == "iterm") || (&term == "putty")
set background=dark " use dark forground colors
endif
match Error /\%>80v/
"Return to pevious line when last edited
au BufReadPost * if line("'\"") > 0|if line("'\"") <=
line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
" File type/use conditionals
" set/continue indent
au FileType c,cpp,h,hxx,java,sh,pl,php,asp set autoindent
au FileType c,cpp,h,hxx,java,sh,pl,php,asp set smartindent
au FileType c,cpp,h,hxx,java,sh,pl,php,asp set cindent
" Set execute on shell scripts
au BufWritePost *.sh !chmod 0755 %
au BufWritePost *.pl !chmod 0755 %
" autocmd BufEnter *.xml source /usr/share/vim/vim71/Xml.vim
" End /etc/vimrc
[EMAIL PROTECTED] openssh]#
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page