找回密码
 点一下
查看: 3809|回复: 4

用Vim编辑XML

[复制链接]
发表于 2012-11-11 17:23:16 | 显示全部楼层 |阅读模式
本帖最后由 oneonestar 于 2012-11-11 17:41 编辑

ScreenCapture_2012-11-11 17.14.30.wmv (1.15 MB, 下载次数: 29)

vim配上了xptemplate和xmledit两个插件。。。
目前还没完成插件的设置文件,不然可以更快(更多自动完成的部份)

输入了
[Ctrl+\]可以列出所有xml基础类,然后会自动生成
<CXXXX id="tab1">
    tab2
</CXXXX>

部份,按下tab可以在两个位置跳动


<Cost>>,Cost后面输入两个>>,会自动生成
<Cost>
    光标位置
</Cost>


理论上设置好以后输入<Vit[Ctrl+\],会自动生成
<vital index="tab1" value="tab2"/>

然后按[tab]可以在index和value的属性值之间跳动修改,不过这部分文件还没设置好,所以算了
发表于 2012-11-11 17:36:45 | 显示全部楼层
星星好棒!
回复

使用道具 举报

发表于 2012-11-11 17:41:07 | 显示全部楼层
全基础类列表

CAbil  Generic
CAbilArmMagazine  Arm Magazine
CAbilAttack  Attack
CAbilAugment  Augment
CAbilBattery  Battery
CAbilBeacon  Beacon
CAbilBehavior  Behavior
CAbilBuild  Build
CAbilBuildable  Buildable
CAbilEffect  Effect
CAbilEffectInstant  Effect - Instant
CAbilEffectTarget  Effect - Target
CAbilHarvest  Harvest
CAbilInteract  Interact
CAbilInventory  Inventory
CAbilLearn  Learn
CAbilMerge  Merge
CAbilMergeable  Mergeable
CAbilMorph  Morph
CAbilMorphPlacement  Morph Placement
CAbilMove  Move
CAbilPawn  Pawn
CAbilProgress  Progress
CAbilQueue  Queue
CAbilQueueable  Queueable
CAbilRally  Rally
CAbilRedirect  Redirect
CAbilRedirectInstant  Redirect Instant
CAbilRedirectTarget  Redirect Target
CAbilResearch  Research
CAbilRevive  Revive
CAbilSpecialize  Specialize
CAbilStop  Stop
CAbilTrain  Train
CAbilTransport  Transport
CAbilUnknown  None
CAbilWarpable  Warpable
CAbilWarpTrain  Warp Train
CAchievement  Generic
CAchievementTerm  Generic
CAchievementTermAbil  Ability
CAchievementTermAbilInteract  Ability Interact
CAchievementTermAbilLoad  Ability Load
CAchievementTermAbilUse  Ability Use
CAchievementTermAchievement  Achievement
CAchievementTermBehavior  Behavior
CAchievementTermBehaviorAbsorbed  Behavior Absorbed
CAchievementTermBehaviorCount  Behavior Count
CAchievementTermBehaviorElapsed  Behavior Elapsed
CAchievementTermBehaviorState  Behavior State
CAchievementTermCombine  Combine
CAchievementTermEffect  Effect
CAchievementTermEffectAbsorbed  Effect Absorbed
CAchievementTermEffectDamaged  Effect Damaged
CAchievementTermEffectDodged  Effect Dodged
CAchievementTermEffectHealed  Effect Healed
CAchievementTermEffectKilled  Effect Killed
CAchievementTermEffectUse  Effect Use
CAchievementTermGeneric  Generic
CAchievementTermReplay  Replay
CAchievementTermScoreValue  Score Value
CAchievementTermTime  Time
CAchievementTermUnit  Unit
CAchievementTermUnitBirth  Unit Birth
CAchievementTermUnitDeath  Unit Death
CAchievementTermUnitKills  Unit Kills
CAchievementTermUnitRegen  Unit Regeneration
CAchievementTermUnitSupplyLoss  Unit Supply Loss
CActor  Generic
CActorAction  Action
CActorArc  Arc
CActorBase  Actor Base
CActorBeam  Beam
CActorBeamSimple  Beam (Simple)
CActorBeamStandard  Beam (Standard)
CActorBearings  Bearings
CActorCamera  Camera
CActorCameraModel  Camera Model
CActorCreep  Creep
CActorDoodad  Doodad
CActorDoodadPreserver  Doodad Preserver
CActorEditorCamera  Editor Camera
CActorEditorPoint  Editor Point
CActorEventMacro  Event Macro
CActorFoliageFXSpawner  Doodad Effect Spawner
CActorForce  Force
CActorForceBox  Force (Box)
CActorForceConeRoundedEnd  Force (Cone Rounded End)
CActorForceCylinder  Force (Cylinder)
CActorForceLineSegment  Force (Line Segment)
CActorForceSphere  Force (Sphere)
CActorGlobalConfig  Global Configuration
CActorLight  Light
CActorLightModel  Light (Model)
CActorLightOmni  Light (Omni)
CActorLightOmniModel  Light (Omni Model)
CActorLightSpot  Light (Spot)
CActorLightSpotModel  Light (Spot Model)
CActorList  Actor List
CActorLookAt  Look At
CActorMissile  Missile
CActorModel  Model
CActorPortrait  Portrait
CActorPower  Power
CActorProgress  Progress
CActorPropertyCurveSet  Curve Set
CActorQuad  Quad
CActorQueryResponse  Query Response
CActorRange  Range
CActorRegion  Region
CActorRegionArc  Region (Arc)
CActorRegionCircle  Region (Circle)
CActorRegionCombine  Region (Combine)
CActorRegionGame  Game Region
CActorRegionPolygon  Region (Polygon)
CActorRegionQuad  Region (Rectangle)
CActorRegionWater  Region (Water)
CActorScene  Scene
CActorSelection  Selection
CActorSetQueried  Queried
CActorShadow  Shadow
CActorShield  Shield
CActorShieldImpact  Shield Impact
CActorSimple  Simple
CActorSite  Generic
CActorSiteBillboard  Billboard
CActorSiteMover  Mover
CActorSiteOp  Site Operation
CActorSiteOp2DRotation  Rotation (2D)
CActorSiteOpAction  Site Operation Action
CActorSiteOpAttach  Site Attachment
CActorSiteOpAttachVolume  Attachment Volume
CActorSiteOpBanker  Banker
CActorSiteOpBankerUnit  Banker (Unit)
CActorSiteOpBase  Site Base
CActorSiteOpBasic  Basic
CActorSiteOpDeathMotion  Site Operation (Death Motion)
CActorSiteOpEffect  Site Effect
CActorSiteOpForward  Forward
CActorSiteOpHeight  Site Operation Height
CActorSiteOpHigherOfTerrainAndWater  Higher Of Terrain And Water
CActorSiteOpHostBearings  Host Bearings
CActorSiteOpHostedOffset  Site Operation (Hosted Offset)
CActorSiteOpIncoming  Site Operation (Incoming)
CActorSiteOpLocalOffset  Local Offset
CActorSiteOpPatch  Patch
CActorSiteOpPhysicsImpact  Physics Impact
CActorSiteOpRandomPointInCircle  Random Point In Circle
CActorSiteOpRandomPointInCrossbar  Site Operation (Random Point In Crossbar)
CActorSiteOpRandomPointInSphere  Site Operation (Random Point In Sphere)
CActorSiteOpRotationExplicit  Rotation (Explicit)
CActorSiteOpRotationRandom  Rotation Random
CActorSiteOpRotationSmooth  Rotation Smooth
CActorSiteOpRotationVariancer  Rotation (Variance)
CActorSiteOpRotator  Rotator
CActorSiteOpSelectionOffset  Site Operation Selection Offset
CActorSiteOpSerpentHead  Site Operation Serpent Head
CActorSiteOpSerpentSegment  Site Operation Serpent Segment
CActorSiteOpShadow  Site Shadow
CActorSiteOpTipability  Tipability
CActorSiteOpUp  Up
CActorSiteRocker  Rocker
CActorSnapshot  Snapshot
CActorSound  Sound
CActorSplat  Splat
CActorSquib  Squib
CActorStateMonitor  State Monitor
CActorTerrain  Terrain
CActorTerrainDeformer  Terrain Deformer
CActorText  Text
CActorTurret  Turret
CActorUnit  Unit
CAlert  Alert
CArmyCategory  Army Category
CArmyUnit  Army Unit
CArmyUpgrade  Army Upgrade
CAttachMethod  Generic
CAttachMethodArcTest  Arc Test
CAttachMethodAttachType  Attach Type
CAttachMethodFilter  Filter
CAttachMethodIncoming  Incoming
CAttachMethodLeastDeflection  Least Deflection
CAttachMethodNodeOccupancy  Node Occupancy
CAttachMethodNodeOccupancy2  Node Occupancy 2
CAttachMethodNumericField  Numeric Field
CAttachMethodPattern  Pattern
CAttachMethodPortAllocator  Port Allocator
CAttachMethodProximity  Proximity
CAttachMethodRandom  Random
CAttachMethodReduction  Reduction
CAttachMethodVolumesRequery  Volume Requery
CAttachMethodVolumesTargets  Volume Targets
CAttachMethodVolumesWeightedPick  Volumes Weighted
CBankCondition  Generic
CBankConditionCombine  Combine
CBankConditionCompare  Compare
CBankConditionCompareValueCount  Compare Value Count
CBankConditionCompareValueInteger  Compare Integer Value
CBankConditionCompareValueString  Compare String Value
CBankConditionCompareValueSum  Compare Value Sum
CBankConditionCurrentMap  Current Map
CBeam  Generic
CBeamAsync  Asynchronous
CBeamAsyncLinear  Asynchronous Linear
CBeamAsyncShadow  Asynchronous Shadow
CBeamSync  Synchronous
CBeamSyncSweeper  Synchronous Sweeper
CBehavior  Generic
CBehaviorAttribute  Attribute
CBehaviorBuff  Buff
CBehaviorClickResponse  Click Response
CBehaviorConjoined  Conjoined
CBehaviorCreepSource  Creep Source
CBehaviorJump  Jump
CBehaviorPowerSource  Power Source
CBehaviorPowerUser  Power User
CBehaviorResource  Resource
CBehaviorReveal  Reveal
CBehaviorSpawn  Spawn
CBehaviorUnknown  None
CBehaviorVeterancy  Veterancy
CBehaviorWander  Wander
CButton  Generic
CCamera  Generic
CCharacter  Character
CCliff  Terrain Cliff
CCliffDoodad  Cliff Doodad
CCliffMesh  Terrain Cliff Mesh
CConversation  Generic
CConversationState  Generic
CCursor  Generic
CDSP  Digital Effect
CDSPChorus  Chorus
CDSPCompressor  DSP Compressor
CDSPDistortion  Distortion
CDSPEcho  Echo
CDSPFlange  Flange
CDSPHighPass  High Pass
CDSPLowPass  Low Pass
CDSPLowPassSimple  Low Pass Simple
CDSPNormalize  Normalize
CDSPOscillator  DSP Oscillator
CDSPParamEQ  Equalize
CDSPPitchShift  Pitch Shift
CDSPReverb  Reverb
CEffect  Generic
CEffectApplyBehavior  Apply Behavior
CEffectApplyForce  Apply Force
CEffectCancelOrder  Cancel Order
CEffectCreateHealer  Create Healer
CEffectCreatePersistent  Create Persistent
CEffectCreateUnit  Create Unit
CEffectDamage  Effect Damage
CEffectDestroyHealer  Destroy Healer
CEffectDestroyPersistent  Destroy Persistent
CEffectEnumArea  Search Area
CEffectEnumMagazine  Enum Magazine
CEffectEnumTransport  Iterate Transport
CEffectIssueOrder  Issue Order
CEffectLaunchMissile  Launch Missile
CEffectModifyPlayer  Modify Player
CEffectModifyUnit  Modify Unit
CEffectRedirectMissile  Redirect Missile
CEffectReleaseMagazine  Release Magazine
CEffectRemoveBehavior  Remove Behavior
CEffectResponse  Response
CEffectReturnMagazine  Return Magazine
CEffectSet  Set
CEffectSwitch  Switch
CEffectTeleport  Teleport
CEffectTransferBehavior  Transfer Behavior
CEffectUseCalldown  Use Calldown
CEffectUseMagazine  Use Magazine
CFootprint  Generic
CFoW  Generic
CGame  Generic
CGameUI  Generic
CHero  Hero
CHeroAbil  Hero Ability
CHeroStat  Hero Stat
CItem  Generic
CItemAbil  Ability
CItemClass  Generic
CItemContainer  Generic
CItemEffect  Effect
CItemEffectInstant  Instant
CItemEffectTarget  Target
CLight  Generic
CLocation  Location
CLoot  Generic
CLootEffect  Effect
CLootItem  Item
CLootSet  Set
CLootSpawn  Spawn
CLootUnit  Unit
CMap  Map
CModel  Generic
CModelFoliage  Foliage
CMover  Generic
CMoverAvoid  Avoid
CMoverFlock  Flock
CMoverMissile  Missile
CMoverNull  Null
CObjective  Objective
CPhysicsMaterial  Physics Material
CPreload  Generic
CPreloadActor  Actor
CPreloadAsset  Asset
CPreloadConversation  Conversation
CPreloadModel  Model
CPreloadScene  Scene
CPreloadSound  Sound
CPreloadUnit  Unit
CRace  Generic
CRequirement  Generic
CRequirementAllowAbil  Ability Allowed
CRequirementAllowBehavior  Behavior Allowed
CRequirementAllowUnit  Unit Allowed
CRequirementAllowUpgrade  Upgrade Allowed
CRequirementAnd  And
CRequirementConst  Constant
CRequirementCountAbil  Count Ability
CRequirementCountBehavior  Count Behavior
CRequirementCountEffect  Effect Count
CRequirementCountUnit  Count Unit
CRequirementCountUpgrade  Count Upgrade
CRequirementDiv  Division
CRequirementEq  Equals
CRequirementGT  Greater Than
CRequirementGTE  Greater Than or Equal To
CRequirementLT  Less Than
CRequirementLTE  Less Than or Equal To
CRequirementMod  Modulus
CRequirementMul  Multiplication
CRequirementNE  Not Equal To
CRequirementNode  Node
CRequirementNot  Not
CRequirementOdd  Odd Number
CRequirementOr  Or
CRequirementSum  Sum
CRequirementXor  Exclusive Or
CReverb  Generic
CReward  Generic
CRewardBadge  Badge
CRewardDecal  Decal
CRewardIcon  Icon
CRewardModel  Model
CRewardPoints  Points
CRewardPortrait  Portrait
CScoreResult  Generic
CScoreResultBuildOrder  Build Order
CScoreResultCallouts  Callouts
CScoreResultExperience  Experience
CScoreResultGraph  Graph
CScoreResultPane  Pane
CScoreResultPerformance  Performance
CScoreResultRoot  Root
CScoreResultScore  Standard
CScoreValue  Generic
CScoreValueCombine  Combine
CScoreValueCustom  Custom
CScoreValueStandard  Standard
CSound  Generic
CSoundtrack  Generic
CTacCooldown  Tactical AI Cooldown
CTactical  Generic
CTacticalOrder  Order
CTacticalSet  Set
CTargetFind  Generic
CTargetFindBestPoint  Best Point
CTargetFindEffect  Effect
CTargetFindEnumArea  Enumerate Area
CTargetFindLastAttacker  Last Attacker
CTargetFindOffset  Offset
CTargetFindOrder  Order
CTargetFindRallyPoint  Rally Point
CTargetFindSet  Set
CTargetFindWorkerRallyPoint  Rally Point (Worker)
CTargetSort  Generic
CTargetSortAlliance  Alliance
CTargetSortAngle  Angle
CTargetSortBehaviorCount  Count
CTargetSortBehaviorDuration  Behavior Duration
CTargetSortChargeCount  Count
CTargetSortChargeRegen  Charge Regeneration
CTargetSortCooldown  Cooldown
CTargetSortDistance  Distance
CTargetSortField  Field
CTargetSortInterruptible  Interruptible
CTargetSortMarker  Marker
CTargetSortPowerSourceLevel  Power Source Level
CTargetSortPowerUserLevel  Power User Level
CTargetSortPriority  Priority
CTargetSortRandom  Random
CTargetSortVeterancy  Veterancy
CTargetSortVital  Vital
CTargetSortVitalFraction  Vital Fraction
CTerrain  Generic
CTerrainObject  Terrain Object
CTerrainTex  Generic
CTexture  Generic
CTile  Generic
CTurret  Generic
CUnit  Generic
CUpgrade  Generic
CUser  User Type
CValidator  Generic
CValidatorCombine  Combine
CValidatorCondition  Condition
CValidatorFunction  Function
CValidatorGameCompareTerrain  Terrain
CValidatorGameCompareTimeOfDay  Time Of Day
CValidatorLocation  Location
CValidatorLocationArc  Location Arc
CValidatorLocationCompareCliffLevel  Location Compare Cliff Level
CValidatorLocationComparePower  Location Power
CValidatorLocationCompareRange  Location Range
CValidatorLocationCreep  Location Creep
CValidatorLocationCrossChasm  Location Crosses Chasm
CValidatorLocationCrossCliff  Location Cross Cliff
CValidatorLocationEnumArea  Enumerate Area
CValidatorLocationPathable  Location Pathable
CValidatorLocationPlacement  Placement Location
CValidatorLocationType  Location Type
CValidatorLocationVision  Location Vision
CValidatorPlayer  Player
CValidatorPlayerAlliance  Player Alliance
CValidatorPlayerCompare  Player Compare
CValidatorPlayerCompareDifficulty  Player Compare Difficulty
CValidatorPlayerCompareFoodAvailable  Player Compare Food Available
CValidatorPlayerCompareFoodMade  Player Compare Food Made
CValidatorPlayerCompareFoodUsed  Player Compare Food Used
CValidatorPlayerCompareRace  Player Race
CValidatorPlayerCompareResource  Player Compare Resource
CValidatorPlayerCompareResult  Player Game Result
CValidatorPlayerCompareType  Player Type
CValidatorPlayerRequirement  Player Requirement
CValidatorUnit  Unit
CValidatorUnitAbil  Unit Ability
CValidatorUnitAI  Unit AI
CValidatorUnitBehaviorState  Unit Behavior State
CValidatorUnitCombatAI  Unit Combat AI
CValidatorUnitCompare  Unit Compare
CValidatorUnitCompareAbilLevel  Unit Compare Ability Level
CValidatorUnitCompareAIAreaEvalRatio  Unit Compare AI Area Evaluation
CValidatorUnitCompareAttackPriority  Attack Priority
CValidatorUnitCompareBehaviorCount  Unit Compare Behavior Count
CValidatorUnitCompareCargo  Unit Compare Cargo
CValidatorUnitCompareChargeUsed  Unit Compare Charge Used
CValidatorUnitCompareCooldown  Unit Compare Cooldown
CValidatorUnitCompareDamageTakenTime  Unit Compare Damage Taken Time
CValidatorUnitCompareDeath  Unit Compare Death
CValidatorUnitCompareDetectRange  Detect Range
CValidatorUnitCompareField  Unit Compare Field
CValidatorUnitCompareMarkerCount  Unit Compare Marker Count
CValidatorUnitCompareMoverPhase  Unit Compare Mover Phase
CValidatorUnitCompareOrderCount  Order Count
CValidatorUnitCompareOrderTargetRange  Unit Compare Order Target Range
CValidatorUnitComparePowerSourceLevel  Unit Compare Power Source Level
CValidatorUnitComparePowerUserLevel  Unit Compare Power Level
CValidatorUnitCompareRallyPointCount  Unit Compare Rally Point Count
CValidatorUnitCompareResourceContents  Unit Compare Resource Contents
CValidatorUnitCompareResourceHarvesters  Unit Compare Resource Harvesters
CValidatorUnitCompareSpeed  Unit Compare Speed
CValidatorUnitCompareVeterancyLevel  Unit Compare Veterancy Level
CValidatorUnitCompareVital  Unit Compare Vital
CValidatorUnitCompareVitality  Unit Compare Vitality
CValidatorUnitDetected  Unit Detected
CValidatorUnitFilters  Unit Filters
CValidatorUnitFlying  Unit Flying
CValidatorUnitInventory  Unit Inventory
CValidatorUnitInventoryContainsItem  Unit Inventory Contains Item
CValidatorUnitInventoryIsFull  Unit Inventory Is Full
CValidatorUnitLastDamagePlayer  Unit Last Damage Player
CValidatorUnitMissileNullified  Unit Missile Nullified
CValidatorUnitMover  Unit Mover
CValidatorUnitOrder  Generic
CValidatorUnitOrderQueue  Queue
CValidatorUnitOrderTargetPathable  Unit Order Target Pathable
CValidatorUnitOrderTargetType  Unit Order Target Type
CValidatorUnitPathable  Unit Pathable
CValidatorUnitPathing  Unit Pathing
CValidatorUnitScanning  Unit Scan
CValidatorUnitType  Unit Type
CValidatorUnitWeaponAnimating  Unit Weapon Animating
CValidatorUnitWeaponFiring  Unit Weapon Firing
CValidatorUnitWeaponPlane  Unit Weapon Plane
CWater  Water
CWeapon  Generic
CWeaponLegacy  Legacy
CWeaponStrafe  Strafe
回复

使用道具 举报

 楼主| 发表于 2012-11-11 17:53:48 | 显示全部楼层
未命名.jpg
有头目光环加持,果然效果大幅提升
回复

使用道具 举报

发表于 2012-11-12 00:15:08 | 显示全部楼层
0 0
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-11-24 22:33 , Processed in 0.061334 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表