Posts

Showing posts from March 29, 2019

Clamanges

Image
An Clamanges amo in usa ka komyun ha departamento han Marne ngan ha rehiyon han Champagne-Ardenne ha nasod han Fransya. k h l Mga komyun ha departamento han Marne Ablancourt  · Aigny  · Allemanche-Launay-et-Soyer  · Allemant  · Alliancelles  · Ambonnay  · Ambrières  · Anglure  · Angluzelles-et-Courcelles  · Anthenay  · Aougny  · Arcis-le-Ponsart  · Argers  · Arrigny  · Arzillières-Neuville  · Athis  · Aubérive  · Aubilly  · Aulnay-l'Aître  · Aulnay-sur-Marne  · Auménancourt  · Auve  · Avenay-Val-d'Or  · Avize  · Ay  · Baconnes  · Bagneux  · Le Baizil  · Bannay  · Bannes  · Barbonne-Fayel  · Baslieux-lès-Fismes  · Baslieux-sous-Châtillon  · Bassu  · Bassuet  · Baudement  · Baye  · Bazancourt  · Beaumont-sur-Vesle  · Beaunay  · Beine-Nauroy  · Belval-en-Argonne  · Belval-sous-Châtillon  · Bergères-lès-Vertus  · Bergères-sous-Montmirail  · Berméricourt  · Berru  · Berzieu

How to add a space or a string into the substitute expression?

Image
1 I am trying Vim capabilities and stuck with this task - addition the incrementing number to the end of each line. Testing lines: text text text text text This command works partially: :let n=1 | g/text/s/$/=n/ | let n+=1 Result: text1 text2 text3 text4 text5 But I want to have space between the added numbers and the 'text'. The adding of space ' ' before the = doesn't work, because the = should be in the beginning of substitute expression, else it is not parsed as an expression, but inserted literally - text =n : :let n=1 | g/text/s/$/ =n/ | let n+=1 ### doesn't work as expected So, the questions: Is it possible to insert a string in the substitute expression? Like this (the n is the variable): s/$/string=n/ s/$/'string'=n/ or this: s