Skip to content

Plugin add movements for editing XML attributes {d,c,y}attr{attribute}="{value}".

Notifications You must be signed in to change notification settings

sergeykish/vim-xmlattributes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 

Repository files navigation

Plugin add movements for editing XML attributes {d,c,y}attr<attribute>="<value>"

For example:

  • dattrid
  • cattrhref="#"
  • yattrclass="test"

Add to .vimrc to activate

au Filetype html,xml,xsl source ~/.vim/scripts/xmlattributes.vim

FEATURES:

  • fill attribute value by current value on yanking if exist
  • complete attribute input by '=' and value input by '"', Enter works too
  • cancel by <C-C> or <Esc>

QUESTIONS:

  • create dirrectory ~/.vim/scripts/xmlattributes/ for python files?

TODO:

  • completion attributes input from existing (:h command-completion)
  • multyline tags
  • there are many places for cursor, it is marked "{}" ** <{}div ...>...</div> ** <div ...>...{}...</div> ** <div ...>...</div{}>

About

Plugin add movements for editing XML attributes {d,c,y}attr{attribute}="{value}".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published