version5.txt 301 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814
  1. *version5.txt* For Vim version 9.0. Last change: 2022 Nov 09
  2. VIM REFERENCE MANUAL by Bram Moolenaar
  3. Welcome to Vim Version 5.0!
  4. This document lists the differences between Vim 4.x and Vim 5.0.
  5. Although 5.0 is mentioned here, this is also for version 5.1, 5.2, etc.
  6. See |vi_diff.txt| for an overview of differences between Vi and Vim 5.0.
  7. See |version4.txt| for differences between Vim 3.0 and Vim 4.0.
  8. INCOMPATIBLE: |incompatible-5|
  9. Default value for 'compatible' changed |cp-default|
  10. Text formatting command "Q" changed |Q-command-changed|
  11. Command-line arguments changed |cmdline-changed|
  12. Autocommands are kept |autocmds-kept|
  13. Use of 'hidden' changed |hidden-changed|
  14. Text object commands changed |text-objects-changed|
  15. X-Windows Resources removed |x-resources|
  16. Use of $VIM |$VIM-use|
  17. Use of $HOME for MS-DOS and Win32 |$HOME-use|
  18. Tags file format changed |tags-file-changed|
  19. Options changed |options-changed|
  20. CTRL-B in Insert mode gone |i_CTRL-B-gone|
  21. NEW FEATURES: |new-5|
  22. Syntax highlighting |new-highlighting|
  23. Built-in script language |new-script|
  24. Perl and Python support |new-perl-python|
  25. Win32 GUI version |added-win32-GUI|
  26. VMS version |added-VMS|
  27. BeOS version |added-BeOS|
  28. Macintosh GUI version |added-Mac|
  29. More Vi compatible |more-compatible|
  30. Read input from stdin |read-stdin|
  31. Regular expression patterns |added-regexp|
  32. Overloaded tags |tag-overloaded|
  33. New commands |new-commands|
  34. New options |added-options|
  35. New command-line arguments |added-cmdline-args|
  36. Various additions |added-various|
  37. IMPROVEMENTS |improvements-5|
  38. COMPILE TIME CHANGES |compile-changes-5|
  39. BUG FIXES |bug-fixes-5|
  40. VERSION 5.1 |version-5.1|
  41. Changed |changed-5.1|
  42. Added |added-5.1|
  43. Fixed |fixed-5.1|
  44. VERSION 5.2 |version-5.2|
  45. Long lines editable |long-lines|
  46. File browser added |file-browser-5.2|
  47. Dialogs added |dialogs-added|
  48. Popup menu added |popup-menu-added|
  49. Select mode added |new-Select-mode|
  50. Session files added |new-session-files|
  51. User defined functions and commands |new-user-defined|
  52. New interfaces |interfaces-5.2|
  53. New ports |ports-5.2|
  54. Multi-byte support |new-multi-byte|
  55. New functions |new-functions-5.2|
  56. New options |new-options-5.2|
  57. New Ex commands |new-ex-commands-5.2|
  58. Changed |changed-5.2|
  59. Added |added-5.2|
  60. Fixed |fixed-5.2|
  61. VERSION 5.3 |version-5.3|
  62. Changed |changed-5.3|
  63. Added |added-5.3|
  64. Fixed |fixed-5.3|
  65. VERSION 5.4 |version-5.4|
  66. Runtime directory introduced |new-runtime-dir|
  67. Filetype introduced |new-filetype-5.4|
  68. Vim script line continuation |new-line-continuation|
  69. Improved session files |improved-sessions|
  70. Autocommands improved |improved-autocmds-5.4|
  71. Encryption |new-encryption|
  72. GTK GUI port |new-GTK-GUI|
  73. Menu changes |menu-changes-5.4|
  74. Viminfo improved |improved-viminfo|
  75. Various new commands |new-commands-5.4|
  76. Various new options |new-options-5.4|
  77. Vim scripts |new-script-5.4|
  78. Avoid hit-enter prompt |avoid-hit-enter|
  79. Improved quickfix |improved-quickfix|
  80. Regular expressions |regexp-changes-5.4|
  81. Changed |changed-5.4|
  82. Added |added-5.4|
  83. Fixed |fixed-5.4|
  84. VERSION 5.5 |version-5.5|
  85. Changed |changed-5.5|
  86. Added |added-5.5|
  87. Fixed |fixed-5.5|
  88. VERSION 5.6 |version-5.6|
  89. Changed |changed-5.6|
  90. Added |added-5.6|
  91. Fixed |fixed-5.6|
  92. VERSION 5.7 |version-5.7|
  93. Changed |changed-5.7|
  94. Added |added-5.7|
  95. Fixed |fixed-5.7|
  96. VERSION 5.8 |version-5.8|
  97. Changed |changed-5.8|
  98. Added |added-5.8|
  99. Fixed |fixed-5.8|
  100. ==============================================================================
  101. INCOMPATIBLE *incompatible-5*
  102. Default value for 'compatible' changed *cp-default*
  103. --------------------------------------
  104. Vim version 5.0 tries to be more Vi compatible. This helps people who use Vim
  105. as a drop-in replacement for Vi, but causes some things to be incompatible
  106. with version 4.x.
  107. In version 4.x the default value for the 'compatible' option was off. Now the
  108. default is on. The first thing you will notice is that the "u" command undoes
  109. itself. Other side effects will be that mappings may work differently or not
  110. work at all.
  111. Since a lot of people switching from Vim 4.x to 5.0 will find this annoying,
  112. the 'compatible' option is switched off if Vim finds a vimrc file. This is a
  113. bit of magic to make sure that 90% of the Vim users will not be bitten by
  114. this change.
  115. What does this mean?
  116. - If you prefer to run in 'compatible' mode and don't have a vimrc file, you
  117. don't have to do anything.
  118. - If you prefer to run in 'nocompatible' mode and do have a vimrc file, you
  119. don't have to do anything.
  120. - If you prefer to run in 'compatible' mode and do have a vimrc file, you
  121. should put this line first in your vimrc file: >
  122. :set compatible
  123. - If you prefer to run in 'nocompatible' mode and don't have a vimrc file,
  124. you can do one of the following:
  125. - Create an empty vimrc file (e.g.: "~/.vimrc" for Unix).
  126. - Put this command in your .exrc file or $EXINIT: >
  127. :set nocompatible
  128. < - Start Vim with the "-N" argument.
  129. If you are new to Vi and Vim, using 'nocompatible' is strongly recommended,
  130. because Vi has a lot of unexpected side effects, which are avoided by this
  131. setting. See 'compatible'.
  132. If you like some things from 'compatible' and some not, you can tune the
  133. compatibility with 'cpoptions'.
  134. When you invoke Vim as "ex" or "gex", Vim always starts in compatible mode.
  135. Text formatting command "Q" changed *Q-command-changed*
  136. -----------------------------------
  137. The "Q" command formerly formatted lines to the width the 'textwidth' option
  138. specifies. The command for this is now "gq" (see |gq| for more info). The
  139. reason for this change is that "Q" is the standard Vi command to enter "Ex"
  140. mode, and Vim now does in fact have an "Ex" mode (see |Q| for more info).
  141. If you still want to use "Q" for formatting, use this mapping: >
  142. :noremap Q gq
  143. And if you also want to use the functionality of "Q": >
  144. :noremap gQ Q
  145. Command-line arguments changed *cmdline-changed*
  146. ------------------------------
  147. Command-line file-arguments and option-arguments can now be mixed. You can
  148. give options after the file names. Example: >
  149. vim main.c -g
  150. This is not possible when editing a file that starts with a '-'. Use the "--"
  151. argument then |---|: >
  152. vim -g -- -main.c
  153. "-v" now means to start Ex in Vi mode, use "-R" for read-only mode.
  154. old: "vim -v file" |-v|
  155. new: "vim -R file" |-R|
  156. "-e" now means to start Vi in Ex mode, use "-q" for quickfix.
  157. old: "vim -e errorfile" |-e|
  158. new: "vim -q errorfile" |-q|
  159. "-s" in Ex mode now means to run in silent (batch) mode. |-s-ex|
  160. "-x" reserved for crypt, use "-f" to avoid starting a new CLI (Amiga).
  161. old: "vim -x file" |-x|
  162. new: "vim -f file" |-f|
  163. Vim allows up to ten "+cmd" and "-c cmd" arguments. Previously Vim executed
  164. only the last one.
  165. "-n" now overrides any setting for 'updatecount' in a vimrc file, but not in
  166. a gvimrc file.
  167. Autocommands are kept *autocmds-kept*
  168. ---------------------
  169. Before version 5.0, autocommands with the same event, file name pattern, and
  170. command could appear only once. This was fine for simple autocommands (like
  171. setting option values), but for more complicated autocommands, where the same
  172. command might appear twice, this restriction caused problems. Therefore
  173. Vim stores all autocommands and keeps them in the order that they are defined.
  174. The most obvious side effect of this change is that when you source a vimrc
  175. file twice, the autocommands in it will be defined twice. To avoid this, do
  176. one of these:
  177. - Remove any autocommands that might already be defined before defining
  178. them. Example: >
  179. :au! * *.ext
  180. :au BufEnter *.ext ...
  181. - Put the autocommands inside an ":if" command. Example: >
  182. if !exists("did_ext_autocmds")
  183. let did_ext_autocmds = 1
  184. autocmd BufEnter *.ext ...
  185. endif
  186. - Put your autocommands in a different autocommand group so you can remove
  187. them before defining them |:augroup|: >
  188. augroup uncompress
  189. au!
  190. au BufReadPost *.gz ...
  191. augroup END
  192. Use of 'hidden' changed *hidden-changed*
  193. -----------------------
  194. In version 4.x, only some commands used the 'hidden' option. Now all commands
  195. uses it whenever a buffer disappears from a window.
  196. Previously you could do ":buf xxx" in a changed buffer and that buffer would
  197. then become hidden. Now you must set the 'hidden' option for this to work.
  198. The new behavior is simpler: whether Vim hides buffers no longer depends on
  199. the specific command that you use.
  200. - with 'hidden' not set, you never get hidden buffers. Exceptions are the
  201. ":hide" and ":close!" commands and, in rare cases, where you would otherwise
  202. lose changes to the buffer.
  203. - With 'hidden' set, you almost never unload a buffer. Exceptions are the
  204. ":bunload" or ":bdel" commands.
  205. ":buffer" now supports a "!": abandon changes in current buffer. So do
  206. ":bnext", ":brewind", etc.
  207. Text object commands changed *text-objects-changed*
  208. ----------------------------
  209. Text object commands have new names. This allows more text objects and makes
  210. characters available for other Visual mode commands. Since no more single
  211. characters were available, text objects names now require two characters.
  212. The first one is always 'i' or 'a'.
  213. OLD NEW ~
  214. a aw a word |v_aw|
  215. A aW a WORD |v_aW|
  216. s as a sentence |v_as|
  217. p ap a paragraph |v_ap|
  218. S ab a () block |v_ab|
  219. P aB a {} block |v_aB|
  220. There is another set of text objects that starts with "i", for "inner". These
  221. select the same objects, but exclude white space.
  222. X-Windows Resources removed *x-resources*
  223. --------------------------
  224. Vim no longer supports the following X resources:
  225. - boldColor
  226. - italicColor
  227. - underlineColor
  228. - cursorColor
  229. Vim now uses highlight groups to set colors. This avoids the confusion of
  230. using a bold Font, which would imply a certain color. See |:highlight| and
  231. |gui-resources|.
  232. Use of $VIM *$VIM-use*
  233. -----------
  234. Vim now uses the VIM environment variable to find all Vim system files. This
  235. includes the global vimrc, gvimrc, and menu.vim files and all on-line help
  236. and syntax files. See |$VIM|. Starting with version 5.4, |$VIMRUNTIME| can
  237. also be used.
  238. For Unix, Vim sets a default value for $VIM when doing "make install".
  239. When $VIM is not set, its default value is the directory from 'helpfile',
  240. excluding "/doc/help.txt".
  241. Use of $HOME for MS-DOS and Win32 *$HOME-use*
  242. ---------------------------------
  243. The MS-DOS and Win32 versions of Vim now first check $HOME when searching for
  244. a vimrc or exrc file and for reading/storing the viminfo file. Previously Vim
  245. used $VIM for these systems, but this causes trouble on a system with several
  246. users. Now Vim uses $VIM only when $HOME is not set or the file is not found
  247. in $HOME. See |_vimrc|.
  248. Tags file format changed *tags-file-changed*
  249. ------------------------
  250. Only tabs are allowed to separate fields in a tags file. This allows for
  251. spaces in a file name and is still Vi compatible. In previous versions of
  252. Vim, any white space was allowed to separate the fields. If you have a file
  253. which doesn't use a single tab between fields, edit the tags file and execute
  254. this command: >
  255. :%s/\(\S*\)\s\+\(\S*\)\s\+\(.*\)/\1\t\2\t\3/
  256. Options changed *options-changed*
  257. ---------------
  258. The default value of 'errorfile' has changed from "errors.vim" to "errors.err".
  259. The reason is that only Vim scripts should have the ".vim" extensions.
  260. The ":make" command no longer uses the 'errorfile' option. This prevents the
  261. output of the ":make" command from overwriting a manually saved error file.
  262. ":make" uses the 'makeef' option instead. This also allows for generating a
  263. unique name, to prevent concurrently running ":make" commands from overwriting
  264. each other's files.
  265. With 'insertmode' set, a few more things change:
  266. - <Esc> in Normal mode goes to Insert mode.
  267. - <Esc> in Insert mode doesn't leave Insert mode.
  268. - When doing ":set im", go to Insert mode immediately.
  269. Vim considers a buffer to be changed when the 'fileformat' (formerly the
  270. 'textmode' option) is different from the buffer's initial format.
  271. CTRL-B in Insert mode gone *i_CTRL-B-gone*
  272. --------------------------
  273. When Vim was compiled with the |+rightleft| feature, you could use CTRL-B to
  274. toggle the 'revins' option. Unfortunately, some people hit the 'B' key
  275. accidentally when trying to type CTRL-V or CTRL-N and then didn't know how to
  276. undo this. Since toggling the 'revins' option can easily be done with the
  277. mapping below, this use of the CTRL-B key is disabled. You can still use the
  278. CTRL-_ key for this |i_CTRL-_|. >
  279. :imap <C-B> <C-O>:set revins!<CR>
  280. ==============================================================================
  281. NEW FEATURES *new-5*
  282. Syntax highlighting *new-highlighting*
  283. -------------------
  284. Vim now has a very flexible way to highlighting just about any type of file.
  285. See |syntax|. Summary: >
  286. :syntax on
  287. Colors and attributes can be set for the syntax highlighting, and also for
  288. other highlighted items with the ':' flag in the 'highlight' option. All
  289. highlighted items are assigned a highlight group which specifies their
  290. highlighting. See |:highlight|. The default colors have been improved.
  291. You can use the "Normal" group to set the default fore/background colors for a
  292. color terminal. For the GUI, you can use this group to specify the font, too.
  293. The "2html.vim" script can be used to convert any file that has syntax
  294. highlighting to HTML. The colors will be exactly the same as how you see them
  295. in Vim. With a HTML viewer you can also print the file with colors.
  296. Built-in script language *new-script*
  297. ------------------------
  298. A few extra commands and an expression evaluator enable you to write simple
  299. but powerful scripts. Commands include ":if" and ":while". Expressions can
  300. manipulate numbers and strings. You can use the '=' register to insert
  301. directly the result of an expression. See |expression|.
  302. Perl and Python support *new-perl-python*
  303. -----------------------
  304. Vim can call Perl commands with ":perldo", ":perl", etc. See |perl|.
  305. Patches made by Sven Verdoolaege and Matt Gerassimoff.
  306. Vim can call Python commands with ":python" and ":pyfile". See |python|.
  307. Both of these are only available when enabled at compile time.
  308. Win32 GUI version *added-win32-GUI*
  309. -----------------
  310. The GUI has been ported to MS-Windows 95 and NT. All the features of the X11
  311. GUI are available to Windows users now. |gui-w32|
  312. This also fixes problems with running the Win32 console version under Windows
  313. 95, where console support has always been bad.
  314. There is also a version that supports OLE automation interface. |if_ole.txt|
  315. Vim can be integrated with Microsoft Developer Studio using the VisVim DLL.
  316. It is possible to produce a DLL version of gvim with Borland C++ (Aaron).
  317. VMS version *added-VMS*
  318. -----------
  319. Vim can now also be used on VMS systems. Port done by Henk Elbers.
  320. This has not been tested much, but it should work.
  321. Sorry, no documentation!
  322. BeOS version *added-BeOS*
  323. ------------
  324. Vim can be used on BeOS systems (including the BeBox). (Olaf Seibert)
  325. See |os_beos.txt|.
  326. Macintosh GUI version *added-Mac*
  327. ---------------------
  328. Vim can now be used on the Macintosh. (Dany St-Amant)
  329. It has not been tested much yet, be careful!
  330. See |os_mac.txt|.
  331. More Vi compatible *more-compatible*
  332. ------------------
  333. There is now a real Ex mode. Started with the "Q" command, or by calling the
  334. executable "ex" or "gex". |Ex-mode|
  335. Always allow multi-level undo, also in Vi compatible mode. When the 'u' flag
  336. in 'cpoptions' is included, CTRL-R is used for repeating the undo or redo
  337. (like "." in Nvi).
  338. Read input from stdin *read-stdin*
  339. ---------------------
  340. When using the "-" command-line argument, Vim reads its text input from stdin.
  341. This can be used for putting Vim at the end of a pipe: >
  342. grep "^a.*" *.c | vim -
  343. See |--|.
  344. Regular expression patterns *added-regexp*
  345. ---------------------------
  346. Added specifying a range for the number of matches of an atom: "\{a,b}". |/\{|
  347. Added the "shortest match" regexp "\{-}" (Webb).
  348. Added "\s", matches a white character. Can replace "[ \t]". |/\s|
  349. Added "\S", matches a non-white character. Can replace "[^ \t]". |/\S|
  350. Overloaded tags *tag-overloaded*
  351. ---------------
  352. When using a language like C++, there can be several tags for the same
  353. tagname. Commands have been added to be able to jump to any of these
  354. overloaded tags:
  355. |:tselect| List matching tags, and jump to one of them.
  356. |:stselect| Idem, and split window.
  357. |g_CTRL-]| Do ":tselect" with the word under the cursor.
  358. After ":ta {tagname}" with multiple matches:
  359. |:tnext| Go to next matching tag.
  360. |:tprevious| Go to previous matching tag.
  361. |:trewind| Go to first matching tag.
  362. |:tlast| Go to last matching tag.
  363. The ":tag" command now also accepts wildcards. When doing command-line
  364. completion on tags, case-insensitive matching is also available (at the end).
  365. New commands *new-commands*
  366. ------------
  367. |:amenu| Define menus for all modes, inserting a CTRL-O for Insert
  368. mode, ESC for Visual and CTRL-C for Cmdline mode. "amenu" is
  369. used for the default menus and the Syntax menu.
  370. |:augroup| Set group to be used for following autocommands. Allows the
  371. grouping of autocommands to enable deletion of a specific
  372. group.
  373. |:crewind| Go to first error.
  374. |:clast| Go to last error.
  375. |:doautoall| Execute autocommands for all loaded buffers.
  376. |:echo| Echo its argument, which is an expression. Can be used to
  377. display messages which include variables.
  378. |:execute| Execute its argument, which is an expression. Can be used to
  379. built up an Ex command with anything.
  380. |:hide| Works like ":close".
  381. |:if| Conditional execution, for built-in script language.
  382. |:intro| Show introductory message. This is always executed when Vim
  383. is started without file arguments.
  384. |:let| Assign a value to an internal variable.
  385. |:omap| Map only in operator-pending mode. Makes it possible to map
  386. text-object commands.
  387. |:redir| Redirect output of messages to a file.
  388. |:update| Write when buffer has changed.
  389. |:while| While-loop for built-in script language.
  390. Visual mode:
  391. |v_O| "O" in Visual block mode, moves the cursor to the other corner
  392. horizontally.
  393. |v_D| "D" in Visual block mode deletes till end of line.
  394. Insert mode:
  395. |i_CTRL-]| Triggers abbreviation, without inserting any character.
  396. New options *added-options*
  397. -----------
  398. 'background' Used for selecting highlight color defaults. Also used in
  399. "syntax.vim" for selecting the syntax colors. Often set
  400. automatically, depending on the terminal used.
  401. 'complete' Specifies how Insert mode completion works.
  402. 'eventignore' Makes it possible to ignore autocommands temporarily.
  403. 'fileformat' Current file format. Replaces 'textmode'.
  404. 'fileformats' Possible file formats. Replaces 'textauto'.
  405. New is that this also supports Macintosh format: A single <CR>
  406. separates lines.
  407. The default for 'fileformats' for MS-DOS, Win32 and OS/2 is
  408. "dos,unix", also when 'compatible' set. Unix type files
  409. didn't work anyway when 'fileformats' was empty.
  410. 'guicursor' Set the cursor shape and blinking in various modes.
  411. Default is to adjust the cursor for Insert and Replace mode,
  412. and when an operator is pending. Blinking is default on.
  413. 'fkmap' Farsi key mapping.
  414. 'hlsearch' Highlight all matches with the last used search pattern.
  415. 'hkmapp' Phonetic Hebrew mapping. (Ilya Dogolazky)
  416. 'iconstring' Define the name of the icon, when not empty. (Version 5.2: the
  417. string is used literally, a newline can be used to make two
  418. lines.)
  419. 'lazyredraw' Don't redraw the screen while executing macros, registers or
  420. other not typed commands.
  421. 'makeef' Errorfile to be used for ":make". "##" is replaced with a
  422. unique number. Avoids that two Vim sessions overwrite each
  423. others errorfile. The Unix default is "/tmp/vim##.err"; for
  424. Amiga "t:vim##.Err, for others "vim##.err".
  425. 'matchtime' 1/10s of a second to show a matching paren, when 'showmatch'
  426. is set. Like Nvi.
  427. 'mousehide' Hide mouse pointer in GUI when typing text.
  428. 'nrformats' Defines what bases Vim will consider for numbers when using
  429. the CTRL-A and CTRL-X commands. Default: "hex,octal".
  430. 'shellxquote' Add extra quotes around the whole shell command, including
  431. redirection.
  432. 'softtabstop' Make typing behave like tabstop is set at this value, without
  433. changing the value of 'tabstop'. Makes it more easy to keep
  434. 'ts' at 8, while still getting four spaces for a <Tab>.
  435. 'titlestring' String for the window title, when not empty. (Version 5.2:
  436. this string is used literally, a newline can be used to make
  437. two lines.)
  438. 'verbose' Level of verbosity. Makes it possible to show which .vimrc,
  439. .exrc, .viminfo files etc. are used for initializing. Also
  440. to show autocommands that are being executed. Can also be set
  441. by using the "-V" command-line argument.
  442. New command-line arguments *added-cmdline-args*
  443. --------------------------
  444. |-U| Set the gvimrc file to be used. Like "-u" for the vimrc.
  445. |-V| Set the 'verbose' option. E.g. "vim -V10".
  446. |-N| Start in non-compatible mode.
  447. |-C| Start in compatible mode.
  448. |-Z| Start in restricted mode, disallow shell commands. Can also
  449. be done by calling the executable "rvim".
  450. |-h| Show usage information and exit.
  451. Various additions *added-various*
  452. -----------------
  453. Added support for SNiFF+ connection (submitted by Toni Leherbauer). Vim can
  454. be used as an editor for SNiFF. No documentation available...
  455. For producing a bug report, the bugreport.vim script has been included.
  456. Can be used with ":so $VIMRUNTIME/bugreport.vim", which creates the file
  457. "bugreport.txt" in the current directory. |bugs|
  458. Added range to ":normal" command. Now you can repeat the same command for
  459. each line in the range. |:normal-range|
  460. Included support for the Farsi language (Shiran). Only when enabled at
  461. compile time. See |farsi|.
  462. ==============================================================================
  463. IMPROVEMENTS *improvements-5*
  464. Performance:
  465. - When 'showcmd' was set, mappings would execute much more slowly because the
  466. output would be flushed very often. Helps a lot when executing the "life"
  467. macros with 'showcmd' set.
  468. - Included patches for binary searching in tags file (David O'Neill).
  469. Can be disabled by resetting the 'tagbsearch' option.
  470. - Don't update the ruler when repeating insert (slowed it down a lot).
  471. - For Unix, file name expansion is now done internally instead of starting a
  472. shell for it.
  473. - Expand environment variables with expand_env(), instead of calling the
  474. shell. Makes ":so $VIMRUNTIME/syntax/syntax.vim" a LOT faster.
  475. - Reduced output for cursor positioning: Use CR-LF for moving to first few
  476. columns in next few lines; Don't output CR twice when using termios.
  477. - Optimized cursor positioning. Use CR, BS and NL when it's shorter than
  478. absolute cursor positioning.
  479. - Disable redrawing while repeating insert "1000ii<Esc>".
  480. - Made "d$" or "D" for long lines a lot faster (delete all characters at once,
  481. instead of one by one).
  482. - Access option table by first letter, instead of searching from start.
  483. - Made setting special highlighting attributes a lot faster by using
  484. highlight_attr[], instead of searching in the 'highlight' string.
  485. - Don't show the mode when redrawing is disabled.
  486. - When setting an option, only redraw the screen when required.
  487. - Improved performance of Ex commands by using a lookup table for the first
  488. character.
  489. Options:
  490. 'cinoptions' Added 'g' flag, for C++ scope declarations.
  491. 'cpoptions' Added 'E' flag: Disallow yanking, deleting, etc. empty text
  492. area. Default is to allow empty yanks. When 'E' is included,
  493. "y$" in an empty line now is handled as an error (Vi
  494. compatible).
  495. Added 'j' flag: Only add two spaces for a join after a '.',
  496. not after a '?' or '!'.
  497. Added 'A' flag: don't give ATTENTION message.
  498. Added 'L' flag: When not included, and 'list' is set,
  499. 'textwidth' formatting works like 'list' is not set.
  500. Added 'W' flag: Let ":w!" behave like Vi: don't overwrite
  501. readonly files, or a file owned by someone else.
  502. 'highlight' Added '@' flag, for '@' characters after the last line on the
  503. screen, and '$' at the end of the line when 'list' is set.
  504. Added 'i' flag: Set highlighting for 'incsearch'. Default
  505. uses "IncSearch" highlight group, which is linked to "Visual".
  506. Disallow 'h' flag in 'highlight' (wasn't used anymore since
  507. 3.0).
  508. 'guifont' Win32 GUI only: When set to "*" brings up a font requester.
  509. 'guipty' Default on, because so many people need it.
  510. 'path' Can contain wildcards, and "**" for searching a whole tree.
  511. 'shortmess' Added 'I' flag to avoid the intro message.
  512. 'viminfo' Added '%' flag: Store buffer list in viminfo file.
  513. - Increased defaults for 'maxmem' and 'maxmemtot' for Unix and Win32. Most
  514. machines have much more RAM now that prices have dropped.
  515. - Implemented ":set all&", set all options to their default value. |:set|
  516. Swap file:
  517. - Don't create a swap file for a readonly file. Then create one on the first
  518. change. Also create a swapfile when the amount of memory used is getting
  519. too high. |swap-file|
  520. - Make swap file "hidden", if possible. On Unix this is done by prepending a
  521. dot to the swap file name. When long file names are used, the DJGPP and
  522. Win32 versions also prepend a dot, in case a file on a mounted Unix file
  523. system is edited. |:swapname| On MSDOS the hidden file attribute is NOT
  524. set, because this causes problems with share.exe.
  525. - 'updatecount' always defaults to non-zero, also for Vi compatible mode.
  526. This means there is a swap file, which can be used for recovery.
  527. Tags:
  528. - Included ctags 2.0 (Darren Hiebert). The syntax for static tags changed
  529. from
  530. {tag}:{fname} {fname} {command}
  531. to
  532. {tag} {fname} {command};" file:
  533. Which is both faster to parse, shorter and Vi compatible. The old format is
  534. also still accepted, unless disabled in src/feature.h (see OLD_STATIC_TAGS).
  535. |tags-file-format|
  536. - Completion of tags now also includes static tags for other files, at the
  537. end.
  538. - Included "shtags" from Stephen Riehm.
  539. - When finding a matching tag, but the file doesn't exist, continue searching
  540. for another match. Helps when using the same tags file (with links) for
  541. different versions of source code.
  542. - Give a tag with a global match in the current file a higher priority than a
  543. global match in another file.
  544. Included xxd version V1.8 (Juergen Weigert).
  545. Autocommands:
  546. - VimLeave autocommands are executed after writing the viminfo file, instead
  547. of before. |VimLeave|
  548. - Allow changing autocommands while executing them. This allows for
  549. self-modifying autocommands. (idea from Goldberg)
  550. - When using autocommands with two or more patterns, could not split
  551. ":if/:endif" over two lines. Now all matching autocommands are executed in
  552. one do_cmdline().
  553. - Autocommands no longer change the command repeated with ".".
  554. - Search patterns are restored after executing autocommands. This avoids
  555. that the 'hlsearch' highlighting is messed up by autocommands.
  556. - When trying to execute an autocommand, also try matching the pattern with
  557. the short file name. Helps when short file name is different from full
  558. file name (expanded symbolic links). |autocmd-patterns|
  559. - Made the output of ":autocmd" shorter and look better.
  560. - Expand <sfile> in an ":autocmd" when it is defined. |<sfile>|
  561. - Added "nested" flag to ":autocmd", allows nesting. |autocmd-nested|
  562. - Added [group] argument to ":autocmd". Overrides the currently set group.
  563. |autocmd-groups|
  564. - new events:
  565. |BufUnload| before a buffer is unloaded
  566. |BufDelete| before a buffer is deleted from the buffer list
  567. |FileChangedShell| when a file's modification time has changed after
  568. executing a shell command
  569. |User| user-defined autocommand
  570. - When 'modified' was set by a BufRead* autocommand, it was reset again
  571. afterwards. Now the ":set modified" is remembered.
  572. GUI:
  573. - Improved GUI scrollbar handling when redrawing is slower than the scrollbar
  574. events are generated.
  575. - "vim -u NONE" now also stops loading the .gvimrc and other GUI inits. |-u|
  576. Use "-U" to use another gvimrc file. |-U|
  577. - Handle CTRL-C for external command, also for systems where "setsid()" is
  578. supported.
  579. - When starting the GUI, restrict the window size to the screen size.
  580. - The default menus are read from $VIMRUNTIME/menu.vim. This allows for a
  581. customized default menu. |menu.vim|
  582. - Improved the default menus. Added File/Print, a Window menu, Syntax menu,
  583. etc.
  584. - Added priority to the ":menu" command. Now each menu can be put in a place
  585. where you want it, independent of the order in which the menus are defined.
  586. |menu-priority|
  587. Give a warning in the intro screen when running the Win32 console version on
  588. Windows 95 because there are problems using this version under Windows 95.
  589. |win32-problems|
  590. Added 'e' flag for ":substitute" command: Don't complain when not finding a
  591. match (Campbell). |:s|
  592. When using search commands in a mapping, only the last one is kept in the
  593. history. Avoids that the history is trashed by long mappings.
  594. Ignore characters after "ex", "view" and "gvim" when checking startup mode.
  595. Allows the use of "gvim5" et. al. |gvim| "gview" starts the GUI in readonly
  596. mode. |gview|
  597. When resizing windows, the cursor is kept in the same relative position, if
  598. possible. (Webb)
  599. ":all" and ":ball" no longer close and then open a window for the same buffer.
  600. Avoids losing options, jumplist, and other info.
  601. "-f" command-line argument is now ignored if Vim was compiled without GUI.
  602. |-f|
  603. In Visual block mode, the right mouse button picks up the nearest corner.
  604. Changed default mappings for DOS et al. Removed the DOS-specific mappings,
  605. only use the Windows ones. Added Shift-Insert, Ctrl-Insert, Ctrl-Del and
  606. Shift-Del.
  607. Changed the numbers in the output of ":jumps", so you can see where {count}
  608. CTRL-O takes you. |:jumps|
  609. Using "~" for $HOME now works for all systems. |$HOME|
  610. Unix: Besides using CTRL-C, also use the INTR character from the tty settings.
  611. Somebody has INTR set to DEL.
  612. Allow a <NL> in a ":help" command argument to end the help command, so another
  613. command can follow.
  614. Doing "%" on a line that starts with " #if" didn't jump to matching "#else".
  615. Don't recognize "#if", "#else" etc. for '%' when 'cpo' contains the '%' flag.
  616. |%|
  617. Insert mode expansion with "CTRL-N", "CTRL-P" and "CTRL-X" improved
  618. |ins-completion|:
  619. - 'complete' option added.
  620. - When 'nowrapscan' is set, and no match found, report the searched direction
  621. in the error message.
  622. - Repeating CTRL-X commands adds following words/lines after the match.
  623. - When adding-expansions, accept single character matches.
  624. - Made repeated CTRL-X CTRL-N not break undo, and "." repeats the whole
  625. insertion. Also fixes not being able to backspace over a word that has been
  626. inserted with CTRL-N.
  627. When copying characters in Insert mode from previous/next line, with CTRL-E or
  628. CTRL-Y, 'textwidth' is no longer used. |i_CTRL-E|
  629. Commands that move in the arglist, like ":n" and ":rew", keep the old cursor
  630. position of the file (this is mostly Vi compatible).
  631. Vim now remembers the '< and '> marks for each buffer. This fixes a problem
  632. that a line-delete in one buffer invalidated the '< and '> marks in another
  633. buffer. |'<|
  634. For MSDOS, Unix and OS/2: When $VIM not set, use the path from the executable.
  635. When using the executable path for $VIM, remove "src/" when present. Should
  636. make Vim find the docs and syntax files when it is run directly after
  637. compiling. |$VIM|
  638. When quitting Visual mode with <Esc>, the cursor is put at start of the Visual
  639. area (like after executing an operator).
  640. Win32 and Unix version: Removed 1100 character limit on external commands.
  641. Added possibility to include a space in a ":edit +command" argument, by
  642. putting a backslash before it. |+cmd|
  643. After recovery, BufReadPost autocommands are applied. |:recover|
  644. Added color support for "os2ansi", OS/2 console. (Slootman)
  645. Allow "%:p:h" when % is empty. |:_%|
  646. Included "<sfile>": file name from the ":source" command. |<sfile>|
  647. Added "<Bslash>" special character. Helps for avoiding multiple backslashes
  648. in mappings and menus.
  649. In a help window, a double-click jumps to the tag under the cursor (like
  650. CTRL-]).
  651. <C-Left> and <C-Right> now work like <S-Left> and <S-Right>, move a word
  652. forward/backward (Windows compatible). |<C-Left>|
  653. Removed the requirement for a ":version" command in a .vimrc file. It wasn't
  654. used for anything. You can use ":if" to handle differences between versions.
  655. |:version|
  656. For MS-DOS, Win32 and OS/2: When comparing file names for autocommands, don't
  657. make a difference between '/' and '\' for path separator.
  658. New termcap options:
  659. "mb": blink. Can only be used by assigning it to one of the other highlight
  660. options. |t_mb|
  661. "bc": backspace character. |t_bc|
  662. "nd": Used for moving the cursor right in the GUI, to avoid removing one line
  663. of pixels from the last bold character. |t_nd|
  664. "xs": highlighting not erased by overwriting, for hpterm. Combined with
  665. 'weirdinvert'. Visual mode works on hpterm now. |t_xs|
  666. Unix: Set time of patch and backup file same as original file. (Hiebert).
  667. Amiga: In QuickFix mode no longer opens another window. Shell commands can be
  668. used now.
  669. Added decmouse patches from David Binette. Can now use Dec and Netterm mouse.
  670. But only when enabled at compile time.
  671. Added '#' register: Alternate file name |quote#|. Display '#' register with
  672. ":dis" command. |:display|
  673. Removed ':' from 'isfname' default for Unix. Check for "://" in a file name
  674. anyway. Also check for ":\\", for MS-DOS.
  675. Added count to "K"eyword command, when 'keywordprg' is "man", is inserted in
  676. the man command. "2K" results in "!man 2 <cword>". |K|
  677. When using "gf" on a relative path name, remove "../" from the file name, like
  678. it's done for file names in the tags file. |gf|
  679. When finishing recording, don't make the recorded register the default put
  680. register.
  681. When using "!!", don't put ":5,5!" on the command-line, but ":.!". And some
  682. other enhancements to replace the line number with "." or "$" when possible.
  683. MSDOS et al.: Renamed $VIM/viminfo to $VIM/_viminfo. It's more consistent:
  684. .vimrc/_vimrc and .viminfo/_viminfo
  685. For systems where case doesn't matter in file names (MSDOS, Amiga), ignore
  686. case while sorting file names. For buffer names too.
  687. When reading from stdin doesn't work, read from stderr (helps for "foo | xargs
  688. vim").
  689. 32 bit MS-DOS version: Replaced csdpmi3 by csdpmi4.
  690. Changed <C-Left> and <C-Right> to skip a WORD instead of a word.
  691. Warning for changed modified time when overwriting a file now also works on
  692. other systems than Unix.
  693. Unix: Changed the defaults for configure to be the same as the defaults for
  694. Makefile: include GUI, Perl, and Python.
  695. Some versions of Motif require "-lXpm". Added check for this in configure.
  696. Don't add "-L/usr/lib" to the link line, causes problems on a few systems.
  697. ==============================================================================
  698. COMPILE TIME CHANGES *compile-changes-5*
  699. When compiling, allow a choice for minimal, normal or maximal features in an
  700. easy way, by changing a single line in src/feature.h.
  701. The DOS16 version has been compiled with minimal features to avoid running
  702. out of memory too quickly.
  703. The Win32, DJGPP, and OS/2 versions use maximal features, because they have
  704. enough memory.
  705. The Amiga version is available with normal and maximal features.
  706. Added "make test" to Unix version Makefile. Allows for a quick check if most
  707. "normal" commands work properly. Also tests a few specific commands.
  708. Added setlocale() with codepage support for DJGPP version.
  709. autoconf:
  710. - Added autoconf check for -lXdmcp.
  711. - Included check for -lXmu, no longer needed to edit the Makefile for this.
  712. - Switched to autoconf 2.12.
  713. - Added configure check for <poll.h>. Seems to be needed when including
  714. Perl on Linux?
  715. - termlib is now checked before termcap.
  716. - Added configure check for strncasecmp(), stricmp() and strnicmp(). Added
  717. vim_stricmp() for when there's no library function for stricmp().
  718. - Use "datadir" in configure, instead of our own check for HELPDIR.
  719. Removed "make proto" from Makefile.manx. Could not make it work without a lot
  720. of #ifdefs.
  721. Removed "proto/" from paths in proto.h. Needed for the Mac port.
  722. Drastically changed Makefile.mint. Now it includes the Unix Makefile.
  723. Added support for Dos16 in Makefile.b32 (renamed Makefile.b32 to Makefile.bor)
  724. All source files are now edited with a tabstop of 8 instead of 4, which is
  725. better when debugging and using other tools. 'softtabstop' is set to 4, to
  726. make editing easier.
  727. Unix: Added "link.sh" script, which removes a few unnecessary libraries from
  728. the link command.
  729. Don't use HPUX digraphs by default, but only when HPUX_DIGRAPHS is defined.
  730. |digraphs-default|
  731. ==============================================================================
  732. BUG FIXES *bug-fixes-5*
  733. Note: Some of these fixes may only apply to test versions which were
  734. created after version 4.6, but before 5.0.
  735. When doing ":bdel", try going to the next loaded buffer. Don't rewind to the
  736. start of the buffer list.
  737. mch_isdir() for Unix returned TRUE for "" on some systems.
  738. Win32: 'shell' set to "mksnt/sh.exe" breaks ":!" commands. Don't use
  739. backslashes in the temp file names.
  740. On linux, with a FAT file system, could get spurious "file xxx changed since
  741. editing started" messages, because the time is rounded off to two seconds
  742. unexpectedly.
  743. Crash in GUI, when selecting a word (double click) and then extend until an
  744. empty line.
  745. For systems where isdigit() can't handle characters > 255, get_number() caused
  746. a crash when moving the mouse during the prompt for recovery.
  747. In Insert mode, "CTRL-O P" left the cursor on the last inserted character.
  748. Now the cursor is left after the last putted character.
  749. When quickfix found an error type other than 'e' or 'w', it was never printed.
  750. A setting for 'errorfile' in a .vimrc overruled the "-q errorfile" argument.
  751. Some systems create a file when generating a temp file name. Filtering would
  752. then create a backup file for this, which was never deleted. Now no backup
  753. file is made when filtering.
  754. simplify_filename() could remove a ".." after a link, resulting in the wrong
  755. file name. Made simplify_filename also work for MSDOS. Don't use it for
  756. Amiga, since it doesn't have "../".
  757. otherfile() was unreliable when using links. Could think that reading/writing
  758. was for a different file, when it was the same.
  759. Pasting with mouse in Replace mode didn't replace anything.
  760. Window height computed wrong when resizing a window with an autocommand (could
  761. cause a crash).
  762. ":s!foo!bar!" wasn't possible (Vi compatible).
  763. do_bang() freed memory twice when called recursively, because of autocommands
  764. (test11). Thanks to Electric Fence!
  765. "v$d" on an empty line didn't remove the "-- VISUAL --" mode message from the
  766. command-line, and inverted the cursor.
  767. ":mkexrc" didn't check for failure to open the file, causing a crash.
  768. (Felderhoff).
  769. Win32 mch_write() wrote past fixed buffer, causing terminal keys no longer to
  770. be recognized. Both console and GUI version.
  771. Athena GUI: Crash when removing a menu item. Now Vim doesn't crash, but the
  772. reversing of the menu item is still wrong.
  773. Always reset 'list' option for the help window.
  774. When 'scrolloff' is non-zero, a 'showmatch' could cause the shown match to be
  775. in the wrong line and the window to be scrolled (Acevedo).
  776. After ":set all&", 'lines' and 'ttytype' were still non-default, because the
  777. defaults never got set. Now the defaults for 'lines' and 'columns' are set
  778. after detecting the window size. 'term' and 'ttytype' defaults are set when
  779. detecting the terminal type.
  780. For (most) non-Unix systems, don't add file names with illegal characters when
  781. expanding. Fixes "cannot open swapfile" error when doing ":e *.burp", when
  782. there is no match.
  783. In X11 GUI, drawing part of the cursor obscured the text. Now the text is
  784. drawn over the cursor, like when it fills the block. (Seibert)
  785. when started with "-c cmd -q errfile", the cursor would be left in line 1.
  786. Now a ":cc" is done after executing "cmd".
  787. ":ilist" never ignored case, even when 'ignorecase' set.
  788. "vim -r file" for a readonly file, then making a change, got ATTENTION message
  789. in insert mode, display mixed up until <Esc> typed. Also don't give ATTENTION
  790. message after recovering a file.
  791. The abbreviation ":ab #i #include" could not be removed.
  792. CTRL-L completion (longest common match) on command-line didn't work properly
  793. for case-insensitive systems (MS-DOS, Windows, etc.). (suggested by Richard
  794. Kilgore).
  795. For terminals that can hide the cursor ("vi" termcap entry), resizing the
  796. window caused the cursor to disappear.
  797. Using an invalid mark in an Ex address didn't abort the command.
  798. When 'smarttab' set, would use 'shiftround' when inserting a TAB after a
  799. space. Now it always rounds to a tabstop.
  800. Set '[ and '] marks for ":copy", ":move", ":append", ":insert", ":substitute"
  801. and ":change". (Acevedo).
  802. "d$" in an empty line still caused an error, even when 'E' is not in
  803. 'cpoptions'.
  804. Help files were stored in the viminfo buffer list without a path.
  805. GUI: Displaying cursor was not synchronized with other displaying. Caused
  806. several display errors. For example, when the last two lines in the file
  807. start with spaces, "dd" on the last line copied text to the (then) last line.
  808. Win32: Needed to type CTRL-SHIFT-- to get CTRL-_.
  809. GUI: Moving the cursor forwards over bold text would remove one column of bold
  810. pixels.
  811. X11 GUI: When a bold character in the last column was scrolled up or down, one
  812. column of pixels would not be copied.
  813. Using <BS> to move the cursor left can sometimes erase a character. Now use
  814. "le" termcap entry for this.
  815. Keyword completion with regexp didn't work. e.g., for "b.*crat".
  816. Fixed: With CTRL-O that jumps to another file, cursor could end up just after
  817. the line.
  818. Amiga: '$' was missing from character recognized as wildcards, causing $VIM
  819. sometimes not to be expanded.
  820. ":change" didn't adjust marks for deleted lines.
  821. ":help [range]" didn't work. Also for [pattern], [count] and [quotex].
  822. For 'cindent'ing, typing "class::method" doesn't align like a label when the
  823. second ':' is typed.
  824. When inserting a CR with 'cindent' set (and a bunch of other conditions) the
  825. cursor went to a wrong location.
  826. 'cindent' was wrong for a line that ends in '}'.
  827. 'cindent' was wrong after "else {".
  828. While editing the cmdline in the GUI, could not use the mouse to select text
  829. from the command-line itself.
  830. When deleting lines, marks in tag stack were only adjusted for the current
  831. window, not for other windows on the same buffer.
  832. Tag guessing could find a function "some_func" instead of the "func" we were
  833. looking for.
  834. Tags file name relative to the current file didn't work.
  835. ":g/pat2/s//pat2/g", causing the number of subs to be reported, used to cause
  836. a scroll up. Now you no longer have to hit <CR>.
  837. X11 GUI: Selecting text could cause a crash.
  838. 32 bit DOS version: CTRL-C in external command killed Vim. When SHELL is set
  839. to "sh.exe", external commands didn't work. Removed using of command.com, no
  840. longer need to set 'shellquote'.
  841. Fixed crash when using ":g/pat/i".
  842. Fixed (potential) crash for X11 GUI, when using an X selection. Was giving a
  843. pointer on the stack to a callback function, now it's static.
  844. Using "#" and "*" with an operator didn't work. E.g. "c#".
  845. Command-line expansion didn't work properly after ":*". (Acevedo)
  846. Setting 'weirdinvert' caused highlighting to be wrong in the GUI.
  847. ":e +4 #" didn't work, because the "4" was in unallocated memory (could cause
  848. a crash).
  849. Cursor position was wrong for ":e #", after ":e #" failed, because of changes
  850. to the buffer.
  851. When doing ":buf N", going to a buffer that was edited with ":view", the
  852. readonly flag was reset. Now make a difference between ":e file" and ":buf
  853. file": Only set/reset 'ro' for the first one.
  854. Avoid |hit-enter| prompt when not able to write viminfo on exit.
  855. When giving error messages in the terminal where the GUI was started, GUI
  856. escape codes would be written to the terminal. In an xterm this could be seen
  857. as a '$' after the message.
  858. Mouse would not work directly after ":gui", because full_screen isn't set,
  859. which causes starttermcap() not to do its work.
  860. 'incsearch' did not scroll the window in the same way as the actual search.
  861. When 'nowrap' set, incsearch didn't show a match when it was off the side of
  862. the screen. Now it also shows the whole match, instead of just the cursor
  863. position (if possible).
  864. ":unmap", ":unab" and ":unmenu" did not accept a double quote, it was seen as
  865. the start of a comment. Now it's Vi compatible.
  866. Using <Up><Left><Left><Up> in the command-line, when there is no previous
  867. cmdline in the history, inserted a NUL on the command-line.
  868. "i<Esc>" when on a <Tab> in column 0 left the cursor in the wrong place.
  869. GUI Motif: When adding a lot of menu items, the menu bar goes into two rows.
  870. Deleting menu items, reducing the number of rows, now also works.
  871. With ":g/pat/s//foo/c", a match in the first line was scrolled off of the
  872. screen, so you could not see it.
  873. When using ":s//c", with 'nowrap' set, a match could be off the side of the
  874. screen, so you could not see it.
  875. When 'helpfile' was set to a fixed, non-absolute path in feature.h, Vim would
  876. crash. mch_Fullname can now handle file names in read-only memory. (Lottem)
  877. When using CTRL-A or CTRL-@ in Insert mode, there could be strange effects
  878. when using CTRL-D next. Also, when repeating inserted text that included "0
  879. CTRL-D" or "^ CTRL-D" this didn't work. (Acevedo)
  880. Using CTRL-D after using CTRL-E or CTRL-Y in Insert mode that inserted a '0'
  881. or '^', removed the '0' or '^' and more indent.
  882. The command "2".p" caused the last inserted text to be executed as commands.
  883. (Acevedo)
  884. Repeating the insert of "CTRL-V 048" resulted in "^@" to be inserted.
  885. Repeating Insert completion could fail if there are special characters in the
  886. text. (Acevedo)
  887. ":normal /string<CR>" caused the window to scroll. Now all ":normal" commands
  888. are executed without scrolling messages.
  889. Redo of CTRL-E or CTRL-Y in Insert mode interpreted special characters as
  890. commands.
  891. Line wrapping for 'tw' was done one character off for insert expansion
  892. inserts.
  893. buffer_exists() function didn't work properly for buffer names with a symbolic
  894. link in them (e.g. when using buffer_exists(#)).
  895. Removed the "MOTIF_COMMENT" construction from Makefile. It now works with
  896. FreeBSD make, and probably with NeXT make too.
  897. Matching the 'define' and 'include' arguments now honor the settings for
  898. 'ignorecase'. (Acevedo)
  899. When one file shown in two windows, Visual selection mixed up cursor position
  900. in current window and other window.
  901. When doing ":e file" from a help file, the 'isk' option wasn't reset properly,
  902. because of a modeline in the help file.
  903. When doing ":e!", a cursor in another window on the same buffer could become
  904. invalid, leading to "ml_get: invalid lnum" errors.
  905. Matching buffer name for when expanded name has a different path from not
  906. expanded name (Brugnara).
  907. Normal mappings didn't work after an operator. For example, with ":map Q gq",
  908. "QQ" didn't work.
  909. When ":make" resulted in zero errors, a "No Errors" error message was given
  910. (which breaks mappings).
  911. When ":sourcing" a file, line length was limited to 1024 characters. CTRL-V
  912. before <EOL> was not handled Vi compatible. (Acevedo)
  913. Unexpected exit for X11 GUI, caused by SAVE_YOURSELF event. (Heimann)
  914. CTRL-X CTRL-I only found one match per line. (Acevedo)
  915. When using an illegal CTRL-X key in Insert mode, the CTRL-X mode message
  916. was stuck.
  917. Finally managed to ignore the "Quit" menu entry of the Window manager! Now
  918. Vim only exists when there are no changed buffers.
  919. Trying to start the GUI when $DISPLAY is not set resulted in a crash.
  920. When $DISPLAY is not set and gvim starts vim, title was restored to "Thanks
  921. for flying Vim".
  922. When $DISPLAY not set, starting "gvim" (dropping back to vim) and then
  923. selecting text with the mouse caused a crash.
  924. "J", with 'joinspaces' set, on a line ending in ". ", caused one space too
  925. many to be added. (Acevedo)
  926. In insert mode, a CTRL-R {regname} which didn't insert anything left the '"'
  927. on the screen.
  928. ":z10" didn't work. (Clapp)
  929. "Help "*" didn't work.
  930. Renamed a lot of functions, to avoid clashes with POSIX name space.
  931. When adding characters to a line, making it wrap, the following lines were
  932. sometimes not shifted down (e.g. after a tag jump).
  933. CTRL-E, with 'so' set and cursor on last line, now does not move cursor as
  934. long as the last line is on the screen.
  935. When there are two windows, doing "^W+^W-" in the bottom window could cause
  936. the status line to be doubled (not redrawn correctly).
  937. This command would hang: ":n `cat`". Now connect stdin of the external
  938. command to /dev/null, when expanding.
  939. Fixed lalloc(0,) error for ":echo %:e:r". (Acevedo)
  940. The "+command" argument to ":split" didn't work when there was no file name.
  941. When selecting text in the GUI, which is the output of a command-line command
  942. or an external command, the inversion would sometimes remain.
  943. GUI: "-mh 70" argument was broken. Now, when menuheight is specified, it is
  944. not changed anymore.
  945. GUI: When using the scrollbar or mouse while executing an external command,
  946. this caused garbage characters.
  947. Showmatch sometimes jumped to the wrong position. Was caused by a call to
  948. findmatch() when redrawing the display (when syntax highlighting is on).
  949. Search pattern "\(a *\)\{3} did not work correctly, also matched "a a".
  950. Problem with brace_count not being decremented.
  951. Wildcard expansion added too many non-matching file names.
  952. When 'iskeyword' contains characters like '~', "*" and "#" didn't work
  953. properly. (Acevedo)
  954. On Linux, on a FAT file system, modification time can change by one second.
  955. Avoid a "file has changed" warning for a one second difference.
  956. When using the page-switching in an xterm, Vim would position the cursor on
  957. the last line of the window on exit. Also removed the cursor positioning for
  958. ":!" commands.
  959. ":g/pat/p" command (partly) overwrote the command. Now the output is on a
  960. separate line.
  961. With 'ic' and 'scs' set, a search for "Keyword", ignore-case matches were
  962. highlighted too.
  963. "^" on a line with only white space, put cursor beyond the end of the line.
  964. When deleting characters before where insertion started ('bs' == 2), could not
  965. use abbreviations.
  966. CTRL-E at end of file puts cursor below the file, in Visual mode, when 'so' is
  967. non-zero. CTRL-E didn't work when 'so' is big and the line below the window
  968. wraps. CTRL-E, when 'so' is non-zero, at end of the file, caused jumping
  969. up-down.
  970. ":retab" didn't work well when 'list' is set.
  971. Amiga: When inserting characters at the last line on the screen, causing it
  972. to wrap, messed up the display. It appears that a '\n' on the last line
  973. doesn't always cause a scroll up.
  974. In Insert mode "0<C-D><C-D>" deleted an extra character, because Vim thought
  975. that the "0" was still there. (Acevedo)
  976. "z{count}l" ignored the count. Also for "zh" et. al. (Acevedo)
  977. "S" when 'autoindent' is off didn't delete leading white space.
  978. "/<Tab>" landed on the wrong character when 'incsearch' is set.
  979. Asking a yes/no question could cause a |hit-enter| prompt.
  980. When the file consists of one long line (>4100 characters), making changes
  981. caused various errors and a crash.
  982. DJGPP version could not save long lines (>64000) for undo.
  983. "yw" on the last char in the file didn't work. Also fixed "6x" at the end of
  984. the line. "6X" at the start of a line fails, but does not break a mapping. In
  985. general, a movement for an operator doesn't beep or flush a mapping, but when
  986. there is nothing to operate on it beeps (this is Vi compatible).
  987. "m'" and "m`" now set the '' mark at the cursor position.
  988. Unix: Resetting of signals for external program didn't work, because SIG_DFL
  989. and NULL are the same! For "!!yes|dd count=1|, the yes command kept on
  990. running.
  991. Partly fixed: Unix GUI: Typeahead while executing an external command was lost.
  992. Now it's not lost while the command is producing output.
  993. Typing <S-Tab> in Insert mode, when it isn't mapped, inserted "<S-Tab>". Now
  994. it works like a normal <Tab>, just like <C-Tab> and <M-Tab>.
  995. Redrawing ruler didn't check for old value correctly (caused UMR warnings in
  996. Purify).
  997. Negative array index in finish_viminfo_history().
  998. ":g/^/d|mo $" deleted all the lines. The ":move" command now removes the
  999. :global mark from the moved lines.
  1000. Using "vG" while the last line in the window is a "@" line, didn't update
  1001. correctly. Just the "v" showed "~" lines.
  1002. "daw" on the last char of the file, when it's a space, moved the cursor beyond
  1003. the end of the line.
  1004. When 'hlsearch' was set or reset, only the current buffer was redrawn, while
  1005. this affects all windows.
  1006. CTRL-^, positioning the cursor somewhere from 1/2 to 1 1/2 screen down the
  1007. file, put the cursor at the bottom of the window, instead of halfway.
  1008. When scrolling up for ":append" command, not all windows were updated
  1009. correctly.
  1010. When 'hlsearch' is set, and an auto-indent is highlighted, pressing <Esc>
  1011. didn't remove the highlighting, although the indent was deleted.
  1012. When 'ru' set and 'nosc', using "$j" showed a wrong ruler.
  1013. Under Xfree 3.2, Shift-Tab didn't work (wrong keysym is used).
  1014. Mapping <S-Tab> didn't work. Changed the key translations to use the shortest
  1015. key code possible. This makes the termcode translations and mappings more
  1016. consistent. Now all modifiers work in all combinations, not only with <Tab>,
  1017. but also with <Space>, <CR>, etc.
  1018. For Unix, restore three more signals. And Vim catches SIGINT now, so CTRL-C
  1019. in Ex mode doesn't make Vim exit.
  1020. ""a5Y" yanked 25 lines instead of 5.
  1021. "vrxxx<Esc>" in an empty line could not be undone.
  1022. A CTRL-C that breaks ":make" caused the errorfile not to be read (annoying
  1023. when you want to handle what ":make" produced so far).
  1024. ":0;/pat" didn't find "pat" in line 1.
  1025. Search for "/test/s+1" at first char of file gave bottom-top message, or
  1026. didn't work at all with 'nowrapscan'.
  1027. Bug in viminfo history. Could cause a crash on exit.
  1028. ":print" didn't put cursor on first non-blank in line.
  1029. ":0r !cat </dev/null" left cursor in line zero, with very strange effects.
  1030. With 'showcmd' set and 'timeoutlen' set to a few seconds, trick to position
  1031. the cursor leftwards didn't work.
  1032. AIX stty settings were restored to cs5 instead of cs8 (Winn).
  1033. File name completion didn't work for "zsh" versions that put spaces between
  1034. file names, instead of NULs.
  1035. Changed "XawChain*" to "XtChain*", should work for more systems.
  1036. Included quite a few fixes for rightleft mode (Lottem).
  1037. Didn't ask to |hit-enter| when GUI is started and error messages are printed.
  1038. When trying to edit a file in a non-existent directory, ended up with editing
  1039. "No file".
  1040. "gqap" to format a paragraph did too much redrawing.
  1041. When 'hlsearch' set, only the current window was updated for a new search
  1042. pattern.
  1043. Sometimes error messages on startup didn't cause a |hit-enter| prompt,
  1044. because of autocommands containing an empty line.
  1045. Was possible to select part of the window in the border, below the command
  1046. line.
  1047. '< and '> marks were not at the correct position after linewise Visual
  1048. selection.
  1049. When translating a help argument to "CTRL-x", prepend or append a '_', when
  1050. applicable.
  1051. Blockwise visual mode wasn't correct when moving vertically over a special
  1052. character (displayed as two screen characters).
  1053. Renamed "struct option" to "struct vimoption" to avoid name clash with GNU
  1054. getopt().
  1055. ":abclear" didn't work (but ":iabclear" and ":cabclear" did work).
  1056. When 'nowrap' used, screen wasn't always updated correctly.
  1057. "vim -c split file" displayed extra lines.
  1058. After starting the GUI, searched the termcap for a "gui" term.
  1059. When 'hls' used, search for "^$" caused a hang.
  1060. When 'hls' was set, an error in the last regexp caused trouble.
  1061. Unix: Only output an extra <EOL> on exit when outputted something in the
  1062. alternate screen, or when there is a message that needs to be cleared.
  1063. "/a\{" did strange things, depending on previous search.
  1064. "c}" only redrew one line (with -u NONE).
  1065. For mappings, CTRL-META-A was shown as <M-^A> instead of <MC-A>, while :map
  1066. only accepts <MC-A>. Now <M-C-A> is shown.
  1067. Unix: When using full path name in a tags file, which contains a link, and
  1068. 'hidden' set and jumping to a tag in the current file, would get bogus
  1069. ATTENTION message. Solved by always expanding file names, even when starting
  1070. with '/'.
  1071. 'hlsearch' highlighting of special characters (e.g., a TAB) didn't highlight
  1072. the whole thing.
  1073. "r<CR>" didn't work correctly on the last char of a line.
  1074. Sometimes a window resize or other signal caused an endless loop, involving
  1075. set_winsize().
  1076. "vim -r" didn't work, it would just hang (using tgetent() while 'term' is
  1077. empty).
  1078. "gk" while 'nowrap' set moved two lines up.
  1079. When windows are split, a message that causes a scroll-up messed up one of the
  1080. windows, which required a CTRL-L to be typed.
  1081. Possible endless loop when using shell command in the GUI.
  1082. Menus defined in the .vimrc were removed when GUI started.
  1083. Crash when pasting with the mouse in insert mode.
  1084. Crash with ":unmenu *" in .gvimrc for Athena.
  1085. "5>>" shifted 5 lines 5 times, instead of 1 time.
  1086. CTRL-C when getting a prompt in ":global" didn't interrupt.
  1087. When 'so' is non-zero, and moving the scrollbar completely to the bottom,
  1088. there was a lot of flashing.
  1089. GUI: Scrollbar ident must be long for DEC Alpha.
  1090. Some functions called vim_regcomp() without setting reg_magic, which could
  1091. lead to unpredictable magicness.
  1092. Crash when clicking around the status line, could get a selection with a
  1093. backwards range.
  1094. When deleting more than one line characterwise, the last character wasn't
  1095. deleted.
  1096. GUI: Status line could be overwritten when moving the scrollbar quickly (or
  1097. when 'wd' is non-zero).
  1098. An ESC at the end of a ":normal" command caused a wait for a terminal code to
  1099. finish. Now, a terminal code is not recognized when its start comes from a
  1100. mapping or ":normal" command.
  1101. Included patches from Robert Webb for GUI. Layout of the windows is now done
  1102. inside Vim, instead of letting the layout manager do this. Makes Vim work
  1103. with Lesstif!
  1104. UMR warning in set_expand_context().
  1105. Memory leak: b_winlnum list was never freed.
  1106. Removed TIOCLSET/TIOCLGET code from os_unix.c. Was changing some of the
  1107. terminal settings, and looked like it wasn't doing anything good. (suggested
  1108. by Juergen Weigert).
  1109. Ruler overwrote "is a directory" message. When starting up, and 'cmdheight'
  1110. set to > 1, first message could still be in the last line.
  1111. Removed prototype for putenv() from proto.h, it's already in osdef2.h.in.
  1112. In replace mode, when moving the cursor and then backspacing, wrong characters
  1113. were inserted.
  1114. Win32 GUI was checking for a CTRL-C too often, making it slow.
  1115. Removed mappings for MS-DOS that were already covered by commands.
  1116. When visually selecting all lines in a file, cursor at last line, then "J".
  1117. Gave ml_get errors. Was a problem with scrolling down during redrawing.
  1118. When doing a linewise operator, and then an operator with a mouse click, it
  1119. was also linewise, instead of characterwise.
  1120. When 'list' is set, the column of the ruler was wrong.
  1121. Spurious error message for "/\(b\+\)*".
  1122. When visually selected many lines, message from ":w file" disappeared when
  1123. redrawing the screen.
  1124. ":set <M-b>=^[b", then insert "^[b", waited for another character. And then
  1125. inserted "<M-b>" instead of the real <M-b> character. Was trying to insert
  1126. K_SPECIAL x NUL.
  1127. CTRL-W ] didn't use count to set window height.
  1128. GUI: "-font" command-line argument didn't override 'guifont' setting from
  1129. .gvimrc. (Acevedo)
  1130. GUI: clipboard wasn't used for "*y". And some more Win32/X11 differences
  1131. fixed for the clipboard (Webb).
  1132. Jumping from one help file to another help file, with 'compatible' set,
  1133. removed the 'help' flag from the buffer.
  1134. File-writable bit could be reset when using ":w!" for a readonly file.
  1135. There was a wait for CTRL-O n in Insert mode, because the search pattern was
  1136. shown.
  1137. Reduced wait, to allow reading a message, from 10 to 3 seconds. It seemed
  1138. nothing was happening.
  1139. ":recover" found same swap file twice.
  1140. GUI: "*yy only worked the second time (when pasting to an xterm)."
  1141. DJGPP version (dos32): The system flags were cleared.
  1142. Dos32 version: Underscores were sometimes replaced with y-umlaut (Levin).
  1143. Version 4.1 of ncurses can't handle tputs("", ..). Avoid calling tputs() with
  1144. an empty string.
  1145. <S-Tab> in the command-line worked like CTRL-P when no completion started yet.
  1146. Now it does completion, last match first.
  1147. Unix: Could get annoying "can't write viminfo" message after doing "su". Now
  1148. the viminfo file is overwritten, and the user set back to the original one.
  1149. ":set term=builtin_gui" started the GUI in a wrong way. Now it's not
  1150. allowed anymore. But "vim -T gui" does start the GUI correctly now.
  1151. GUI: Triple click after a line only put last char in selection, when it is a
  1152. single character word.
  1153. When the window is bigger than the screen, the scrolling up of messages was
  1154. wrong (e.g. ":vers", ":hi"). Also when the bottom part of the window was
  1155. obscured by another window.
  1156. When using a wrong option only an error message is printed, to avoid that the
  1157. usage information makes it scroll off the screen.
  1158. When exiting because of not being able to read from stdin, didn't preserve the
  1159. swap files properly.
  1160. Visual selecting all chars in more than one line, then hit "x" didn't leave an
  1161. empty line. For one line it did leave an empty line.
  1162. Message for which autocommand is executing messed up file write message (for
  1163. FileWritePost event).
  1164. "vim -h" included "-U" even when GUI is not available, and "-l" when lisp is
  1165. not available.
  1166. Crash for ":he <C-A>" (command-line longer than screen).
  1167. ":s/this/that/gc", type "y" two times, then undo, did reset the modified
  1168. option, even though the file is still modified.
  1169. Empty lines in a tags file caused a ":tag" to be aborted.
  1170. When hitting 'q' at the more prompt for ":menu", still scrolled a few lines.
  1171. In an xterm that uses the bold trick a single row of characters could remain
  1172. after an erased bold character. Now erase one extra char after the bold char,
  1173. like for the GUI.
  1174. ":pop!" didn't work.
  1175. When the reading a buffer was interrupted, ":w" should not be able to
  1176. overwrite the file, ":w!" is required.
  1177. ":cf%" caused a crash.
  1178. ":gui longfilename", when forking is enabled, could leave part of the
  1179. longfilename at the shell prompt.
  1180. ==============================================================================
  1181. VERSION 5.1 *version-5.1*
  1182. Improvements made between version 5.0 and 5.1.
  1183. This was mostly a bug-fix release, not many new features.
  1184. Changed *changed-5.1*
  1185. -------
  1186. The expand() function now separates file names with <NL> instead of a space.
  1187. This avoids problems for file names with embedded spaces. To get the old
  1188. result, use substitute(expand(foo), "\n", " ", "g").
  1189. For Insert-expanding dictionaries allow a backslash to be used for
  1190. wildchars. Allows expanding "ze\kra", when 'isk' includes a backslash.
  1191. New icon for the Win32 GUI.
  1192. ":tag", ":tselect" etc. only use the argument as a regexp when it starts
  1193. with '/'. Avoids that ":tag xx~" gives an error message: "No previous sub.
  1194. regexp". Also, when the :tag argument contained wildcard characters, it was
  1195. not Vi compatible.
  1196. When using '/', the argument is taken literally too, with a higher priority,
  1197. so it's found before wildcard matches.
  1198. Only when the '/' is used are matches with different case found, even though
  1199. 'ignorecase' isn't set.
  1200. Changed "g^]" to only do ":tselect" when there is more than on matching tag.
  1201. Changed some of the default colors, because they were not very readable on a
  1202. dark background.
  1203. A character offset to a search pattern can move the cursor to the next or
  1204. previous line. Also fixes that "/pattern/e+2" got stuck on "pattern" at the
  1205. end of a line.
  1206. Double-clicks in the status line do no longer start Visual mode. Dragging a
  1207. status line no longer stops Visual mode.
  1208. Perl interface: Buffers() and Windows() now use more logical arguments, like
  1209. they are used in the rest of Vim (Moore).
  1210. Init '" mark to the first character of the first line. Makes it possible to
  1211. use '" in an autocommand without getting an error message.
  1212. Added *added-5.1*
  1213. -----
  1214. "shell_error" internal variable: result of last shell command.
  1215. ":echohl" command: Set highlighting for ":echo".
  1216. 'S' flag in 'highlight' and StatusLineNC highlight group: highlighting for
  1217. status line of not-current window. Default is to use bold for current
  1218. window.
  1219. Added buffer_name() and buffer_number() functions (Aaron).
  1220. Added flags argument "g" to substitute() function (Aaron).
  1221. Added winheight() function.
  1222. Win32: When an external command starts with "start ", no console is opened
  1223. for it (Aaron).
  1224. Win32 console: Use termcap codes for bold/reverse based on the current
  1225. console attributes.
  1226. Configure check for "strip". (Napier)
  1227. CTRL-R CTRL-R x in Insert mode: Insert the contents of a register literally,
  1228. instead of as typed.
  1229. Made a few "No match" error messages more informative by adding the pattern
  1230. that didn't match.
  1231. "make install" now also copies the macro files.
  1232. tools/tcltags, a shell script to generate a tags file from a TCL file.
  1233. "--with-tlib" setting for configure. Easy way to use termlib: "./configure
  1234. --with-tlib=termlib".
  1235. 'u' flag in 'cino' for setting the indent for contained () parts.
  1236. When Win32 OLE version can't load the registered type library, ask the user
  1237. if he wants to register Vim now. (Erhardt)
  1238. Win32 with OLE: When registered automatically, exit Vim.
  1239. Included VisVim 1.1b, with a few enhancements and the new icon (Heiko
  1240. Erhardt).
  1241. Added patch from Vince Negri for Win32s support. Needs to be compiled with
  1242. VC 4.1!
  1243. Perl interface: Added $curbuf. Rationalized Buffers() and Windows().
  1244. (Moore) Added "group" argument to Msg().
  1245. Included Perl files in DOS source archive. Changed Makefile.bor and
  1246. Makefile.w32 to support building a Win32 version with Perl included.
  1247. Included new Makefile.w32 from Ken Scott. Now it's able to make all Win32
  1248. versions, including OLE, Perl and Python.
  1249. Added CTRL-W g ] and CTRL-W g ^]: split window and do g] or g^].
  1250. Added "g]" to always do ":tselect" for the ident under the cursor.
  1251. Added ":tjump" and ":stjump" commands.
  1252. Improved listing of ":tselect" when tag names are a bit long.
  1253. Included patches for the Macintosh version. Also for Python interface.
  1254. (St-Amant)
  1255. ":buf foo" now also restores cursor column, when the buffer was used before.
  1256. Adjusted the Makefile for different final destinations for the syntax files
  1257. and scripts (for Debian Linux).
  1258. Amiga: $VIM can be used everywhere. When $VIM is not defined, "VIM:" is
  1259. used. This fixes that "VIM:" had to be assigned for the help files, and
  1260. $VIM set for the syntax files. Now either of these work.
  1261. Some xterms send vt100 compatible function keys F1-F4. Since it's not
  1262. possible to detect this, recognize both type of keys and translate them to
  1263. <F1> - <F4>.
  1264. Added "VimEnter" autocommand. Executed after loading all the startup stuff.
  1265. BeOS version now also runs on Intel CPUs (Seibert).
  1266. Fixed *fixed-5.1*
  1267. -----
  1268. ":ts" changed position in the tag stack when cancelled with <CR>.
  1269. ":ts" changed the cursor position for CTRL-T when cancelled with <CR>.
  1270. ":tn" would always jump to the second match. Was using the wrong entry in
  1271. the tag stack.
  1272. Doing "tag foo", then ":tselect", overwrote the original cursor position in
  1273. the tag stack.
  1274. "make install" changed the vim.1 manpage in a wrong way, causing "doc/doc"
  1275. to appear for the documentation files.
  1276. When compiled with MAX_FEAT, xterm mouse handling failed. Was caused by DEC
  1277. mouse handling interfering.
  1278. Was leaking memory when using selection in X11.
  1279. CTRL-D halfway a command-line left some characters behind the first line(s)
  1280. of the listing.
  1281. When expanding directories for ":set path=", put two extra backslashes
  1282. before a space in a directory name.
  1283. When 'lisp' set, first line of a function would be indented. Now its indent
  1284. is set to zero. And use the indent of the first previous line that is at
  1285. the same () level. Added test33.
  1286. "so<Esc>u" in an empty file didn't work.
  1287. DOS: "seek error in swap file write" errors, when using DOS 6.2 share.exe,
  1288. because the swap file was made hidden. It's no longer hidden.
  1289. ":global" command would sometimes not execute on a matching line. Happened
  1290. when a data block is full in ml_replace().
  1291. For AIX use a tgetent buffer of 2048 bytes, instead of 1024.
  1292. Win32 gvim now only sets the console size for external commands to 25x80
  1293. on Windows 95, not on NT.
  1294. Win32 console: Dead key could cause a crash, because of a missing "WINAPI"
  1295. (Deshpande).
  1296. The right mouse button started Visual mode, even when 'mouse' is empty, and
  1297. in the command-line, a left click moved the cursor when 'mouse' is empty.
  1298. In Visual mode, 'n' in 'mouse' would be used instead of 'v'.
  1299. A blinking cursor or focus change cleared a non-Visual selection.
  1300. CTRL-Home and CTRL-End didn't work for MS-DOS versions.
  1301. Could include NUL in 'iskeyword', causing a crash when doing insert mode
  1302. completion.
  1303. Use _dos_commit() to flush the swap file to disk for MSDOS 16 bit version.
  1304. In mappings, CTRL-H was replaced by the backspace key code. This caused
  1305. problems when it was used as text, e.g. ":map _U :%s/.^H//g<CR>".
  1306. ":set t_Co=0" was not handled like a normal term. Now it's translated into
  1307. ":set t_Co=", which works.
  1308. For ":syntax keyword" the "transparent" option did work, although not
  1309. mentioned in the help. But synID() returned wrong name.
  1310. "gqG" in a file with one-word-per-line (e.g. a dictionary) was very slow and
  1311. not interruptible.
  1312. "gq" operator inserted screen lines in the wrong situation. Now screen
  1313. lines are inserted or deleted when this speeds up displaying.
  1314. cindent was wrong when an "if" contained "((".
  1315. 'r' flag in 'viminfo' was not used for '%'. Could get files in the buffer
  1316. list from removable media.
  1317. Win32 GUI with OLE: if_ole_vc.mak could not be converted into a project.
  1318. Hand-edited to fix this...
  1319. With 'nosol' set, doing "$kdw" below an empty line positioned the cursor at
  1320. the end of the line.
  1321. Dos32 version changed "\dir\file" into "/dir/file", to work around a DJGPP
  1322. bug. That bug appears to have been fixed, therefore this translation has
  1323. been removed.
  1324. "/^*" didn't work (find '*' in first column).
  1325. "<afile>" was not always set for autocommands. E.g., for ":au BufEnter *
  1326. let &tags = expand("<afile>:p:h") . "/tags".
  1327. In an xterm, the window may be a child of the outer xterm window. Use the
  1328. parent window when getting the title and icon names. (Smith)
  1329. When starting with "gvim -bg black -fg white", the value of 'background' is
  1330. only set after reading the .gvimrc file. This causes a ":syntax on" to use
  1331. the wrong colors. Now allow using ":gui" to open the GUI window and set the
  1332. colors. Previously ":gui" in a gvimrc crashed Vim.
  1333. tempname() returned the same name all the time, unless the file was actually
  1334. created. Now there are at least 26 different names.
  1335. File name used for <afile> was sometimes full path, sometimes file name
  1336. relative to current directory.
  1337. When 'background' was set after the GUI window was opened, it could change
  1338. colors that were set by the user in the .gvimrc file. Now it only changes
  1339. colors that have not been set by the user.
  1340. Ignore special characters after a CSI in the GUI version. These could be
  1341. interpreted as special characters in a wrong way. (St-Amant)
  1342. Memory leak in farsi code, when using search or ":s" command.
  1343. Farsi string reversing for a mapping was only done for new mappings. Now it
  1344. also works for replacing a mapping.
  1345. Crash in Win32 when using a file name longer than _MAX_PATH. (Aaron)
  1346. When BufDelete autocommands were executed, some things for the buffer were
  1347. already deleted (esp. Perl stuff).
  1348. Perl interface: Buffer specific items were deleted too soon; fixes "screen
  1349. no longer exists" messages. (Moore)
  1350. The Perl functions didn't set the 'modified' flag.
  1351. link.sh did not return an error on exit, which may cause Vim to start
  1352. installing, even though there is no executable to install. (Riehm)
  1353. Vi incompatibility: In Vi "." redoes the "y" command. Added the 'y' flag to
  1354. 'cpoptions'. Only for 'compatible' mode.
  1355. ":echohl" defined a new group, when the argument was not an existing group.
  1356. "syn on" and ":syn off" could move the cursor, if there is a hidden buffer
  1357. that is shorter that the current cursor position.
  1358. The " mark was not set when doing ":b file".
  1359. When a "nextgroup" is used with "skipwhite" in syntax highlighting, space at
  1360. the end of the line made the nextgroup also be found in the next line.
  1361. ":he g<CTRL-D>", then ":" and backspace to the start didn't redraw.
  1362. X11 GUI: "gvim -rv" reversed the colors twice on Sun. Now Vim checks if the
  1363. result is really reverse video (background darker than foreground).
  1364. "cat link.sh | vim -" didn't set syntax highlighting.
  1365. Win32: Expanding "file.sw?" matched ".file.swp". This is an error of
  1366. FindnextFile() that we need to work around. (Kilgore)
  1367. "gqgq" gave an "Invalid lnum" error on the last line.
  1368. Formatting with "gq" didn't format the first line after a change of comment
  1369. leader.
  1370. There was no check for out-of-memory in win_alloc().
  1371. "vim -h" didn't mention "-register" and "-unregister" for the OLE version.
  1372. Could not increase 'cmdheight' when the last window is only one line. Now
  1373. other windows are also made smaller, when necessary.
  1374. Added a few {} to avoid "suggest braces around" warnings from gcc 2.8.x.
  1375. Changed return type of main() from void to int. (Nam)
  1376. Using '~' twice in a substitute pattern caused a crash.
  1377. "syn on" and ":syn off" could scroll the window, if there is a hidden buffer
  1378. that is shorter that the current cursor position.
  1379. ":if 0 | if 1 | endif | endif" didn't work. Same for ":while" and "elseif".
  1380. With two windows on modified files, with 'autowrite' set, cursor in second
  1381. window, ":qa" gave a warning for the file in the first window, but then
  1382. auto-wrote the file in the second window. (Webb)
  1383. Win32 GUI scrollbar could only handle 32767 lines. Also makes the
  1384. intellimouse wheel use the configurable number of scrolls. (Robinson)
  1385. When using 'patchmode', and the backup file is on another partition, the file
  1386. copying messed up the write-file message.
  1387. GUI X11: Alt-Backspace and Alt-Delete didn't work.
  1388. "`0" could put the cursor after the last character in the line, causing
  1389. trouble for other commands, like "i".
  1390. When completing tags in insert mode with ^X^], some matches were skipped,
  1391. because the compare with other tags was wrong. E.g., when "mnuFileSave" was
  1392. already there, "mnuFile" would be skipped. (Negri)
  1393. When scrolling up/down, a syntax item with "keepend" didn't work properly.
  1394. Now the flags are also stored for the syntax state at the start of each line.
  1395. When 'ic' was changed while 'hlsearch' is on, there was no redraw to show the
  1396. effect.
  1397. Win32 GUI: Don't display "No write since last chance" in a message box, but in
  1398. the Vim window.
  1399. ==============================================================================
  1400. VERSION 5.2 *version-5.2*
  1401. Improvements made between version 5.1 and 5.2.
  1402. Long lines editable *long-lines*
  1403. -------------------
  1404. A single long line that doesn't fit in the window doesn't show a line of @@@
  1405. anymore. Redrawing starts at a character further on in the line, such that
  1406. the text around the cursor can be seen. This makes it possible to edit these
  1407. long lines when wrapping is on.
  1408. File browser added *file-browser-5.2*
  1409. ------------------
  1410. The Win32, Athena and Motif GUI bring up a file requester if the user asks to
  1411. ":browse" for the ":e", ":w", ":r", ":so", ":redirect" and
  1412. ":mkexrc/vimrc/vsess" commands. ":browse e /foo/bar" opens the requester in
  1413. the /foo/bar directory, so you can have nice mapping rhs's like ":browse so
  1414. $vim/macros". If no initial dir specified for ":browse e", can be compiled to
  1415. either begin in the current directory, or that of the current buffer. (Negri
  1416. and Kahn)
  1417. Added the 'browsedir' option, with value "current", "last" or "buffer". Tells
  1418. whether a browse dialog starts in last used dir, dir of current buffer, or
  1419. current dir. ":browse w" is unaffected.
  1420. The default menus have been changed to use the ":browse" command.
  1421. Dialogs added *dialogs-added*
  1422. -------------
  1423. Added the ":confirm" command. Works on ":e", ":q", ":w", ":cl". Win32,
  1424. Athena and Motif GUI uses a window-dialog. All other platforms can use
  1425. prompt in command-line. ":confirm qa" offers a choice to save all modified
  1426. files.
  1427. confirm() function: allows user access to the confirm engine.
  1428. Added 'v' flag to 'guioptions'. When included, a vertical button layout is
  1429. always used for the Win32 GUI dialog. Otherwise, a horizontal layout is
  1430. preferred.
  1431. Win32 GUI: ":promptfind" and ":promptrepl" pop up a dialog to find/replace.
  1432. To be used from a menu entry. (Negri)
  1433. Popup menu added *popup-menu-added*
  1434. ----------------
  1435. When the 'mousemodel' option is set to "popup", the right mouse button
  1436. displays the top level menu headed with "PopUp" as pop-up context menu. The
  1437. "PopUp" menu is not displayed in the normal menu bar. This currently only
  1438. works for Win32 and Athena GUI.
  1439. Select mode added *new-Select-mode*
  1440. -----------------
  1441. A new mode has been added: "Select mode". It is like Visual mode, but typing
  1442. a printable character replaces the selection.
  1443. - CTRL-G can be used to toggle between Visual mode and Select mode.
  1444. - CTRL-O can be used to switch from Select mode to Visual mode for one command.
  1445. - Added 'selectmode' option: tells when to start Select mode instead of Visual
  1446. mode.
  1447. - Added 'mousemodel' option: Change use of mouse buttons.
  1448. - Added 'keymodel' option: tells to use shifted special keys to start a
  1449. Visual or Select mode selection.
  1450. - Added ":behave". Can be used to quickly set 'selectmode', 'mousemodel'
  1451. and 'keymodel' for MS-Windows and xterm behavior.
  1452. - The xterm-like selection is now called modeless selection.
  1453. - Visual mode mappings and menus are used in Select mode. They automatically
  1454. switch to Visual mode first. Afterwards, reselect the area, unless it was
  1455. deleted. The "gV" command can be used in a mapping to skip the reselection.
  1456. - Added the "gh", "gH" and "g^H" commands: start Select (highlight) mode.
  1457. - Backspace in Select mode deletes the selected area.
  1458. "mswin.vim" script. Sets behavior mostly like MS-Windows.
  1459. Session files added *new-session-files*
  1460. -------------------
  1461. ":mks[ession]" acts like "mkvimrc", but also writes the full filenames of the
  1462. currently loaded buffers and current directory, so that :so'ing the file
  1463. re-loads those files and cd's to that directory. Also stores and restores
  1464. windows. File names are made relative to session file.
  1465. The 'sessionoptions' option sets behavior of ":mksession". (Negri)
  1466. User defined functions and commands *new-user-defined*
  1467. -----------------------------------
  1468. Added user defined functions. Defined with ":function" until ":endfunction".
  1469. Called with "Func()". Allows the use of a variable number of arguments.
  1470. Included support for local variables "l:name". Return a value with ":return".
  1471. See |:function|.
  1472. Call a function with ":call". When using a range, the function is called for
  1473. each line in the range. |:call|
  1474. "macros/justify.vim" is an example of using user defined functions.
  1475. User functions do not change the last used search pattern or the command to be
  1476. redone with ".".
  1477. 'maxfuncdepth' option. Restricts the depth of function calls. Avoids trouble
  1478. (crash because of out-of-memory) when a function uses endless recursion.
  1479. User definable Ex commands: ":command", ":delcommand" and ":comclear".
  1480. (Moore) See |user-commands|.
  1481. New interfaces *interfaces-5.2*
  1482. --------------
  1483. Tcl interface. (Wilken) See |tcl|.
  1484. Uses the ":tcl", ":tcldo" and "tclfile" commands.
  1485. Cscope support. (Kahn) (Sekera) See |cscope|.
  1486. Uses the ":cscope" and ":cstag" commands. Uses the options 'cscopeprg',
  1487. 'cscopetag', 'cscopetagorder' and 'cscopeverbose'.
  1488. New ports *ports-5.2*
  1489. ---------
  1490. Amiga GUI port. (Nielsen) Not tested much yet!
  1491. RISC OS version. (Thomas Leonard) See |riscos|.
  1492. This version can run either with a GUI or in text mode, depending upon where
  1493. it is invoked.
  1494. Deleted the "os_archie" files, they were not working anyway.
  1495. Multi-byte support *new-multi-byte* *new-multibyte*
  1496. ------------------
  1497. MultiByte support for Win32 GUI. (Baek)
  1498. The 'fileencoding' option decides how the text in the file is encoded.
  1499. ":ascii" works for multibyte characters. Multi-byte characters work on
  1500. Windows 95, even when using the US version. (Aaron)
  1501. Needs to be enabled in feature.h.
  1502. This has not been tested much yet!
  1503. New functions *new-functions-5.2*
  1504. -------------
  1505. |browse()| puts up a file requester when available. (Negri)
  1506. |escape()| escapes characters in a string with a backslash.
  1507. |fnamemodify()| modifies a file name.
  1508. |input()| asks the user to enter a line. (Aaron) There is a separate
  1509. history for lines typed for the input() function.
  1510. |argc()|
  1511. |argv()| can be used to access the argument list.
  1512. |winbufnr()| buffer number of a window. (Aaron)
  1513. |winnr()| window number. (Aaron)
  1514. |matchstr()| Return matched string.
  1515. |setline()| Set a line to a string value.
  1516. New options *new-options-5.2*
  1517. -----------
  1518. 'allowrevins' Enable the CTRL-_ command in Insert and Command-line mode.
  1519. 'browsedir' Tells in which directory a browse dialog starts.
  1520. 'confirm' when set, :q :w and :e commands always act as if ":confirm"
  1521. is used. (Negri)
  1522. 'cscopeprg'
  1523. 'cscopetag'
  1524. 'cscopetagorder'
  1525. 'cscopeverbose' Set the |cscope| behavior.
  1526. 'filetype' RISC-OS specific type of file.
  1527. 'grepformat'
  1528. 'grepprg' For the |:grep| command.
  1529. 'keymodel' Tells to use shifted special keys to start a Visual or Select
  1530. mode selection.
  1531. 'listchars' Set character to show in 'list' mode for end-of-line, tabs and
  1532. trailing spaces. (partly by Smith) Also sets character to
  1533. display if a line doesn't fit when 'nowrap' is set.
  1534. 'matchpairs' Allows matching '<' with '>', and other single character
  1535. pairs.
  1536. 'mousefocus' Window focus follows mouse (partly by Terhaar). Changing the
  1537. focus with a keyboard command moves the pointer to that
  1538. window. Also move the pointer when changing the window layout
  1539. (split window, change window height, etc.).
  1540. 'mousemodel' Change use of mouse buttons.
  1541. 'selection' When set to "inclusive" or "exclusive", the cursor can go one
  1542. character past the end of the line in Visual or Select mode.
  1543. When set to "old" the old behavior is used. When
  1544. "inclusive", the character under the cursor is included in the
  1545. operation. When using "exclusive", the new "ve" entry of
  1546. 'guicursor' is used. The default is a vertical bar.
  1547. 'selectmode' Tells when to start Select mode instead of Visual mode.
  1548. 'sessionoptions' Sets behavior of ":mksession". (Negri)
  1549. 'showfulltag' When completing a tag in Insert mode, show the tag search
  1550. pattern (tidied up) as a choice as well (if there is one).
  1551. 'swapfile' Whether to use a swap file for a buffer.
  1552. 'syntax' When it is set, the syntax by that name is loaded. Allows for
  1553. setting a specific syntax from a modeline.
  1554. 'ttymouse' Allows using xterm mouse codes for terminals which name
  1555. doesn't start with "xterm".
  1556. 'wildignore' List of patterns for files that should not be completed at
  1557. all.
  1558. 'wildmode' Can be used to set the type of expansion for 'wildchar'.
  1559. Replaces the CTRL-T command for command line completion.
  1560. Don't beep when listing all matches.
  1561. 'winaltkeys' Win32 and Motif GUI. When "yes", ALT keys are handled
  1562. entirely by the window system. When "no", ALT keys are never
  1563. used by the window system. When "menu" it depends on whether
  1564. a key is a menu shortcut.
  1565. 'winminheight' Minimal height for each window. Default is 1. Set to 0 if
  1566. you want zero-line windows. Scrollbar is removed for
  1567. zero-height windows. (Negri)
  1568. New Ex commands *new-ex-commands-5.2*
  1569. ---------------
  1570. |:badd| Add file name to buffer list without side effects. (Negri)
  1571. |:behave| Quickly set MS-Windows or xterm behavior.
  1572. |:browse| Use file selection dialog.
  1573. |:call| Call a function, optionally with a range.
  1574. |:cnewer|
  1575. |:colder| To access a stack of quickfix error lists.
  1576. |:comclear| Clear all user-defined commands.
  1577. |:command| Define a user command.
  1578. |:continue| Go back to ":while".
  1579. |:confirm| Ask confirmation if something unexpected happens.
  1580. |:cscope| Execute cscope command.
  1581. |:cstag| Use cscope to jump to a tag.
  1582. |:delcommand| Delete a user-defined command.
  1583. |:delfunction| Delete a user-defined function.
  1584. |:endfunction| End of user-defined function.
  1585. |:function| Define a user function.
  1586. |:grep| Works similar to ":make". (Negri)
  1587. |:mksession| Create a session file.
  1588. |:nohlsearch| Stop 'hlsearch' highlighting for a moment.
  1589. |:Print| This is Vi compatible. Does the same as ":print".
  1590. |:promptfind| Search dialog (Win32 GUI).
  1591. |:promptrepl| Search/replace dialog (Win32 GUI).
  1592. |:return| Return from a user-defined function.
  1593. |:simalt| Win32 GUI: Simulate alt-key pressed. (Negri)
  1594. |:smagic| Like ":substitute", but always use 'magic'.
  1595. |:snomagic| Like ":substitute", but always use 'nomagic'.
  1596. |:tcl| Execute TCL command.
  1597. |:tcldo| Execute TCL command for a range of lines.
  1598. |:tclfile| Execute a TCL script file.
  1599. |:tearoff| Tear-off a menu (Win32 GUI).
  1600. |:tmenu|
  1601. |:tunmenu| Win32 GUI: menu tooltips. (Negri)
  1602. |:star| :* Execute a register.
  1603. Changed *changed-5.2*
  1604. -------
  1605. Renamed functions:
  1606. buffer_exists() -> bufexists()
  1607. buffer_name() -> bufname()
  1608. buffer_number() -> bufnr()
  1609. file_readable() -> filereadable()
  1610. highlight_exists() -> hlexists()
  1611. highlightID() -> hlID()
  1612. last_buffer_nr() -> bufnr("$")
  1613. The old ones are still there, for backwards compatibility.
  1614. The CTRL-_ command in Insert and Command-line mode is only available when the
  1615. new 'allowrevins' option is set. Avoids that people who want to type SHIFT-_
  1616. accidentally enter reverse Insert mode, and don't know how to get out.
  1617. When a file name path in ":tselect" listing is too long, remove a part in the
  1618. middle and put "..." there.
  1619. Win32 GUI: Made font selector appear inside Vim window, not just any odd
  1620. place. (Negri)
  1621. ":bn" skips help buffers, unless currently in a help buffer. (Negri)
  1622. When there is a status line and only one window, don't show '^' in the status
  1623. line of the current window.
  1624. ":*" used to be used for "'<,'>", the Visual area. But in Vi it's used as an
  1625. alternative for ":@". When 'cpoptions' includes '*' this is Vi compatible.
  1626. When 'insertmode' is set, using CTRL-O to execute a mapping will work like
  1627. 'insertmode' was not set. This allows "normal" mappings to be used even when
  1628. 'insertmode' is set.
  1629. When 'mouse' was set already (e.g., in the .vimrc file), don't automatically
  1630. set 'mouse' when the GUI starts.
  1631. Removed the 'N', 'I' and 'A' flags from the 'mouse' option.
  1632. Renamed "toggle option" to "boolean option". Some people thought that ":set
  1633. xyz" would toggle 'xyz' on/off each time.
  1634. The internal variable "shell_error" contains the error code from the shell,
  1635. instead of just 0 or 1.
  1636. When inserting or replacing, typing CTRL-V CTRL-<CR> used to insert "<C-CR>".
  1637. That is not very useful. Now the CTRL key is ignored and a <CR> is inserted.
  1638. Same for all other "normal" keys with modifiers. Mapping these modified key
  1639. combinations is still possible.
  1640. In Insert mode, <C-CR> and <S-Space> can be inserted by using CTRL-K and then
  1641. the special character.
  1642. Moved "quotes" file to doc/quotes.txt, and "todo" file to doc/todo.txt. They
  1643. are now installed like other documentation files.
  1644. winheight() function returns -1 for a non-existing window. It used to be
  1645. zero, but that is a valid height now.
  1646. The default for 'selection' is "inclusive", which makes a difference when
  1647. using "$" or the mouse to move the cursor in Visual mode.
  1648. ":q!" does not exit when there are changed buffers which are hidden. Use
  1649. ":qa!" to exit anyway.
  1650. Disabled the Perl/Python/Tcl interfaces by default. Not many people use them
  1651. and they make the executable a lot bigger. The internal scripting language is
  1652. now powerful enough for most tasks.
  1653. The strings from the 'titlestring' and 'iconstring' options are used
  1654. untranslated for the Window title and icon. This allows for including a <CR>.
  1655. Previously a <CR> would be shown as "^M" (two characters).
  1656. When a mapping is started in Visual or Select mode which was started from
  1657. Insert mode (the mode shows "(insert) Visual"), don't return to Insert mode
  1658. until the mapping has ended. Makes it possible to use a mapping in Visual
  1659. mode that also works when the Visual mode was started from Select mode.
  1660. Menus in $VIMRUNTIME/menu.vim no longer overrule existing menus. This helps
  1661. when defining menus in the .vimrc file, or when sourcing mswin.vim.
  1662. Unix: Use /var/tmp for .swp files, if it exists. Files there survive a
  1663. reboot (at least on Linux).
  1664. Added *added-5.2*
  1665. -----
  1666. --with-motif-lib configure argument. Allows for using a static Motif library.
  1667. Support for mapping numeric keypad +,-,*,/ keys. (Negri)
  1668. When not mapped, they produce the normal character.
  1669. Win32 GUI: When directory dropped on gVim, cd there and edit new buffer.
  1670. (Negri)
  1671. Win32 GUI: Made CTRL-Break work as interrupt, so that CTRL-C can be
  1672. used for mappings.
  1673. In the output of ":map", highlight the "*" to make clear it's not part of the
  1674. rhs. (Roemer)
  1675. When showing the Visual area, the cursor is not switched off, so that it can
  1676. be located. The Visual area is now highlighted with a grey background in the
  1677. GUI. This makes the cursor visible when it's also reversed.
  1678. Win32: When started with single full pathname (e.g. via double-clicked file),
  1679. cd to that file's directory. (Negri)
  1680. Win32 GUI: Tear-off menus, with ":tearoff <menu-name>" command. (Negri)
  1681. 't' option to 'guioptions': Add tearoff menu items for Win32 GUI and Motif.
  1682. It's included by default.
  1683. Win32 GUI: tearoff menu with submenus is indicated with a ">>". (Negri)
  1684. Added ^Kaa and ^KAA digraphs.
  1685. Added "euro" symbol to digraph.c. (Corry)
  1686. Support for Motif menu shortcut keys, using '&' like MS-Windows (Ollis).
  1687. Other GUIs ignore '&' in a menu name.
  1688. DJGPP: Faster screen updating (John Lange).
  1689. Clustering of syntax groups ":syntax cluster" (Bigham).
  1690. Including syntax files: ":syntax include" (Bigham).
  1691. Keep column when switching buffers, when 'nosol' is set (Radics).
  1692. Number function for Perl interface.
  1693. Support for Intellimouse in Athena GUI. (Jensen)
  1694. ":sleep" also accepts an argument in milliseconds, when "m" is used.
  1695. Added 'p' flag in 'guioptions': Install callbacks for enter/leave window
  1696. events. Makes cursor blinking work for Terhaar, breaks it for me.
  1697. "--help" and "--version" command-line arguments.
  1698. Non-text in ":list" output is highlighted with NonText.
  1699. Added text objects: "i(" and "i)" as synonym for "ib". "i{" and "i}" as
  1700. synonym for "iB". New: "i<" and "i>", to select <thing>. All this also for
  1701. "a" objects.
  1702. 'O' flag in 'shortmess': message for reading a file overwrites any previous
  1703. message. (Negri)
  1704. Win32 GUI: 'T' flag in 'guioptions': switch toolbar on/off.
  1705. Included a list with self-made toolbar bitmaps. (Negri)
  1706. Added menu priority for sub-menus. Implemented for Win32 and Motif GUI.
  1707. Display menu priority with ":menu" command.
  1708. Default and Syntax menus now include priority for items. Allows inserting
  1709. menu items in between the default ones.
  1710. When the 'number' option is on, highlight line numbers with the LineNr group.
  1711. "Ignore" highlight group: Text highlighted with this is made blank. It is
  1712. used to hide special characters in the help text.
  1713. Included Exuberant Ctags version 2.3, with C++ support, Java support and
  1714. recurse into directories. (Hiebert)
  1715. When a tags file is not sorted, and this is detected (in a simplistic way), an
  1716. error message is given.
  1717. ":unlet" accepts a "!", to ignore non-existing variables, and accepts more
  1718. than one argument. (Roemer)
  1719. Completion of variable names for ":unlet". (Roemer)
  1720. When there is an error in a function which is called by another function, show
  1721. the call stack in the error message.
  1722. New file name modifiers:
  1723. ":.": reduce file name to be relative to current dir.
  1724. ":~": reduce file name to be relative to home dir.
  1725. ":s?pat?sub?": substitute "pat" with "sub" once.
  1726. ":gs?pat?sub?": substitute "pat" with "sub" globally.
  1727. New configure arguments: --enable-min-features and --enable-max-features.
  1728. Easy way to switch to minimum or maximum features.
  1729. New compile-time feature: modify_fname. For file name modifiers, e.g,
  1730. "%:p:h". Can be disabled to save some code (16 bit DOS).
  1731. When using whole-line completion in Insert mode, and 'cindent' is set, indent
  1732. the line properly.
  1733. MSDOS and Win32 console: 'guicursor' sets cursor thickness. (Negri)
  1734. Included new set of Farsi fonts. (Shiran)
  1735. Accelerator text now also works in Motif. All menus can be defined with & for
  1736. mnemonic and TAB for accelerator text. They are ignored on systems that don't
  1737. support them.
  1738. When removing or replacing a menu, compare the menu name only up to the <Tab>
  1739. before the mnemonic.
  1740. 'i' and 'I' flags after ":substitute": ignore case or not.
  1741. "make install" complains if the runtime files are missing.
  1742. Unix: When finding an existing swap file that can't be opened, mention the
  1743. owner of the file in the ATTENTION message.
  1744. The 'i', 't' and 'k' options in 'complete' now also print the place where they
  1745. are looking for matches. (Acevedo)
  1746. "gJ" command: Join lines without inserting a space.
  1747. Setting 'keywordprg' to "man -s" is handled specifically. The "-s" is removed
  1748. when no count given, the count is added otherwise. Configure checks if "man
  1749. -s 2 read" works, and sets the default for 'keywordprg' accordingly.
  1750. If you do a ":bd" and there is only one window open, Vim tries to move to a
  1751. buffer of the same type (i.e. non-help to non-help, help to help), for
  1752. consistent behavior to :bnext/:bprev. (Negri)
  1753. Allow "<Nop>" to be used as the rhs of a mapping. ":map xx <Nop>", maps "xx"
  1754. to nothing at all.
  1755. In a ":menu" command, "<Tab>" can be used instead of a real tab, in the menu
  1756. path. This makes it more easy to type, no backslash needed.
  1757. POSIX compatible character classes for regexp patterns: [:alnum:], [:alpha:],
  1758. [:blank:], [:cntrl:], [:digit:], [:graph:], [:lower:], [:print:], [:punct:],
  1759. [:space:], [:upper:] and [:xdigit:]. (Briscoe)
  1760. regexp character classes (for fast syntax highlight matching):
  1761. digits: \d [0-9] \D not digit (Roemer)
  1762. hex: \x [0-9a-fA-F] \X not hex
  1763. octal: \o [0-7] \O not octal
  1764. word: \w [a-zA-Z0-9_] \W not word
  1765. head: \h [a-zA-Z_] \H not head
  1766. alphabetic: \a [a-zA-Z] \A not alphabetic
  1767. lowercase: \l [a-z] \L not lowercase
  1768. uppercase: \u [A-Z] \U not uppercase
  1769. ":set" now accepts "+=", |^=" and "-=": add or remove parts of a string
  1770. option, add or subtract a number from a number option. A comma is
  1771. automagically inserted or deleted for options that are a comma-separated list.
  1772. Filetype feature, for autocommands. Uses a file type instead of a pattern to
  1773. match a file. Currently only used for RISC OS. (Leonard)
  1774. In a pattern for an autocommand, environment variables can be used. They are
  1775. expanded when the autocommand is defined.
  1776. "BufFilePre" and "BufFilePost" autocommand evens: Before and after applying
  1777. the ":file" command to change the name of a buffer.
  1778. "VimLeavePre" autocommand event: before writing the .viminfo file.
  1779. For autocommands argument: <abuf> is buffer number, like <afile>.
  1780. Made syntax highlighting a bit faster when scrolling backwards, by keeping
  1781. more syncing context.
  1782. Win32 GUI: Made scrolling faster by avoiding a redraw when deleting or
  1783. inserting screen lines.
  1784. GUI: Made scrolling faster by not redrawing the scrollbar when the thumb moved
  1785. less than a pixel.
  1786. Included ":highlight" in bugreport.vim.
  1787. Created install.exe program, for simplistic installation on DOS and
  1788. MS-Windows.
  1789. New register: '_', the black hole. When writing to it, nothing happens. When
  1790. reading from it, it's always empty. Can be used to avoid a delete or change
  1791. command to modify the registers, or reduce memory use for big changes.
  1792. CTRL-V xff enters character by hex number. CTRL-V o123 enters character by
  1793. octal number. (Aaron)
  1794. Improved performance of syntax highlighting by skipping check for "keepend"
  1795. when there isn't any.
  1796. Moved the mode message ("-- INSERT --") to the last line of the screen. When
  1797. 'cmdheight' is more than one, messages will remain readable.
  1798. When listing matching files, they are also sorted on 'suffixes', such that
  1799. they are listed in the same order as CTRL-N retrieves them.
  1800. synIDattr() takes a third argument (optionally), which tells for which
  1801. terminal type to get the attributes for. This makes it possible to run
  1802. 2html.vim outside of gvim (using color names instead of #RRGGBB).
  1803. Memory profiling, only for debugging. Prints at exit, and with "g^A" command.
  1804. (Kahn)
  1805. DOS: When using a file in the current drive, remove the drive name:
  1806. "A:\dir\file" -> "\dir\file". This helps when moving a session file on a
  1807. floppy from "A:\dir" to "B:\dir".
  1808. Increased number of remembered jumps from 30 to 50 per window.
  1809. Command to temporarily disable 'hls' highlighting until the next search:
  1810. ":nohlsearch".
  1811. "gp" and "gP" commands: like "p" and "P", but leave the cursor just after the
  1812. inserted text. Used for the CTRL-V command in MS-Windows mode.
  1813. Fixed *fixed-5.2*
  1814. -----
  1815. Win32 GUI: Could draw text twice in one place, for fake-bold text. Removed
  1816. this, Windows will handle the bold text anyway. (Negri)
  1817. patch 5.1.1: Win32s GUI: pasting caused a crash (Negri)
  1818. patch 5.1.2: When entering another window, where characters before the cursor
  1819. have been deleted, could have a cursor beyond the end of the line.
  1820. patch 5.1.3: Win32s GUI: Didn't wait for external command to finish. (Negri)
  1821. patch 5.1.4: Makefile.w32 can now also be used to generate the OLE version
  1822. (Scott).
  1823. patch 5.1.5: Crashed when using syntax highlighting: cursor on a line that
  1824. doesn't fit in the window, and splitting that line in two.
  1825. patch 5.1.6: Visual highlighting bug: After ":set nowrap", go to end of line
  1826. (so that the window scrolls horizontally), ":set wrap". Following Visual
  1827. selection was wrong.
  1828. patch 5.1.7: When 'tagbsearch' off, and 'ignorecase' off, still could do
  1829. binary searching.
  1830. patch 5.1.8: Win32 GUI: dragging the scrollbar didn't update the ruler.
  1831. patch 5.1.9: Using ":gui" in .vimrc, caused xterm cursor to disappear.
  1832. patch 5.1.10: A CTRL-N in Insert mode could cause a crash, when a buffer
  1833. without a name exists.
  1834. patch 5.1.11: "make test" didn't work in the shadow directory. Also adjusted
  1835. "make shadow" for the links in the ctags directory.
  1836. patch 5.1.12: "buf 123foo" used "123" as a count, instead as the start of a
  1837. buffer name.
  1838. patch 5.1.13: When completing file names on the command-line, reallocating the
  1839. command-line may go wrong.
  1840. patch 5.1.14: ":[nvci]unmenu" removed menu for all modes, when full menu patch
  1841. specified.
  1842. Graceful handling of NULLs in drag-dropped file list. Handle passing NULL to
  1843. Fullname_save(). (Negri)
  1844. Win32: ":!start" to invoke a program without opening a console, swapping
  1845. screens, or waiting for completion in either console or gui version, e.g. you
  1846. can type ":!start winfile". ALSO fixes "can't delete swapfile after spawning
  1847. a shell" bug. (enhancement of Aaron patch) (Negri)
  1848. Win32 GUI: Fix CTRL-X default keymapping to be more Windows-like. (Negri)
  1849. Shorten filenames on startup. If in /foo/bar, entering "vim ../bar/bang.c"
  1850. displays "bang.c" in status bar, not "/foo/bar/bang.c" (Negri)
  1851. Win32 GUI: No copy to Windows clipboard when it's not desired.
  1852. Win32s: Fix pasting from clipboard - made an assumption not valid under
  1853. Win32s. (Negri)
  1854. Win32 GUI: Speed up calls to gui_mch_draw_string() and cursor drawing
  1855. functions. (Negri)
  1856. Win32 GUI: Middle mouse button emulation now works in GUI! (Negri)
  1857. Could skip messages when combining commands in one line, e.g.:
  1858. ":echo "hello" | write".
  1859. Perl interpreter was disabled before executing VimLeave autocommands. Could
  1860. not use ":perl" in them. (Aaron)
  1861. Included patch for the Intellimouse (Aaron/Robinson).
  1862. Could not set 'ls' to one, when last window has only one line. (Mitterand)
  1863. Fixed a memory leak when removing menus.
  1864. After ":only" the ruler could overwrite a message.
  1865. Dos32: removed changing of __system_flags. It appears to work better when
  1866. it's left at the default value.
  1867. p_aleph was an int instead of along, caused trouble on systems where
  1868. sizeof(int) != sizeof(long). (Schmidt)
  1869. Fixed enum problems for Ultrix. (Seibert)
  1870. Small redraw problem: "dd" on last line in file cleared wrong line.
  1871. Didn't interpret "cmd | endif" when "cmd" starts with a range. E.g. "if 0 |
  1872. .d | endif".
  1873. Command "+|" on the last line of the file caused ml_get errors.
  1874. Memory underrun in eval_vars(). (Aaron)
  1875. Don't rename files in a difficult way, except on Windows 95 (was also done on
  1876. Windows NT).
  1877. Win32 GUI: An external command that produces an error code put the error
  1878. message in a dialog box. had to close the window and close the dialog. Now
  1879. the error code is displayed in the console. (Negri)
  1880. "comctl32.lib" was missing from the GUI libraries in Makefile.w32. (Battle)
  1881. In Insert mode, when entering a window in Insert mode, allow the cursor to be
  1882. one char beyond the text.
  1883. Renamed machine dependent rename() to mch_rename(). Define mch_rename() to
  1884. rename() when it works properly.
  1885. Rename vim_chdir() to mch_chdir(), because it's machine dependent.
  1886. When using an arglist, and editing file 5 of 4, ":q" could cause "-1 more
  1887. files to edit" error.
  1888. In if_python.c, VimCommand() caused an assertion when a do_cmdline() failed.
  1889. Moved the Python_Release_Vim() to before the VimErrorCheck(). (Harkins)
  1890. Give an error message for an unknown argument after "--". E.g. for "vim
  1891. --xyz".
  1892. The FileChangedShell autocommand didn't set <afile> to the name of the changed
  1893. file.
  1894. When doing ":e file", causing the attention message, there sometimes was no
  1895. hit-enter prompt. Caused by empty line or "endif" at end of sourced file.
  1896. A large number of patches for the VMS version. (Hunsaker)
  1897. When CTRL-L completion (find longest match) results in a shorter string, no
  1898. completion is done (happens with ":help").
  1899. Crash in Win32 GUI version, when using an Ex "@" command, because
  1900. LinePointers[] was used while not initialized.
  1901. Win32 GUI: allow mapping of Alt-Space.
  1902. Output from "vim -h" was sent to stderr. Sending it to stdout is better, so
  1903. one can use "vim -h | more".
  1904. In command-line mode, ":vi[!]" should reload the file, just like ":e[!]".
  1905. In Ex mode, ":vi" stops Ex mode, but doesn't reload the file. This is Vi
  1906. compatible.
  1907. When using a ":set ls=1" in the .gvimrc file, would get a status line for a
  1908. single window. (Robinson)
  1909. Didn't give an error message for ":set ai,xx". (Roemer)
  1910. Didn't give an error message for ":set ai?xx", ":set ai&xx", ":set ai!xx".
  1911. Non-Unix systems: That a file exists but is unreadable is recognized as "new
  1912. file". Now check for existence when file can't be opened (like Unix).
  1913. Unix: osdef.sh didn't handle declarations where the function name is at the
  1914. first column of the line.
  1915. DJGPP: Shortening of file names didn't work properly, because get_cwd()
  1916. returned a path with backslashes. (Negri)
  1917. When using a 'comments' part where a space is required after the middle part,
  1918. always insert a space when starting a new line. Helps for C comments, below a
  1919. line with "/****".
  1920. Replacing path of home directory with "~/" could be wrong for file names
  1921. with embedded spaces or commas.
  1922. A few fixes for the Sniff interface. (Leherbauer)
  1923. When asking to hit 'y' or 'n' (e.g. for ":3,1d"), using the mouse caused
  1924. trouble. Same for ":s/x/y/c" prompt.
  1925. With 'nowrap' and 'list', a Tab halfway on the screen was displayed as blanks,
  1926. instead of the characters specified with 'listchars'. Also for other
  1927. characters that take more than one screen character.
  1928. When setting 'guifont' to an unknown font name, the previous font was lost and
  1929. a default font would be used. (Steed)
  1930. DOS: Filenames in the root directory didn't get shortened properly. (Negri)
  1931. DJGPP: making a full path name out of a file name didn't work properly when
  1932. there is no _fullpath() function. (Negri)
  1933. Win32 console: ":sh" caused a crash. (Negri)
  1934. Win32 console: Setting 'lines' and/or 'columns' in the _vimrc failed miserably
  1935. (could hang Windows 95). (Negri)
  1936. Win32: The change-drive function was not correct, went to the wrong drive.
  1937. (Tsindlekht)
  1938. GUI: When editing a command line in Ex mode, Tabs were sometimes not
  1939. backspaced properly, and unprintable characters were displayed directly.
  1940. non-GUI can still be wrong, because a system function is called for this.
  1941. ":set" didn't stop after an error. For example ":set no ai" gave an error for
  1942. "no", but still set "ai". Now ":set" stops after the first error.
  1943. When running configure for ctags, $LDFLAGS wasn't passed to it, causing
  1944. trouble for IRIX.
  1945. "@%" and "@#" when file name not set gave an error message. Now they just
  1946. return an empty string. (Steed)
  1947. CTRL-X and CTRL-A didn't work correctly with negative hex and octal numbers.
  1948. (Steed)
  1949. ":echo" always started with a blank.
  1950. Updating GUI cursor shape didn't always work (e.g., when blinking is off).
  1951. In silent Ex mode ("ex -s" or "ex <file") ":s///p" didn't print a line. Also
  1952. a few other commands that explicitly print a text line didn't work. Made this
  1953. Vi compatible.
  1954. Win32 version of _chdrive() didn't return correct value. (Tsindlekht)
  1955. When using 't' in 'complete' option, no longer give an error message for a
  1956. missing tags file.
  1957. Unix: tgoto() can return NULL, which was not handled correctly in configure.
  1958. When doing ":help" from a buffer where 'binary' is set, also edited the help
  1959. file in binary mode. Caused extra ^Ms for DOS systems.
  1960. Cursor position in a file was reset to 1 when closing a window.
  1961. ":!ls" in Ex mode switched off echo.
  1962. When doing a double click in window A, while currently in window B, first
  1963. click would reset double click time, had to click three times to select a
  1964. word.
  1965. When using <F11> in mappings, ":mkexrc" produced an exrc file that can't be
  1966. used in Vi compatible mode. Added setting of 'cpo' to avoid this. Also, add
  1967. a CTRL-V in front of a '<', to avoid a normal string to be interpreted as a
  1968. special key name.
  1969. Gave confusing error message for ":set guifont=-*-lucida-*": first "font is
  1970. not fixed width", then "Unknown font".
  1971. Some options were still completely left out, instead of included as hidden
  1972. options.
  1973. While running the X11 GUI, ignore SIGHUP signals. Avoids a crash after
  1974. executing an external command (in rare cases).
  1975. In os_unixx.h, signal() was defined to sigset(), while it already was.
  1976. Memory leak when executing autocommands (was reported as a memory leak in
  1977. syntax highlighting).
  1978. Didn't print source of error sometimes, because pointers were the same,
  1979. although names were different.
  1980. Avoid a number of UMR errors from Purify (third argument to open()).
  1981. A swap file could still be created just after setting 'updatecount' to zero,
  1982. when there is an empty buffer and doing ":e file". (Kutschera)
  1983. Test 35 failed on 64 bit machines. (Schild)
  1984. With "p" and "P" commands, redrawing was slow.
  1985. Awk script for html documentation didn't work correctly with AIX awk.
  1986. Replaced "[ ,.);\] ]" with "[] ,.); ]". (Briscoe)
  1987. The makehtml.awk script had a small problem, causing extra lines to be
  1988. inserted. (Briscoe)
  1989. "gqgq" could not be repeated. Repeating for "gugu" and "gUgU" worked in a
  1990. wrong way. Also made "gqq" work to be consistent with "guu".
  1991. C indent was wrong after "case ':':".
  1992. ":au BufReadPre *.c put": Line from put text was deleted, because the buffer
  1993. was still assumed to be empty.
  1994. Text pasted with the Edit/Paste menu was subject to 'textwidth' and
  1995. 'autoindent'. That was inconsistent with using the mouse to paste. Now "*p
  1996. is used.
  1997. When using CTRL-W CTRL-] on a word that's not a tag, and then CTRL-] on a tag,
  1998. window was split.
  1999. ":ts" got stuck on a tags line that has two extra fields.
  2000. In Insert mode, with 'showmode' on, <C-O><C-G> message was directly
  2001. overwritten by mode message, if preceded with search command warning message.
  2002. When putting the result of an expression with "=<expr>p, newlines were
  2003. inserted like ^@ (NUL in the file). Now the string is split up in lines at
  2004. the newline.
  2005. putenv() was declared with "const char *" in pty.c, but with "char *" in
  2006. osdef2.h.in. Made the last one also "const char *".
  2007. ":help {word}", where +{word} is a feature, jumped to the feature list instead
  2008. of where the command was explained. E.g., ":help browse", ":help autocmd".
  2009. Using the "\<xx>" form in an expression only got one byte, even when using a
  2010. special character that uses several bytes (e.g., "\<F9>").
  2011. Changed "\<BS>" to produce CTRL-H instead of the special key code for the
  2012. backspace key. "\<Del>" produces 0x7f.
  2013. ":mkvimrc" didn't write a command to set 'compatible' or 'nocompatible'.
  2014. The shell syntax didn't contain a "syn sync maxlines" setting. In a long file
  2015. without recognizable items, syncing took so long it looked like Vim hangs.
  2016. Added a maxlines setting, and made syncing interruptible.
  2017. The "gs" command didn't flush output before waiting.
  2018. Memory leaks for:
  2019. ":if 0 | let a = b . c | endif"
  2020. "let a = b[c]"
  2021. ":so {file}" where {file} contains a ":while"
  2022. GUI: allocated fonts were never released. (Leonard)
  2023. Makefile.bor:
  2024. - Changed $(DEFINES) into a list of "-D" options, so that it can also be used
  2025. for the resource compiler. (not tested!)
  2026. - "bcc.cfg" was used for all configurations. When building for another
  2027. configuration, the settings for the previous one would be used. Moved
  2028. "bcc.cfg" to the object directory. (Geddes)
  2029. - Included targets for vimrun, install, ctags and xxd. Changed the default to
  2030. use the Borland DLL Runtime Library, makes Vim.exe a log smaller. (Aaron)
  2031. "2*" search for the word under the cursor with "2" prepended. (Leonard)
  2032. When deleting into a specific register, would still overwrite the non-Win32
  2033. GUI selection. Now ""x"*P works.
  2034. When deleting into the "" register, would write to the last used register.
  2035. Now ""x always writes to the unnamed register.
  2036. GUI Athena: A submenu with a '.' in it didn't work. E.g.,
  2037. ":amenu Syntax.XY\.Z.foo lll".
  2038. When first doing ":tag foo" and then ":tnext" and/or ":tselect" the order of
  2039. matching tags could change, because the current file is different. Now the
  2040. existing matches are kept in the same order, newly found matches are added
  2041. after them, not matter what the current file is.
  2042. ":ta" didn't find the second entry in a tags file, if the second entry was
  2043. longer than the first one.
  2044. When using ":set si tw=7" inserting "foo {^P}" made the "}" inserted at the
  2045. wrong position. can_si was still TRUE when the cursor is not in the indent of
  2046. the line.
  2047. Running an external command in Win32 version had the problem that Vim exits
  2048. when the X on the console is hit (and confirmed). Now use the "vimrun"
  2049. command to start the external command indirectly. (Negri)
  2050. Win32 GUI: When running an external filter, do it in a minimized DOS box.
  2051. (Negri)
  2052. ":let" listed variables without translation into printable characters.
  2053. Win32 console: When resizing the window, switching back to the old size
  2054. (when exiting or executing an external command) sometimes failed. (Negri)
  2055. This appears to also fix a "non fixable" problem:
  2056. Win32 console in NT 4.0: When running Vim in a cmd window with a scrollbar,
  2057. the scrollbar disappeared and was not restored when Vim exits. This does work
  2058. under NT 3.51, it appears not to be a Vim problem.
  2059. When executing BufDelete and BufUnload autocommands for a buffer without a
  2060. name, the name of the current buffer was used for <afile>.
  2061. When jumping to a tag it reported "tag 1 of >2", while in fact there could be
  2062. only two matches. Changed to "tag 1 of 2 or more".
  2063. ":tjump tag" did a linear search in the tags file, which can be slow.
  2064. Configure didn't find "LibXm.so.2.0", a Xm library with a version number.
  2065. Win32 GUI: When using a shifted key with ALT, the shift modifier would remain
  2066. set, even when it was already used by changing the used key. E.g., "<M-S-9>"
  2067. resulted in "<M-S-(>", but it should be "<M-(>". (Negri)
  2068. A call to ga_init() was often followed by setting growsize and itemsize.
  2069. Created ga_init2() for this, which looks better. (Aaron)
  2070. Function filereadable() could call fopen() with an empty string, which might
  2071. be illegal.
  2072. X Windows GUI: When executing an external command that outputs text, could
  2073. write one character beyond the end of a buffer, which caused a crash. (Kohan)
  2074. When using "*" or "#" on a string that includes '/' or '?' (when these are
  2075. included in 'isk'), they were not escaped. (Parmelan)
  2076. When adding a ToolBar menu in the Motif GUI, the submenu_id field was not
  2077. cleared, causing random problems.
  2078. When adding a menu, the check if this menu (or submenu) name already exists
  2079. didn't compare with the simplified version (no mnemonic or accelerator) of the
  2080. new menu. Could get two menus with the same name, e.g., "File" and "&File".
  2081. Breaking a line because of 'textwidth' at the last line in the window caused a
  2082. redraw of the whole window instead of a scroll. Speeds up normal typing with
  2083. 'textwidth' a lot for slow terminals.
  2084. An invalid line number produced an "invalid range" error, even when it wasn't
  2085. to be executed (inside "if 0").
  2086. When the unnamed, first buffer is re-used, the "BufDelete" autocommand was
  2087. not called. It would stick in a buffer list menu.
  2088. When doing "%" on the NUL after the line, a "{" or "}" in the last character
  2089. of the line was not found.
  2090. The Insert mode menu was not used for the "s" command, the Operator-pending
  2091. menu was used instead.
  2092. With 'compatible' set, some syntax highlighting was not correct, because of
  2093. using "[\t]" for a search pattern. Now use the regexps for syntax
  2094. highlighting like the 'cpoptions' option is empty (as was documented already).
  2095. When using "map <M-Space> ms" or "map <Space> sss" the output of ":map" didn't
  2096. show any lhs for the mapping (if 'isprint' includes 160). Now always use
  2097. <Space> and <M-Space>, even when they are printable.
  2098. Adjusted the Syntax menu, so that the lowest entry fits on a small screen (for
  2099. Athena, where menus don't wrap).
  2100. When using CTRL-E or CTRL-Y in Insert mode for characters like 'o', 'x' and
  2101. digits, repeating the insert didn't work.
  2102. The file "tools/ccfilter.README.txt" could not be unpacked when using short
  2103. file names, because of the two dots. Renamed it to
  2104. "tools/ccfilter_README.txt".
  2105. For a dark 'background', using Blue for Directory and SpecialKey highlight
  2106. groups is not very readable. Use Cyan instead.
  2107. In the function uc_scan_attr() in ex_docmd.c there was a goto that jumped into
  2108. a block with a local variable. That's illegal for some compilers.
  2109. Win32 GUI: There was a row of pixels at the bottom of the window which was not
  2110. drawn. (Aaron)
  2111. Under DOS, editing "filename/" created a swap file of "filename/.swp". Should
  2112. be "filename/_swp".
  2113. Win32 GUI: pointer was hidden when executing an external command.
  2114. When 'so' is 999, "J" near the end of the file didn't redisplay correctly.
  2115. ":0a" inserted after the first line, instead of before the first line.
  2116. Unix: Wildcard expansion didn't handle single quotes and {} patterns. Now
  2117. ":file 'window.c'" removes the quotes and ":e 'main*.c'" works (literal '*').
  2118. ":file {o}{n}{e}" now results in file name "one".
  2119. Memory leak when setting a string option back to its default value.
  2120. ==============================================================================
  2121. VERSION 5.3 *version-5.3*
  2122. Version 5.3 was a bug-fix version of 5.2. There are not many changes.
  2123. Improvements made between version 5.2 and 5.3:
  2124. Changed *changed-5.3*
  2125. -------
  2126. Renamed "IDE" menu to "Tools" menu.
  2127. Added *added-5.3*
  2128. -----
  2129. Win32 GUI: Give a warning when Vim is activated, and one of the files changed
  2130. since editing started. (Negri)
  2131. Fixed *fixed-5.3*
  2132. -----
  2133. 5.2.1: Win32 GUI: space for external command was not properly allocated, could
  2134. cause a crash. (Aaron) This was the reason to bring out 5.3 quickly after
  2135. 5.2.
  2136. 5.2.2: Some commands didn't complain when used without an argument, although
  2137. they need one: ":badd", ":browse", ":call", ":confirm", ":behave",
  2138. ":delfunction", ":delcommand" and ":tearoff".
  2139. ":endfunction" outside of a function gave wrong error message: "Command not
  2140. implemented". Should be ":endfunction not inside a function".
  2141. 5.2.3: Win32 GUI: When gvim was installed in "Program files", or another path
  2142. with a space in it, executing external commands with vimrun didn't work.
  2143. 5.2.4: Pasting with the mouse in Insert mode left the cursor on the last
  2144. pasted character, instead of behind it.
  2145. 5.2.5: In Insert mode, cursor after the end of the line, a shift-cursor-left
  2146. didn't include the last character in the selection.
  2147. 5.2.6: When deleting text from Insert mode (with "<C-O>D" or the mouse), which
  2148. includes the last character in the line, the cursor could be left on the last
  2149. character in the line, instead of just after it.
  2150. 5.2.7: Win32 GUI: scrollbar was one pixel too big.
  2151. 5.2.8: Completion of "PopUp" menu showed the derivatives "PopUpc", "PopUPi",
  2152. etc. ":menu" also showed these.
  2153. 5.2.9: When using two input() functions on a row, the prompt would not be
  2154. drawn in column 0.
  2155. 5.2.10: A loop with input() could not be broken with CTRL-C.
  2156. 5.2.11: ":call asdf" and ":call asdf(" didn't give an error message.
  2157. 5.2.12: Recursively using ":normal" crashes Vim after a while. E.g.:
  2158. ":map gq :normal gq<CR>"
  2159. 5.2.13: Syntax highlighting used 'iskeyword' from wrong buffer. When using
  2160. ":help", then "/\k*" in another window with 'hlsearch' set.
  2161. 5.2.14: When using ":source" from a function, global variables would not be
  2162. available unless "g:" was used.
  2163. 5.2.15: XPM files can have the extension ".pm", which is the same as for Perl
  2164. modules. Added "syntax/pmfile.vim" to handle this.
  2165. 5.2.16: On Win32 and Amiga, "echo expand("%:p:h")" removed one dirname in an
  2166. empty buffer. mch_Fullname() didn't append a slash at the end of a directory
  2167. name.
  2168. Should include the character under the cursor in the Visual area when using
  2169. 'selection' "exclusive". This wasn't done for "%", "e", "E", "t" and "f".
  2170. ""p would always put register 0, instead of the unnamed (last used) register.
  2171. Reverse the change that ""x doesn't write in the unnamed (last used) register.
  2172. It would always write in register 0, which isn't very useful. Use "-x for the
  2173. paste mappings in Visual mode.
  2174. When there is one long line on the screen, and 'showcmd' is off, "0$" didn't
  2175. redraw the screen.
  2176. Win32 GUI: When using 'mousehide', the pointer would flicker when the cursor
  2177. shape is changed. (Negri)
  2178. When cancelling Visual mode, and the cursor moves to the start, the wanted
  2179. column wasn't set, "k" or "j" moved to the wrong column.
  2180. When using ":browse" or ":confirm", was checking for a comment and separating
  2181. bar, which can break some commands.
  2182. Included fixes for Macintosh. (Kielhorn)
  2183. ==============================================================================
  2184. VERSION 5.4 *version-5.4*
  2185. Version 5.4 adds new features, useful changes and a lot of bug fixes.
  2186. Runtime directory introduced *new-runtime-dir*
  2187. ----------------------------
  2188. The distributed runtime files are now in $VIMRUNTIME, the user files in $VIM.
  2189. You normally don't set $VIMRUNTIME but let Vim find it, by using
  2190. $VIM/vim{version}, or use $VIM when that doesn't exist. This allows for
  2191. separating the user files from the distributed files and makes it more easy to
  2192. upgrade to another version. It also makes it possible to keep two versions of
  2193. Vim around, each with their own runtime files.
  2194. In the Unix distribution the runtime files have been moved to the "runtime"
  2195. directory. This makes it possible to copy all the runtime files at once,
  2196. without the need to know what needs to be copied.
  2197. The archives for DOS, Windows, Amiga and OS/2 now have an extra top-level
  2198. "vim" directory. This is to make clear that user-modified files should be put
  2199. here. The directory that contains the executables doesn't have '-' or '.'
  2200. characters. This avoids strange extensions.
  2201. The $VIM and $VIMRUNTIME variables are set when they are first used. This
  2202. allows them to be used by Perl, for example.
  2203. The runtime files are also found in a directory called "$VIM/runtime". This
  2204. helps when running Vim after just unpacking the runtime archive. When using
  2205. an executable in the "src" directory, Vim checks if "vim54" or "runtime" can
  2206. be added after removing it. This make the runtime files be found just after
  2207. compiling.
  2208. A default for $VIMRUNTIME can be given in the Unix Makefile. This is useful
  2209. if $VIM doesn't point to above the runtime directory but to e.g., "/etc/".
  2210. Filetype introduced *new-filetype-5.4*
  2211. -------------------
  2212. Syntax files are now loaded with the new FileType autocommand. Old
  2213. "mysyntaxfile" files will no longer work. |filetypes|
  2214. The scripts for loading syntax highlighting have been changed to use the
  2215. new Syntax autocommand event.
  2216. This combination of Filetype and Syntax events allows tuning the syntax
  2217. highlighting a bit more, also when selected from the Syntax menu. The
  2218. FileType autocommand can also be used to set options and mappings specifically
  2219. for that type of file.
  2220. The "$VIMRUNTIME/filetype.vim" file is not loaded automatically. The
  2221. ":filetype on" command has been added for this. ":syntax on" also loads it.
  2222. The 'filetype' option has been added. It is used to trigger the FileType
  2223. autocommand event, like the 'syntax' option does for the Syntax event.
  2224. ":set syntax=OFF" and ":set syntax=ON" can be used (in a modeline) to switch
  2225. syntax highlighting on/off for the current file.
  2226. The Syntax menu commands have been moved to $VIMRUNTIME/menu.vim. The Syntax
  2227. menu is included both when ":filetype on" and when ":syntax manual" is used.
  2228. Renamed the old 'filetype' option to 'osfiletype'. It was only used for
  2229. RISCOS. 'filetype' is now used for the common file type.
  2230. Added the ":syntax manual" command. Allows manual selection of the syntax to
  2231. be used, e.g., from a modeline.
  2232. Vim script line continuation *new-line-continuation*
  2233. ----------------------------
  2234. When an Ex line starts with a backslash, it is concatenated to the previous
  2235. line. This avoids the need for long lines. |line-continuation| (Roemer)
  2236. Example: >
  2237. if has("dialog_con") ||
  2238. \ has("dialog_gui")
  2239. :let result = confirm("Enter your choice",
  2240. \ "&Yes\n&No\n&Maybe",
  2241. \ 2)
  2242. endif
  2243. Improved session files *improved-sessions*
  2244. ----------------------
  2245. New words for 'sessionoptions':
  2246. - "help" Restore the help window.
  2247. - "blank" Restore empty windows.
  2248. - "winpos" Restore the Vim window position. Uses the new ":winpos"
  2249. command
  2250. - "buffers" Restore hidden and unloaded buffers. Without it only the
  2251. buffers in windows are restored.
  2252. - "slash" Replace backward by forward slashes in file names.
  2253. - "globals" Store global variables.
  2254. - "unix" Use unix file format (<NL> instead of <CR><NL>)
  2255. The ":mksession" and 'sessionoptions' are now in the +mksession feature.
  2256. The top line of the window is also restored when using a session file.
  2257. ":mksession" and ":mkvimrc" don't store 'fileformat', it should be detected
  2258. when loading a file.
  2259. (Most of this was done by Vince Negri and Robert Webb)
  2260. Autocommands improved *improved-autocmds-5.4*
  2261. ---------------------
  2262. New events:
  2263. |FileType| When the file type has been detected.
  2264. |FocusGained| When Vim got input focus. (Negri)
  2265. |FocusLost| When Vim lost input focus. (Negri)
  2266. |BufCreate| Called just after a new buffer has been created or has been
  2267. renamed. (Madsen)
  2268. |CursorHold| Triggered when no key has been typed for 'updatetime'. Can be
  2269. used to do something with the word under the cursor. (Negri)
  2270. Implemented CursorHold autocommand event for Unix. (Zellner)
  2271. Also for Amiga and MS-DOS.
  2272. |GUIEnter| Can be used to do something with the GUI window after it has
  2273. been created (e.g., a ":winpos 100 50").
  2274. |BufHidden| When a buffer becomes hidden. Used to delete the
  2275. option-window when it becomes hidden.
  2276. Also trigger |BufDelete| just before a buffer is going to be renamed. (Madsen)
  2277. The "<amatch>" pattern can be used like "<afile>" for autocommands, except
  2278. that it is the matching value for the FileType and Syntax events.
  2279. When ":let @/ = <string>" is used in an autocommand, this last search pattern
  2280. will be used after the autocommand finishes.
  2281. Made loading autocommands a bit faster. Avoid doing strlen() on each exiting
  2282. pattern for each new pattern by remembering the length.
  2283. Encryption *new-encryption*
  2284. ----------
  2285. Files can be encrypted when writing and decrypted when reading. Added the
  2286. 'key' option, "-x" command line argument and ":X" command. |encryption| (based
  2287. on patch from Mohsin Ahmed)
  2288. When reading a file, there is an automatic detection whether it has been
  2289. encrypted. Vim will then prompt for the key.
  2290. Note that the encryption method is not compatible with Vi. The encryption is
  2291. not unbreakable. This allows it to be exported from the US.
  2292. GTK GUI port *new-GTK-GUI*
  2293. ------------
  2294. New GUI port for GTK+. Includes a toolbar, menu tearoffs, etc. |gui-gtk|
  2295. Added the |:helpfind| command. (Kahn and Dalecki)
  2296. Menu changes *menu-changes-5.4*
  2297. ------------
  2298. Menus can now also be used in the console. It is enabled by the new
  2299. 'wildmenu' option. This shows matches for command-line completion like a
  2300. menu. This works as a minimal file browser.
  2301. The new |:emenu| command can be used to execute a menu item.
  2302. Uses the last status line to list items, or inserts a line just above the
  2303. command line. (Negri)
  2304. The 'wildcharx' option can be used to trigger 'wildmenu' completion from a
  2305. mapping.
  2306. When compiled without menus, this can be detected with has("menu"). Also show
  2307. this in the ":version" output. Allow compiling GUI versions without menu
  2308. support. Only include toolbar support when there is menu support.
  2309. Moved the "Window" menu all the way to the right (priority 70). Looks more
  2310. familiar for people working with MS-Windows, shouldn't matter for others.
  2311. Included "Buffers" menu. Works with existing autocommands and functions. It
  2312. can be disabled by setting the "no_buffers_menu" variable. (Aaron and Madsen)
  2313. Win32 supports separators in a menu: "-.*-". (Geddes)
  2314. Menu separators for Motif now work too.
  2315. Made Popup menu for Motif GUI work. (Madsen)
  2316. 'M' flag in 'guioptions': Don't source the system menu.
  2317. All the menu code has been moved from gui.c to menu.c.
  2318. Viminfo improved *improved-viminfo*
  2319. ----------------
  2320. New flags for 'viminfo':
  2321. '!' Store global variables in the viminfo file if they are in uppercase
  2322. letters. (Negri)
  2323. 'h' Do ":nohlsearch" when loading a viminfo file.
  2324. Store search patterns in the viminfo file with their offset, magic, etc. Also
  2325. store the flag whether 'hlsearch' highlighting is on or off (which is not used
  2326. if the 'h' flag is in 'viminfo').
  2327. Give an error message when setting 'viminfo' without commas.
  2328. Various new commands *new-commands-5.4*
  2329. --------------------
  2330. Operator |g?|: rot13 encoding. (Negri)
  2331. |zH| and |zL| commands: Horizontal scrolling by half a page.
  2332. |gm| move cursor to middle of screen line. (Ideas by Campbell)
  2333. Operations on Visual blocks: |v_b_I|, |v_b_A|, |v_b_c|, |v_b_C|, |v_b_r|,
  2334. |v_b_<| and |v_b_>|. (Kelly)
  2335. New command: CTRL-\ CTRL-N, which does nothing in Normal mode, and goes to
  2336. Normal mode when in Insert or Command-line mode. Can be used by VisVim or
  2337. other OLE programs to make sure Vim is in Normal mode, without causing a beep.
  2338. |CTRL-\_CTRL-N|
  2339. ":cscope kill" command to use the connection filename. |:cscope| (Kahn)
  2340. |:startinsert| command: Start Insert mode next.
  2341. |:history| command, to show all four types of histories. (Roemer)
  2342. |[m|, |[M|, |]m| and |]M| commands, for jumping backward/forward to start/end
  2343. of method in a (Java) class.
  2344. ":@*" executes the * register. |:@| (Acevedo)
  2345. |go| and |:goto| commands: Jump to byte offset in the file.
  2346. |gR| and |gr| command: Virtual Replace mode. Replace characters without
  2347. changing the layout. (Webb)
  2348. ":cd -" changes to the directory from before the previous ":cd" command.
  2349. |:cd-| (Webb)
  2350. Tag preview commands |:ptag|. Shows the result of a ":tag" in a dedicated
  2351. window. Can be used to see the context of the tag (e.g., function arguments).
  2352. (Negri)
  2353. |:pclose| command, and CTRL-W CTRL-Z: Close preview window. (Moore)
  2354. 'previewheight' option, height for the preview window.
  2355. Also |:ppop|, |:ptnext|, |:ptprevious|, |:ptNext|, |:ptrewind|, |:ptlast|.
  2356. |:find| and |:sfind| commands: Find a file in 'path', (split window) and edit
  2357. it.
  2358. The |:options| command opens an option window that shows the current option
  2359. values. Or use ":browse set" to open it. Options are grouped by function.
  2360. Offers short help on each option. Hit <CR> to jump to more help. Edit the
  2361. option value and hit <CR> on a "set" line to set a new value.
  2362. Various new options *new-options-5.4*
  2363. -------------------
  2364. Scroll-binding: 'scrollbind' and 'scrollopt' options. Added |:syncbind|
  2365. command. Makes windows scroll the same amount (horizontally and/or
  2366. vertically). (Ralston)
  2367. 'conskey' option for MS-DOS. Use direct console I/O. This should work with
  2368. telnet (untested!).
  2369. 'statusline' option: Configurable contents of the status line. Also allows
  2370. showing the byte offset in the file. Highlighting with %1* to %9*, using the
  2371. new highlight groups User1 to User9. (Madsen)
  2372. 'rulerformat' option: Configurable contents of the ruler, like 'statusline'.
  2373. (Madsen)
  2374. 'write' option: When off, writing files is not allowed. Avoids overwriting a
  2375. file even with ":w!". The |-m| command line option resets 'write'.
  2376. 'clipboard' option: How the clipboard is used. Value "unnamed": Use unnamed
  2377. register like "*. (Cortopassi) Value "autoselect": Like what 'a' in
  2378. 'guioptions' does but works in the terminal.
  2379. 'guifontset' option: Specify fonts for the +fontset feature, for the X11 GUI
  2380. versions. Allows using normal fonts when vim is compiled with this feature.
  2381. (Nam)
  2382. 'guiheadroom' option: How much room to allow above/below the GUI window.
  2383. Used for Motif, Athena and GTK.
  2384. Implemented 'tagstack' option: When off, pushing tags onto the stack is
  2385. disabled (Vi compatible). Useful for mappings.
  2386. 'shellslash' option. Only for systems that use a backslash as a file
  2387. separator. This option will use a forward slash in file names when expanding
  2388. it. Useful when 'shell' is sh or csh.
  2389. 'pastetoggle' option: Key sequence that toggles 'paste'. Works around the
  2390. problem that mappings don't work in Insert mode when 'paste' is set.
  2391. 'display' option: When set to "lastline", the last line fills the window,
  2392. instead of being replaced with "@" lines. Only the last three characters are
  2393. replaced with "@@@", to indicate that the line has not finished yet.
  2394. 'switchbuf' option: Allows re-using existing windows on a buffer that is being
  2395. jumped to, or split the window to open a new buffer. (Roemer)
  2396. 'titleold' option. Replaces the fixed string "Thanks for flying Vim", which
  2397. is used to set the title when exiting. (Schild)
  2398. Vim scripts *new-script-5.4*
  2399. -----------
  2400. The |exists()| function can also check for existence of a function. (Roemer)
  2401. An internal function is now found with a binary search, should be a bit
  2402. faster. (Roemer)
  2403. New functions:
  2404. - |getwinposx()| and |getwinposy()|: get Vim window position. (Webb)
  2405. - |histnr()|, |histadd()|, |histget()| and |histdel()|: Make history
  2406. available. (Roemer)
  2407. - |maparg()|: Returns rhs of a mapping. Based on a patch from Vikas.
  2408. - |mapcheck()|: Check if a map name matches with an existing one.
  2409. - |visualmode()|: Return type of last Visual mode. (Webb)
  2410. - |libcall()|: Call a function in a library. Currently only for Win32. (Negri)
  2411. - |bufwinnr()|: find window that contains the specified buffer. (Roemer)
  2412. - |bufloaded()|: Whether a buffer exists and is loaded.
  2413. - |localtime()| and |getftime()|: wall clock time and last modification time
  2414. of a file (Webb)
  2415. - |glob()|: expand file name wildcards only.
  2416. - |system()|: get the raw output of an external command. (based on a patch
  2417. from Aaron).
  2418. - |strtrans()|: Translate String into printable characters. Used for
  2419. 2html.vim script.
  2420. - |append()|: easy way to append a line of text in a buffer.
  2421. Changed functions:
  2422. - Optional argument to |strftime()| to give the time in seconds. (Webb)
  2423. - |expand()| now also returns names for files that don't exist.
  2424. Allow numbers in the name of a user command. (Webb)
  2425. Use "v:" for internal Vim variables: "v:errmsg", "v:shell_error", etc. The
  2426. ones from version 5.3 can be used without "v:" too, for backwards
  2427. compatibility.
  2428. New variables:
  2429. "v:warningmsg" and "v:statusmsg" internal variables. Contain the last given
  2430. warning and status message. |v:warningmsg| |v:statusmsg| (Madsen)
  2431. "v:count1" variable: like "v:count", but defaults to one when no count is
  2432. used. |v:count1|
  2433. When compiling without expression evaluation, "if 1" can be used around the
  2434. not supported commands to avoid it being executed. Works like in Vim 4.x.
  2435. Some of the runtime scripts gave errors when used with a Vim that was compiled
  2436. with minimal features. Now "if 1" is used around code that is not always
  2437. supported.
  2438. When evaluating an expression with && and ||, skip the parts that will not
  2439. influence the outcome. This makes it faster and avoids error messages. (Webb)
  2440. Also optimized the skipping of expressions inside an "if 0".
  2441. Avoid hit-enter prompt *avoid-hit-enter*
  2442. -----------------------
  2443. Added 'T' flag to 'shortmess': Truncate all messages that would cause the
  2444. hit-enter prompt (unless that would happen anyway).
  2445. The 'O' flag in 'shortmess' now also applies to quickfix messages, e.g., from
  2446. the ":cn" command.
  2447. The default for 'shortmess' is now "filnxtToO", to make most messages fit on
  2448. the command line, and not cause the hit-enter prompt.
  2449. Previous messages can be viewed with the new |:messages| command.
  2450. Some messages are shown fully, even when 'shortmess' tells to shorten
  2451. messages, because the user is expected to want to see them in full: CTRL-G and
  2452. some quickfix commands.
  2453. Improved quickfix *improved-quickfix*
  2454. -----------------
  2455. Parse change-directory lines for gmake: "make[1]: Entering directory 'name'".
  2456. Uses "%D" and "%X" in 'errorformat'.
  2457. Also parse "Making {target} in {dir}" messages from make. Helps when not
  2458. using GNU make. (Schandl)
  2459. Use 'isfname' for "%f" in 'errorformat'.
  2460. Parsing of multi-line messages. |errorformat-multi-line|
  2461. Allow a range for the |:clist| command. (Roemer)
  2462. Support for "global" file names, for error formats that output the file name
  2463. once for several errors. (Roemer)
  2464. |:cnfile| jumps to first error in next file.
  2465. "$*" in 'makeprg' is replaced by arguments to ":make". (Roemer)
  2466. Regular expressions *regexp-changes-5.4*
  2467. -------------------
  2468. In a regexp, a '$' before "\)" is also considered to be an end-of-line. |/$|
  2469. In patterns "^" after "\|" or "\(" is a start-of-line. |/^| (Robinson)
  2470. In a regexp, in front of "\)" and "\|" both "$" and "\$" were considered
  2471. end-of-line. Now use "$" as end-of-line and "\$" for a literal dollar. Same
  2472. for '^' after "\(" and "\|". |/\$| |/\^|
  2473. Some search patterns can be extremely slow, even though they are not really
  2474. illegal. For example: "\([^a-z]\+\)\+Q". Allow interrupting any regexp
  2475. search with CTRL-C.
  2476. Register "/: last search string (read-only). (Kohan) Changed to use last used
  2477. search pattern (like what 'hlsearch' uses). Can set the search pattern with
  2478. ":let @/ = {expr}".
  2479. Added character classes to search patterns, to avoid the need for removing the
  2480. 'l' flag from 'cpoptions': |[:tab:]|, |[:return:]|, |[:backspace:]| and
  2481. |[:escape:]|.
  2482. By adding a '?' after a comparative operator in an expression, the comparison
  2483. is done by ignoring case. |expr-==?|
  2484. Other improvements made between version 5.3 and 5.4
  2485. ---------------------------------------------------
  2486. Changed *changed-5.4*
  2487. -------
  2488. Unix: Use $TMPDIR for temporary files, if it is set and exists.
  2489. Removed "Empty buffer" message. It isn't useful and can cause a hit-enter
  2490. prompt. (Negri)
  2491. "ex -" now reads commands from stdin and works in silent mode. This is to be
  2492. compatible with the original "ex" command that is used for scripts.
  2493. Default range for ":tcldo" is the whole file.
  2494. Cancelling Visual mode with ESC moved the cursor. There appears to be no
  2495. reason for this. Now leave the cursor where it is.
  2496. The ":grep" and ":make" commands see " as part of the arguments, instead of
  2497. the start of a comment.
  2498. In expressions the "=~" and "!~" operators no longer are affected by
  2499. 'ignorecase'.
  2500. Renamed vimrc_example to vimrc_example.vim and gvimrc_example to
  2501. gvimrc_example.vim. Makes them being recognized as vim scripts.
  2502. "gd" no longer starts searching at the end of the previous function, but at
  2503. the first blank line above the start of the current function. Avoids that
  2504. using "gd" in the first function finds global a variable.
  2505. Default for 'complete' changed from ".,b" to ".,w,b,u,t,i". Many more matches
  2506. will be found, at the cost of time (the search can be interrupted).
  2507. It is no longer possible to set 'shell*' options from a modeline. Previously
  2508. only a warning message was given. This reduces security risks.
  2509. The ordering of the index of documentation files was changed to make it more
  2510. easy to find a subject.
  2511. On MS-DOS and win32, when $VIM was not set, $HOME was used. This caused
  2512. trouble if $HOME was set to e.g., "C:\" for some other tool, the runtime files
  2513. would not be found. Now use $HOME only for _vimrc, _gvimrc, etc., not to find
  2514. the runtime file.
  2515. When 'tags' is "./{fname}" and there is no file name for the current buffer,
  2516. just use it. Previously it was skipped, causing "vim -t {tag}" not to find
  2517. many tags.
  2518. When trying to select text in the 'scrolloff' area by mouse dragging, the
  2519. resulting scrolling made this difficult. Now 'scrolloff' is temporarily set
  2520. to 0 or 1 to avoid this. But still allow scrolling in the top line to extend
  2521. to above the displayed text.
  2522. Default for 'comments' now includes "sl:/*,mb: *,ex:*/", to make javadoc
  2523. comments work. Also helps for C comments that start with "/*******".
  2524. CTRL-X CTRL-] Insert mode tag expansion tried to expand to all tags when used
  2525. after a non-ID character, which can take a very long time. Now limit this to
  2526. 200 matches. Also used for command-line tag completion.
  2527. The OS/2 distribution has been split in two files. It was too big to fit on a
  2528. floppy. The same runtime archive as for the PC is now used.
  2529. In the documentation, items like <a-z> have been replaced with {a-z} for
  2530. non-optional arguments. This avoids confusion with key names: <C-Z> is a
  2531. CTRL-Z, not a character between C and Z, that is {C-Z}.
  2532. Added *added-5.4*
  2533. -----
  2534. Color support for the iris-ansi builtin termcap entry. (Tubman)
  2535. Included VisVim version 1.3a. (Erhardt)
  2536. Win32 port for SNiFF+ interface. (Leherbauer)
  2537. Documentation file for sniff interface: if_sniff.txt. (Leherbauer)
  2538. Included the "SendToVim" and "OpenWithVim" programs in the OleVim directory.
  2539. To be used with the OLE version of gvim under MS-Windows. (Schaller)
  2540. Included Exuberant Ctags version 3.2.4 with Eiffel support. (Hiebert)
  2541. When a file that is being edited is deleted, give a warning (like when the
  2542. time stamp changed).
  2543. Included newer versions of the HTML-generating Awk and Perl scripts. (Colombo)
  2544. Linux console mouse support through "gpm". (Tsindlekht)
  2545. Security fix: Disallow changing 'secure' and 'exrc' from a modeline. When
  2546. 'secure' is set, give a warning for changing options that contain a program
  2547. name.
  2548. Made the Perl interface work with Perl 5.005 and threads. (Verdoolaege)
  2549. When giving an error message for an ambiguous mapping, include the offending
  2550. mapping. (Roemer)
  2551. Command line editing:
  2552. - Command line completion of mappings. (Roemer)
  2553. - Command line completion for ":function", ":delfunction", ":let", ":call",
  2554. ":if", etc. (Roemer)
  2555. - When using CTRL-D completion for user commands that have
  2556. "-complete=tag_listfiles" also list the file names. (Madsen)
  2557. - Complete the arguments of the ":command" command. (Webb)
  2558. - CTRL-R . in command line inserts last inserted text. CTRL-F, CTRL-P, CTRL-W
  2559. and CTRL-A after CTRL-R are used to insert an object from under the cursor.
  2560. (Madsen)
  2561. Made the text in uganda.txt about copying Vim a bit more clear.
  2562. Updated the Vim tutor. Added the "vimtutor" command, which copies the tutor
  2563. and starts Vim on it. "make install" now also copies the tutor.
  2564. In the output of ":clist" the current entry is highlighted, with the 'i'
  2565. highlighting (same as used for 'incsearch').
  2566. For the ":clist" command, you can scroll backwards with "b" (one screenful),
  2567. "u" (half a screenful) and "k" (one line).
  2568. Multi-byte support:
  2569. - X-input method for multibyte characters. And various fixes for multibyte
  2570. support. (Nam)
  2571. - Hangul input method feature: |hangul|. (Nam)
  2572. - Cleaned up configuration of multibyte support, XIM, fontset and Hangul
  2573. input. Each is now configurable separately.
  2574. - Changed check for GTK_KEYBOARD to HANGUL_KEYBOARD_TYPE. (Nam)
  2575. - Added doc/hangulin.txt: Documentation for the Hangul input code. (Nam)
  2576. - XIM support for GTK+. (Nam)
  2577. - First attempt to include support for SJIS encoding. (Nagano)
  2578. - When a double-byte character doesn't fit at the end of the line, put a "~"
  2579. there and print it on the next line.
  2580. - Optimize output of multibyte text. (Park)
  2581. - Win32 IME: preedit style is like over-the-spot. (Nagano)
  2582. - Win32 IME: IME mode change now done with ImmSetOpenStatus. (Nagano)
  2583. - GUI Athena: file selection dialog can display multibyte characters.
  2584. (Nagano)
  2585. - Selection reply for XA_TEXT as XA_STRING. (Nagano)
  2586. "runtime/macros/diffwin.vim". Mappings to make a diff window. (Campbell)
  2587. Added ".obj" to the 'suffixes' option.
  2588. Reduced size of syntax/synload.vim by using the ":SynAu" user command.
  2589. Automated numbering of Syntax menu entries in menu.vim.
  2590. In the Syntax menu, insert separators between syntax names that start with
  2591. a different letter. (Geddes)
  2592. Xterm:
  2593. - Clipboard support when using the mouse in an xterm. (Madsen)
  2594. - When using the xterm mouse, track dragging of the mouse. Use xterm escape
  2595. sequences when possible. It is more precise than other methods, but
  2596. requires a fairly recent xterm version. It is enabled with "xterm2" in
  2597. 'ttymouse'. (Madsen)
  2598. - Check xterm patch level, to set the value of 'ttymouse'. Has only been
  2599. added to xterm recently (patch level > 95). Uses the new 't_RV' termcap
  2600. option. Set 'ttymouse' to "xterm2" when a correct response is recognized.
  2601. Will make xterm mouse dragging work better.
  2602. - Support for shifted function keys on xterm. Changed codes for shifted
  2603. cursor keys to what the xterm actually produces. Added codes for shifted
  2604. <End> and <Home>.
  2605. - Added 't_WP' to set the window position in pixels and 't_WS' to set the
  2606. window size in characters. Xterm can now move (used for ":winpos") and
  2607. resize (use for ":set lines=" and ":set columns=").
  2608. X11:
  2609. - When in Visual mode but not owning the selection, display the Visual area
  2610. with the VisualNOS group to show this. (Madsen)
  2611. - Support for requesting the type of clipboard support. Used for AIX and
  2612. dtterm. (Wittig)
  2613. - Support compound_text selection (even when compiled without multibyte).
  2614. Swap file:
  2615. - New variation for naming swap files: Replace path separators into %, place
  2616. all swap files in one directory. Used when a name in 'dir' ends in two path
  2617. separators. (Madsen)
  2618. - When a swap file is found, show whether it contains modifications or not in
  2619. the informative message. (Madsen)
  2620. - When dialogs are supported, use a dialog to ask the user what to do when a
  2621. swapfile already exists.
  2622. "popup_setpos" in 'mousemodel' option. Allows for moving the cursor when
  2623. using the right mouse button.
  2624. When a buffer is deleted, the selection for which buffer to display instead
  2625. now uses the most recent entry from the jump list. (Madsen)
  2626. When using CTRL-O/CTRL-I, skip deleted buffers.
  2627. A percentage is shown in the ruler, when there is room.
  2628. Used autoconf 1.13 to generate configure.
  2629. Included get_lisp_indent() from Dirk van Deun. Does better Lisp indenting
  2630. when 'p' flag in 'cpoptions' is not included.
  2631. Made the 2html.vim script quite a bit faster. (based on ideas from Geddes)
  2632. Unix:
  2633. - Included the name of the user that compiled Vim and the system name it was
  2634. compiled on in the version message.
  2635. - "make install" now also installs the "tools" directory. Makes them
  2636. available for everybody.
  2637. - "make check" now does the same as "make test". "make test" checks for
  2638. Visual block mode shift, insert, replace and change.
  2639. - Speed up comparing a file name with existing buffers by storing the
  2640. device/inode number with the buffer.
  2641. - Added configure arguments "--disable-gtk", "--disable-motif" and
  2642. "--disable-athena", to be able to disable a specific GUI (when it doesn't
  2643. work).
  2644. - Renamed the configure arguments for disabling the check for specific GUIs.
  2645. Should be clearer now. (Kahn)
  2646. - On a Digital Unix system ("OSF1") check for the curses library before
  2647. termlib and termcap. (Schild)
  2648. - "make uninstall_runtime" will only delete the version-specific files. Can
  2649. be used to delete the runtime files of a previous version.
  2650. Macintosh: (St-Amant)
  2651. - Dragging the scrollbar, like it's done for the Win32 GUI. Moved common code
  2652. from gui_w32.c to gui.c
  2653. - Added dialogs and file browsing.
  2654. - Resource fork preserved, warning when it will be lost.
  2655. - Copy original file attributes to newly written file.
  2656. - Set title/notitle bug solved.
  2657. - Filename completion improved.
  2658. - Grow box limit resize to a char by char size.
  2659. - Use of rgb.txt for more colors (but give back bad color).
  2660. - Apple menu works (beside the about...).
  2661. - Internal border now vim compliant.
  2662. - Removing a menu doesn't crash anymore.
  2663. - Weak-linking of Python 1.5.1 (only on PPC). Python is supported when the
  2664. library is available.
  2665. - If an error is encountered when sourcing the users .vimrc, the alert box now
  2666. shows right away with the OK button defaulted. There's no more "Delete"-key
  2667. sign at the start of each line
  2668. - Better management of environment variables. Now $VIM is calculated only
  2669. once, not regenerated every time it is used.
  2670. - No more CPU hog when in background.
  2671. - In a sourced Vim script the Mac file format can be recognized, just like DOS
  2672. file format is.
  2673. When both "unix" and "mac" are present in 'fileformats', prefer "mac" format
  2674. when there are more CR than NL characters.
  2675. When using "mac" fileformat, use CR instead of a NL, because NL is used for
  2676. NUL. Will preserve all characters in a file. (Madsen)
  2677. The DOS install.exe now contains checks for an existing installation. It
  2678. avoids setting $VIM and $PATH again.
  2679. The install program for Dos/Windows can now install Vim in the popup menu, by
  2680. adding two registry keys.
  2681. Port to EGCS/mingw32. New Makefile.ming. (Aaron)
  2682. DOS 16 bit: Don't include cursor shape stuff. Save some bytes.
  2683. TCL support to Makefile.w32. (Duperval)
  2684. OS/2: Use argv[0] to find runtime files.
  2685. When using "gf" to go to a buffer that has already been used, jump to the
  2686. line where the cursor last was.
  2687. Colored the output of ":tselect" a bit more. Different highlighting between
  2688. tag name and file name. Highlight field name ("struct:") separately from
  2689. argument.
  2690. Backtick expansion for non-Unix systems. Based on a patch from Aaron.
  2691. Allows the use of things like ":n `grep -l test *.c`" and
  2692. "echo expand('`ls m*`')".
  2693. Check for the 'complete' option when it is set. (Acevedo)
  2694. 'd' flag in 'complete' searches for defined names or macros.
  2695. While searching for Insert mode completions in include files and tags files,
  2696. check for typeahead, so that you can use matches early. (Webb)
  2697. The '.' flag in 'complete' now scans the current buffer completely, ignoring
  2698. 'nowrapscan'. (Webb)
  2699. Added '~' flag to 'whichwrap'. (Acevedo)
  2700. When ending the Visual mode (e.g., with ESC) don't grab ownership of the
  2701. selection.
  2702. In a color terminal, "fg" and "bg" can be used as color names. They stand for
  2703. the "Normal" colors.
  2704. A few cscope cleanups. (Kahn)
  2705. Included changed vimspell.sh from Schemenauer.
  2706. Concatenation of strings in an expression with "." is a bit faster. (Roemer)
  2707. The ":redir" command can now redirect to a register: ":redir @r". (Roemer)
  2708. Made the output of ":marks" and ":jumps" look similar. When the mark is in
  2709. the current file, show the text at the mark. Also for ":tags".
  2710. When configure finds ftello() and fseeko(), they are used in tag.c (for when
  2711. you have extremely big tags files).
  2712. Configure check for "-FOlimit,2000" argument for the compiler. (Borsenkow)
  2713. GUI:
  2714. - When using ":gui" in a non-GUI Vim, give a clear error message.
  2715. - "gvim -v" doesn't start the GUI (if console support is present).
  2716. - When in Ex mode, use non-Visual selection for the whole screen.
  2717. - When starting with "gvim -f" and using ":gui" in the .gvimrc file, Vim
  2718. forked anyway. Now the "-f" flag is remembered for ":gui". Added "gui -b"
  2719. to run gvim in the background anyway.
  2720. Motif GUI:
  2721. - Check for "-lXp" library in configure (but it doesn't work yet...).
  2722. - Let configure check for Lesstif in "/usr/local/Lesstif/Motif*". Changed the
  2723. order to let a local Motif version override a system standard version.
  2724. Win32 GUI:
  2725. - When using "-register" or "-unregister" in the non-OLE version, give an
  2726. error message.
  2727. - Use GTK toolbar icons. Make window border look better. Use sizing handles
  2728. on the lower left&right corners of the window. (Negri)
  2729. - When starting an external command with ":!start" and the command can not be
  2730. executed, give an error message. (Webb)
  2731. - Use sizing handles for the grey rectangles below the scrollbars. Can draw
  2732. toolbar in flat mode now, looks better. (Negri)
  2733. - Preparations for MS-Windows 3.1 addition. Mostly changing WIN32 to MSWIN
  2734. and USE_GUI_WIN32 to USE_GUI_MSWIN. (Negri)
  2735. Avoid allocating the same string four times in buflist_findpat(). (Williams)
  2736. Set title and icon text with termcap options 't_ts', 't_fs', 't_IS' and
  2737. 't_IE'. Allows doing this on any terminal that supports setting the title
  2738. and/or icon text. (Schild)
  2739. New 'x' flag in 'comments': Automatically insert the end part when its last
  2740. character is typed. Helps to close a /* */ comment in C. (Webb)
  2741. When expand() has a second argument which is non-zero, don't use 'suffixes'
  2742. and 'wildignore', return all matches.
  2743. 'O' flag in 'cpoptions' When not included, Vim will not overwrite a file, if
  2744. it didn't exist when editing started but it does exist when the buffer is
  2745. written to the file. The file must have been created outside of Vim, possibly
  2746. without the user knowing it. When this is detected after a shell command,
  2747. give a warning message.
  2748. When editing a new file, CTRL-G will show [New file]. When there were errors
  2749. while reading the file, CTRL-G will show [Read errors].
  2750. ":wall" can now use a dialog and file-browsing when needed.
  2751. Grouped functionality into new features, mainly to reduce the size of the
  2752. minimal version:
  2753. +linebreak: 'showbreak', 'breakat' and 'linebreak'
  2754. +visualextra: "I"nsert and "A"ppend in Visual block mode, "c"hange all lines
  2755. in a block, ">" and "<": Shifting a block, "r": Replacing a
  2756. Visual area with one character.
  2757. +comments: 'comments'
  2758. +cmdline_info: 'ruler' and 'showcmd'. Replaces +showcmd.
  2759. "+title" Don't add code to set title or icon for MSDOS, this was not
  2760. possible anyway.
  2761. +cmdline_compl Disable commandline completion at compile time, except for
  2762. files, directories and help items.
  2763. Moved features from a list of function calls into an array. Should save a bit
  2764. of space.
  2765. While entering the body of a function, adjust indent according to "if" and
  2766. "while" commands.
  2767. VMS: Adjusted os_vms.mms a bit according to suggestions from Arpadffy.
  2768. The flags in the 'comments' option can now include an offset. This makes it
  2769. possible to align "/*****", "/* xxx" and "/*" comments with the same
  2770. 'comments' setting. The default value for 'comments' uses this.
  2771. Added 'O' flag: Don't use this part for the "O" command. Useful for "set
  2772. com=sO:*\ -,mO:*\ \ ,exO:*/"
  2773. FileType autocommands recognize ".bak", ".orig" and "~" extensions and remove
  2774. them to find the relevant extension.
  2775. The tutorial for writing a Vim script file has been extended.
  2776. Some more highlighting in help files, for items that are not typed literally.
  2777. Can use "CTRL-W CTRL-G" like "CTRL-W g".
  2778. "make test" for OS/2.
  2779. Adjusted configure to automatically use the GUI for BeOS.
  2780. Fixed *fixed-5.4*
  2781. -----
  2782. 5.3.1: When using an autocommand for BufWritePre that changes the name of the
  2783. buffer, freed memory would be used. (Geddes)
  2784. Mac: Compiler didn't understand start of skip_class_name().
  2785. Win32 GUI:
  2786. - When cancelling the font requester, don't give an error message.
  2787. - When a tearoff-menu is open and its menu is deleted, Vim could crash.
  2788. (Negri)
  2789. - There was a problem on Windows 95 with (un)maximizing the window.
  2790. (Williams)
  2791. - when 'mousehide' is set, the mouse would stay hidden when a menu is dropped
  2792. with the keyboard. (Ralston)
  2793. - The tempname() function already created the file. Caused problems when
  2794. using ":w". Now the file is deleted.
  2795. - Cursor disappeared when ending up in the top-left character on the screen
  2796. after scrolling. (Webb)
  2797. - When adding a submenu for a torn-off menu, it was not updated.
  2798. - Menu tooltip was using the toolbar tooltip. (Negri)
  2799. - Setting 'notitle' didn't remove the title. (Steed)
  2800. - Using ":!start cmd" scrolled the screen one line up, and didn't wait for
  2801. return when the command wasn't found.
  2802. Cscope interface: Sorting of matches was wrong. Starting the interface could
  2803. fail. (Kahn)
  2804. Motif GUI: Could not compile with Motif 1.1, because some tear-off
  2805. functionality was not in #ifdefs.
  2806. Configure could sometimes not compile or link the test program for sizeof(int)
  2807. properly. This caused alignment problems for the undo structure allocations.
  2808. Added a safety check that SIZEOF_INT is not zero.
  2809. Added configure check to test if strings.h can be included after string.h.
  2810. Some systems can't handle it.
  2811. Some systems need both string.h and strings.h included. Adjusted vim.h for
  2812. that. Removed including string.h from os_unixx.h, since it's already in
  2813. vim.h. (Savage)
  2814. AIX: defining _NO_PROTO in os_unix.h causes a conflict between string.h and
  2815. strings.h, but after the configure check said it was OK. Also define
  2816. _NO_PROTO for AIX in the configure check. (Winn)
  2817. When closing a window with CTRL-W c, the value of 'hidden' was not taken into
  2818. account, the buffer was always unloaded. (Negri)
  2819. Unix Makefile: "make install" always tried to rename an older executable and
  2820. remove it. This caused an error message when it didn't exit. Added a check
  2821. for the existence of an old executable.
  2822. The command line for "make install" could get too long, because of the many
  2823. syntax files. Now first do a "cd" to reduce the length.
  2824. On RISCOS and MSDOS, reading a file could fail, because the short filename was
  2825. used, which can be wrong after a ":!cd".
  2826. In the DOS versions, the wrong install.exe was included (required Windows).
  2827. Now the install.exe version is included that is the same as the Vim version.
  2828. This also supports long file names where possible.
  2829. When recording, and stopping while in Insert mode with CTRL-O q, the CTRL-O
  2830. would also be recorded.
  2831. 32bit DOS version: "vim \file", while in a subdirectory, resulted in "new
  2832. file" for "file" in the local directory, while "\file" did exist. When
  2833. "file" in the current directory existed, this didn't happen.
  2834. MSDOS: Mouse could not go beyond 80 columns in 132 columns mode. (Young)
  2835. "make test" failed in the RedHat RPM, because compatible is off by default.
  2836. In Insert mode <C-O><C-W><C-W> changes to other window, but the status bars
  2837. were not updated until another character was typed.
  2838. MSDOS: environment options in lowercase didn't work, although they did in the
  2839. Win32 versions. (Negri)
  2840. After ":nohlsearch", a tag command switched highlighting back on.
  2841. When using "append" command as the last line in an autocommand, Vim would
  2842. crash.
  2843. RISCOS: The scroll bumpers (?) were not working properly. (Leonard)
  2844. "zl" and "zh" could move the cursor, but this didn't set the column in which
  2845. e.g., "k" would move the cursor.
  2846. When doing ":set all&" the value of 'scroll' was not set correctly. This
  2847. caused an error message when later setting any other number option.
  2848. When 'hlsearch' highlighting has been disabled with ":nohlsearch",
  2849. incremental searching would switch it back on too early.
  2850. When listing tags for ":tselect", and using a non-search command, and the last
  2851. character was equal to the first (e.g., "99"), the last char would not be
  2852. shown.
  2853. When searching for tags with ":tag" Vim would assume that all matches had been
  2854. found when there were still more (e.g. from another tags file).
  2855. Win32: Didn't recognize "c:\" (e.g., in tags file) as absolute path when
  2856. upper/lowercase was different.
  2857. Some xterms (Debian) send <Esc>OH for HOME and <Esc>OF for END. Added these
  2858. to the builtin-xterm.
  2859. In ex mode, any CR was seen as the end of the line. Only a NL should be
  2860. handled that way. broke ":s/foo/some^Mtext/".
  2861. In menu.vim, a vmenu was used to override an amenu. That didn't work, because
  2862. the system menu file doesn't overwrite existing menus. Added explicit vunmenu
  2863. to solve this.
  2864. Configure check for terminal library could find a library that doesn't work at
  2865. runtime (Solaris: shared library not found). Added a check that a program
  2866. with tgoto() can run correctly.
  2867. Unix: "echo -n" in the Makefile doesn't work on all systems, causing errors
  2868. compiling pathdef.c. Replaced it with "tr".
  2869. Perl: DO_JOIN was redefined by Perl. Undefined it in the perl files.
  2870. Various XIM and multibyte fixes:
  2871. - Fix user cannot see his language while he is typing his language with
  2872. off-the-spot method. (Nagano)
  2873. - Fix preedit position using text/edit area (using gui.wid). (Nagano)
  2874. - remove 'fix dead key' codes. It was needed since XNFocusWindow was
  2875. "x11_window", XNFocusWindow is now gui.wid. (Nagano)
  2876. - Remove some compile warnings and fix typos. (Namsh)
  2877. - For status area, check the gtk+ version while Vim runs. I believe it is
  2878. better than compile time check. (Namsh)
  2879. - Remove one FIXME for gtk+-xim. (Namsh)
  2880. - XIM: Dead keys didn't work for Czech. (Vyskovsky)
  2881. - Multibyte: If user input only 3byte such as mb1_mb2_eng or eng_mb1_mb2 VIM
  2882. could convert it to special character. (Nam)
  2883. - Athena/Motif with XIM: fix preedit area. (Nam)
  2884. - XIM: Composed strings were sometimes ignored. Vim crashed when compose
  2885. string was longer than 256 bytes. IM's geometry control is fixed. (Nam,
  2886. Nagano)
  2887. - Win32 multibyte: hollowed cursor width on a double byte char was wrong.
  2888. (Nagano)
  2889. - When there is no GUI, selecting XIM caused compilation problems.
  2890. Automatically disable XIM when there is no GUI in configure.
  2891. - Motif and Athena: When compiled with XIM, but the input method was not
  2892. enabled, there would still be a status line. Now the status line is gone if
  2893. the input method doesn't work. (Nam)
  2894. Win32: tooltip was not removed when selecting a parent menu (it was when
  2895. selecting a menu entry). (Negri)
  2896. Unix with X: Some systems crash on exit, because of the XtCloseDisplay() call.
  2897. Removed it, it should not be necessary when exiting.
  2898. Win32: Crash on keypress when compiled with Borland C++. (Aaron)
  2899. When checking for Motif library files, prefer the same location as the include
  2900. files (with "include" replaced with "lib") above another entry.
  2901. Athena GUI: Changed "XtOffset()" in gui_at_fs.c to "XtOffsetOf()", like it's
  2902. used in gui_x11.c.
  2903. Win32: When testing for a timestamp of a file on floppy, would get a dialog
  2904. box when the floppy has been removed. Now return with an error. (Negri)
  2905. Win32 OLE: When forced to come to the foreground, a minimized window was still
  2906. minimized, now it's restored. (Zivkov)
  2907. There was no check for a positive 'shiftwidth'. A negative value could cause
  2908. a hangup, a zero value a crash.
  2909. Athena GUI: horizontal scrollbar wasn't updated correctly when clicking right
  2910. or left of the thumb.
  2911. When making a Visual-block selection in one window, and trying to scroll
  2912. another, could cause errors for accessing non-existent line numbers.
  2913. When 'matchpairs' contains "`:'", jumping from the ` to the ' didn't work
  2914. properly.
  2915. Changed '\"' to '"' to make it compatible with old C compilers.
  2916. The command line expansion for mappings caused a script with a TAB between lhs
  2917. and rhs of a map command to fail. Assume the TAB is to separate lhs and rhs
  2918. when there are no mappings to expand.
  2919. When editing a file with very long lines with 'scrolloff' set, "j" would
  2920. sometimes end up in a line which wasn't displayed.
  2921. When editing a read-only file, it was completely read into memory, even when
  2922. it would not fit. Now create a swap file for a read-only file when running
  2923. out of memory while reading the file.
  2924. When using ":set cino={s,e-s", a line after "} else {" was not indented
  2925. properly. Also added a check for this in test3.in.
  2926. The Hebrew mapping for the command line was remembered for the next command
  2927. line. That isn't very useful, a command is not Hebrew. (Kol)
  2928. When completing file names with embedded spaces, like "Program\ files", this
  2929. didn't work. Also for user commands. Moved backslash_halve() down to
  2930. mch_expandpath().
  2931. When using "set mouse=a" in Ex mode, mouse events were handled like typed
  2932. text. Then typing "quit" screwed up the mouse behavior of the xterm.
  2933. When repeating an insert with "." that contains a CTRL-Y, a number 5 was
  2934. inserted as "053".
  2935. Yanking a Visual area, with the cursor past the line, didn't move the cursor
  2936. back onto the line. Same for "~", "u", "U" and "g?"
  2937. Win32: Default for 'grepprg' could be "findstr /n" even though there is no
  2938. findstr.exe (Windows 95). Check if it exists, and fall back to "grep -n" if
  2939. it doesn't.
  2940. Because gui_mouse_moved() inserted a leftmouse click in the input buffer,
  2941. remapping a leftmouse click caused strange effects. Now Insert another code
  2942. in the input buffer. Also insert a leftmouse release, to avoid the problem
  2943. with ":map <LeftMouse> l" that the next release is seen as the release for the
  2944. focus click.
  2945. With 'wrap' on, when using a line that doesn't fit on the screen, if the start
  2946. of the Visual area is before the start of the screen, there was no
  2947. highlighting. Also, 'showbreak' doesn't work properly.
  2948. DOS, Win32: A pattern "[0-9]\+" didn't work in autocommands.
  2949. When creating a swap file for a buffer which isn't the current buffer, could
  2950. get a mixup of short file name, resulting in a long file name when a short
  2951. file name was required. makeswapname() was calling modname() instead of
  2952. buf_modname().
  2953. When a function caused an error, and the error message was very long because
  2954. of recursiveness, this would cause a crash.
  2955. 'suffixes' were always compared with matching case. For MS-DOS, Win32 and
  2956. OS/2 case is now ignored.
  2957. The use of CHARBITS in regexp.c didn't work on some Linux. Don't use it.
  2958. When generating a script file, 'cpo' was made empty. This caused backslashes
  2959. to disappear from mappings. Set it to "B" to avoid that.
  2960. Lots of typos in the documentation. (Campbell)
  2961. When editing an existing (hidden) buffer, jump to the last used cursor
  2962. position. (Madsen)
  2963. On a Sun the xterm screen was not restored properly when suspending. (Madsen)
  2964. When $VIMINIT is processed, 'nocompatible' was only set after processing it.
  2965. Unix: Polling for a character wasn't done for GPM, Sniff and Xterm clipboard
  2966. all together. Cleaned up the code for using select() too.
  2967. When executing external commands from the GUI, some typeahead was lost. Added
  2968. some code to regain as much typeahead as possible.
  2969. When the window height is 5 lines or fewer, <PageDown> didn't use a one-line
  2970. overlap, while <PageUp> does. Made sure that <PageUp> uses the same overlap
  2971. as <PageDown>, so that using them both always displays the same lines.
  2972. Removed a few unused functions and variables (found with lint).
  2973. Dictionary completion didn't use 'infercase'. (Raul)
  2974. Configure tests failed when the Perl library was not in LD_LIBRARY_PATH.
  2975. Don't use the Perl library for configure tests, add it to the linker line only
  2976. when linking Vim.
  2977. When using ncurses/terminfo, could get a 't_Sf' and 't_Sb' termcap entry that
  2978. has "%d" instead of "%p1%d". The light background colors didn't work then.
  2979. GTK GUI with ncurses: Crashed when starting up in tputs(). Don't use tputs()
  2980. when the GUI is active.
  2981. Could use the ":let" command to set the "count", "shell_error" and "version"
  2982. variables, but that didn't work. Give an error message when trying to set
  2983. them.
  2984. On FreeBSD 3.0, tclsh is called tclsh8.0. Adjusted configure.in to find it.
  2985. When Vim is linked with -lncurses, but python uses -ltermcap, this causes
  2986. trouble: "OOPS". Configure now removes the -ltermcap.
  2987. :@" and :*" didn't work properly, because the " was recognized as the start of
  2988. a comment.
  2989. Win32s GUI: Minimizing the console where a filter command runs in caused
  2990. trouble for detecting that the filter command has finished. (Negri)
  2991. After executing a filter command from an xterm, the mouse would be disabled.
  2992. It would work again after changing the mode.
  2993. Mac GUI: Crashed in newenv(). (St-Amant)
  2994. The menus and mappings in mswin.vim didn't handle text ending in a NL
  2995. correctly. (Acevedo)
  2996. The ":k" command didn't check if it had a valid argument or extra characters.
  2997. Now give a meaningful error message. (Webb)
  2998. On SGI, the signal function doesn't always have three arguments. Check for
  2999. struct sigcontext to find out. Might still be wrong...
  3000. Could crash when using 'hlsearch' and search pattern is "^".
  3001. When search patterns were saved and restored, status of no_hlsearch was not
  3002. also saved and restored (from ":nohlsearch" command).
  3003. When using setline() to make a line shorter, the cursor position was not
  3004. adjusted.
  3005. MS-DOS and Win95: When trying to edit a file and accidentally adding a slash
  3006. or backslash at the end, the file was deleted. Probably when trying to create
  3007. the swap file. Explicitly check for a trailing slash or backslash before
  3008. trying to read a file.
  3009. X11 GUI: When starting the GUI failed and received a deadly signal while
  3010. setting the title, would lock up when trying to exit, because the title is
  3011. reset again. Avoid using mch_settitle() recursively.
  3012. X11 GUI: When starting the GUI fails, and then trying it again, would crash,
  3013. because argv[] has been freed and x11_display was reset to NULL.
  3014. Win32: When $HOME was set, would put "~user" in the swap file, which would
  3015. never compare with a file name, and never cause the attention message. Put
  3016. the full path in the swap file instead.
  3017. Win32 console: There were funny characters at the end of the "vim -r" swap
  3018. files message (direct output of CR CR LF).
  3019. DOS 32 bit: "vim -r" put the text at the top of the window.
  3020. GUI: With 'mousefocus' set, got mouse codes as text with "!sleep 100" or "Q".
  3021. Motif and Win32 GUI: When changing 'guifont' to a font of the same size the
  3022. screen wasn't redrawn.
  3023. Unix: When using ":make", jumping to a file b.c, which is already open as a
  3024. symbolic link a.c, opened a new buffer instead of using the existing one.
  3025. Inserting text in the current buffer while sourcing the .vimrc file would
  3026. cause a crash or hang. The memfile for the current buffer was never
  3027. allocated. Now it's allocated as soon as something is written in the buffer.
  3028. DOS 32 bit: "lightblue" background worked for text, but not drawn parts were
  3029. black.
  3030. DOS: Colors of console were not restored upon exiting.
  3031. When recording, with 'cmdheight' set to 2 and typing Esc> in Insert mode
  3032. caused the "recording" message to be doubled.
  3033. Spurious "file changed" messages could happen on Windows. Now tolerate a one
  3034. second difference, like for Linux.
  3035. GUI: When returning from Ex mode, scrollbars were not updated.
  3036. Win32: Copying text to the clipboard containing a <CR>, pasting it would
  3037. replace it with a <NL> and drop the next character.
  3038. Entering a double byte character didn't work if the second byte is in [xXoO].
  3039. (Eric Lee)
  3040. vim_realloc was both defined and had a prototype in proto/misc2.pro. Caused
  3041. conflicts on Solaris.
  3042. A pattern in an autocommand was treated differently on DOS et al. than on
  3043. Unix. Now it's the same, also when using backslashes.
  3044. When using <Tab> twice for command line completion, without a match, the <Tab>
  3045. would be inserted. (Negri)
  3046. Bug in MS-Visual C++ 6.0 when compiling ex_docmd.c with optimization. (Negri)
  3047. Testing the result of mktemp() for failure was wrong. Could cause a crash.
  3048. (Peters)
  3049. GUI: When checking for a ".gvimrc" file in the current directory, didn't check
  3050. for a "_gvimrc" file too.
  3051. Motif GUI: When using the popup menu and then adding an item to the menu bar,
  3052. the menu bar would get very high.
  3053. Mouse clicks and special keys (e.g. cursor keys) quit the more prompt and
  3054. dialogs. Now they are ignored.
  3055. When at the more-prompt, xterm selection didn't work. Now use the 'r' flag in
  3056. 'mouse' also for the more-prompt.
  3057. When selecting a Visual area of more than 1023 lines, with 'guioptions' set to
  3058. "a", could mess up the display because of a message in free_yank(). Removed
  3059. that message, except for the Amiga.
  3060. Moved auto-selection from ui_write() to the screen update functions. Avoids
  3061. unexpected behavior from a low-level function. Also makes the different
  3062. feedback of owning the selection possible.
  3063. Vi incompatibility: Using "i<CR>" in an indent, with 'ai' set, used the
  3064. original indent instead of truncating it at the cursor. (Webb)
  3065. ":echo x" didn't stop at "q" for the more prompt.
  3066. Various fixes for Macintosh. (St-Amant)
  3067. When using 'selectmode' set to "exclusive", selecting a word and then using
  3068. CTRL-] included the character under the cursor.
  3069. Using ":let a:name" in a function caused a crash. (Webb)
  3070. When using ":append", an empty line didn't scroll up.
  3071. DOS etc.: A file name starting with '!' didn't work. Added '!' to default for
  3072. 'isfname'.
  3073. BeOS: Compilation problem with prototype of skip_class_name(). (Price)
  3074. When deleting more than one line, e.g., with "de", could still use "U"
  3075. command, which didn't work properly then.
  3076. Amiga: Could not compile ex_docmd.c, it was getting too big. Moved some
  3077. functions to ex_cmds.c.
  3078. The expand() function would add a trailing slash for directories.
  3079. Didn't give an error message when trying to assign a value to an argument of a
  3080. function. (Webb)
  3081. Moved including sys/ptem.h to after termios.h. Needed for Sinix.
  3082. OLE interface: Don't delete the object in CVimCF::Release() when the reference
  3083. count becomes zero. (Cordell)
  3084. VisVim could still crash on exit. (Erhardt)
  3085. "case a: case b:" (two case statements in one line) aligned with the second
  3086. case. Now it uses one 'sw' for indent. (Webb)
  3087. Font initialisation wasn't right for Athena/Motif GUI. Moved the call to
  3088. highlight_gui_started() gui_mch_init() to gui_mch_open(). (Nam)
  3089. In Replace mode, backspacing over a TAB before where the replace mode started
  3090. while 'sts' is different from 'ts', would delete the TAB.
  3091. Win32 console: When executing external commands and switching between the two
  3092. console screens, Vim would copy the text between the buffers. That caused the
  3093. screen to be messed up for backtick expansion.
  3094. ":winpos -1" then ":winpos" gave wrong error message.
  3095. Windows commander creates files called c:\tmp\$wc\abc.txt. Don't remove the
  3096. backslash before the $. Environment variables were not expanded anyway,
  3097. because of the backslash before the dollar.
  3098. Using "-=" with ":set" could remove half a part when it contains a "\,".
  3099. E.g., ":set path+=a\\,b" and then "set path-=b" removed ",b".
  3100. When Visually selecting lines, with 'selection' set to "inclusive", including
  3101. the last char of the line, "<<" moved an extra line. Also for other operators
  3102. that always work on lines.
  3103. link.sh changed "-lnsl_s" to "_s" when looking for "nsl" to be removed.
  3104. Now it only removes whole words.
  3105. When jumped to a mark or using "fz", and there is an error, the current column
  3106. was lost. E.g. when using "$fzj".
  3107. The "g CTRL-G" command could not be interrupted, even though it can take a
  3108. long time.
  3109. Some terminals do have <F4> and <xF4>. <xF4> was always interpreted as <F4>.
  3110. Now map <xF4> to <F4>, so that the user can override this.
  3111. When compiling os_win32.c with MIN_FEAT the apply_autocmds() should not be
  3112. used. (Aaron)
  3113. This autocommand looped forever: ":au FileChangedShell * ++nested e <afile>"
  3114. Now FileChangeShell never nests. (Roemer)
  3115. When evaluating an ":elseif" that was not going to matter anyway, ignore
  3116. errors. (Roemer)
  3117. GUI Lesstif: Tearoff bar was the last item, instead of the first.
  3118. GUI Motif: Colors of tear-off widgets was wrong when 't' flag added to
  3119. 'guioptions' afterwards. When 't' flag in 'guioptions' is excluded, would
  3120. still get a tearoff item in a new menu.
  3121. An inode number can be "long long". Use ino_t instead of long. Added
  3122. configure check for ino_t.
  3123. Binary search for tags was using a file offset "long" instead of "off_t".
  3124. Insert mode completion of tags was not using 'ignorecase' properly.
  3125. In Insert mode, the <xFn> keys were not properly mapped to <Fn> for the
  3126. default mappings. Also caused errors for ":mkvimrc" and ":mksession".
  3127. When jumping to another window while in Insert mode, would get the "warning:
  3128. changing readonly file" even when not making a change.
  3129. A '(' or '{' inside a trailing "//" comment would disturb C-indenting.
  3130. When using two labels below each other, the second one was not indented
  3131. properly. Comments could mess up C-indenting in many places. (Roemer)
  3132. Could delete or redefine a function while it was being used. Could cause a
  3133. crash.
  3134. In a function it's logical to prepend "g:" to a system variable, but this
  3135. didn't work. (Roemer)
  3136. Hangul input: Buffer would overflow when user inputs invalid key sequence.
  3137. (Nam)
  3138. When BufLoad or BufEnter autocommands change the topline of the buffer in the
  3139. window, it was overruled and the cursor put halfway the window. Now only put
  3140. the cursor halfway if the autocommands didn't change the topline.
  3141. Calling exists("&option") always returned 1. (Roemer)
  3142. Win32: Didn't take actually available memory into account. (Williams)
  3143. White space after an automatically inserted comment leader was not removed
  3144. when 'ai' is not set and <CR> hit just after inserting it. (Webb)
  3145. A few menus had duplicated accelerators. (Roemer)
  3146. Spelling errors in documentation, quite a few "the the". (Roemer)
  3147. Missing prototypes for Macintosh. (Kielhorn)
  3148. Win32: When using 'shellquote' or 'shellxquote', the "!start cmd" wasn't
  3149. executed in a disconnected process.
  3150. When resizing the window, causing a line before the cursor to wrap or unwrap,
  3151. the cursor was displayed in the wrong position.
  3152. There was quite a bit of dead code when compiling with minimal features.
  3153. When doing a ":%s///" command that makes lines shorter, such that lines above
  3154. the final cursor position no longer wrap, the cursor position was not updated.
  3155. get_id_list() could allocate an array one too small, when a "contains=" item
  3156. has a wildcard that matches a group name that is added just after it. E.g.:
  3157. "contains=a.*b,axb". Give an error message for it.
  3158. When yanking a Visual area and using the middle mouse button -> crash. When
  3159. clipboard doesn't work, now make "* always use "".
  3160. Win32: Using ":buf a\ b\file" didn't work, it was interpreted as "ab\file".
  3161. Using ":ts ident", then hit <CR>, with 'cmdheight' set to 2: command line was
  3162. not cleared, the tselect prompt was on the last but one line.
  3163. mksession didn't restore the cursor column properly when it was after a tab.
  3164. Could not get all windows back when using a smaller terminal screen. Didn't
  3165. restore all windows when "winsize" was not in 'sessionoptions'. (Webb)
  3166. Command line completion for ":buffer" depended on 'ignorecase' for Unix, but
  3167. not for DOS et al. Now don't use 'ignorecase', but let it depend on whether
  3168. file names are case sensitive or not (like when expanding file names).
  3169. Win32 GUI: (Negri)
  3170. - Redrawing the background caused flicker when resizing the window. Removed
  3171. _OnEraseBG(). Removed CS_HREDRAW and CS_VREDRAW flags from the
  3172. sndclass.style.
  3173. - Some parts of the window were drawn in grey, instead of using the color from
  3174. the user color scheme.
  3175. - Dropping a file on gvim didn't activate the window.
  3176. - When there is no menu ('guioptions' excludes 'm'), never use the ALT key for
  3177. it.
  3178. GUI: When resizing the window, would make the window height a bit smaller.
  3179. Now round off to the nearest char cell size. (Negri)
  3180. In Vi the ")" and "(" commands don't stop at a single space after a dot.
  3181. Added 'J' flag in 'cpoptions' to make this behave Vi compatible. (Roemer)
  3182. When saving a session without any buffers loaded, there would be a ":normal"
  3183. command without arguments in it. (Webb)
  3184. Memory leaks fixed: (Madsen)
  3185. - eval.c: forgot to release func structure when func deleted
  3186. - ex_docmd.c: forgot to release string after "<sfile>"
  3187. - misc1.c: leak when completion pattern had no matches.
  3188. - os_unix.c: forgot to release regexp after file completions
  3189. Could crash when using a buffer without a name. (Madsen)
  3190. Could crash when doing file name completion, because of backslash_halve().
  3191. (Madsen)
  3192. ":@a" would do mappings on register a, which is not Vi compatible. (Roemer)
  3193. ":g/foo.*()/s/foobar/_&/gc" worked fine, but then "n" searched for "foobar"
  3194. and displayed "/foo.*()". (Roemer)
  3195. OS/2: get_cmd_output() was not included. Didn't check for $VIM/.vimrc file.
  3196. Command line completion of options didn't work after "+=" and "-=".
  3197. Unix configure: Test for memmove()/bcopy()/memcpy() tried redefining these
  3198. functions, which could fail if they are defined already. Use mch_memmove() to
  3199. redefine.
  3200. Unix: ":let a = expand("`xterm`&")" started an xterm asynchronously, but
  3201. ":let a = expand("`xterm&`")" generated an error message, because the
  3202. redirection was put after the '&'.
  3203. Win32 GUI: Dialog buttons could not be selected properly with cursor keys,
  3204. when the default is not the first button. (Webb)
  3205. The "File has changed since editing started" (when regaining focus) could not
  3206. always be seen. (Webb)
  3207. When starting with "ex filename", the file message was overwritten with
  3208. the "entering Ex mode" message.
  3209. Output of ":tselect" listed name of file directly from the tags file. Now it
  3210. is corrected for the position of the tags file.
  3211. When 'backspace' is 0, could backspace over autoindent. Now it is no longer
  3212. allowed (Vi compatible).
  3213. In Replace mode, when 'noexpandtab' and 'smarttab' were set, and inserting
  3214. Tabs, backspacing didn't work correctly for Tabs inserted at the start of the
  3215. line (unless 'sts' was set too). Also, when replacing the first non-blank
  3216. after which is a space, rounding the indent was done on the first non-blank
  3217. instead of on the character under the cursor.
  3218. When 'sw' at 4, 'ts' at 8 and 'smarttab' set: When a tab was appended after
  3219. four spaces (they are replaced with a tab) couldn't backspace over the tab.
  3220. In Insert mode, with 'bs' set to 0, couldn't backspace to before autoindent,
  3221. even when it was removed with CTRL-D.
  3222. When repeating an insert command where a <BS>, <Left> or other key causes an
  3223. error, would flush buffers and remain in Insert mode. No longer flush
  3224. buffers, only beep and continue with the insert command.
  3225. Dos and Win32 console: Setting t_me didn't work to get another color. Made
  3226. this works backwards compatible.
  3227. For Turkish (LANG = "tr") uppercase 'i' is not an 'I'. Use ASCII uppercase
  3228. translation in vim_strup() to avoid language problems. (Komur)
  3229. Unix: Use usleep() or nanosleep() for mch_delay() when available. Hopefully
  3230. this avoids a hangup in select(0, ..) for Solaris 2.6.
  3231. Vim would crash when using a script file with 'let &sp = "| tee"', starting
  3232. vim with "vim -u test", then doing ":set sp=". The P_WAS_SET flag wasn't set
  3233. for a string option, could cause problems with any string option.
  3234. When using "cmd | vim -", stdin is not a terminal. This gave problems with
  3235. GPM (Linux console mouse) and when executing external commands. Now close
  3236. stdin and re-open it as a copy of stderr.
  3237. Syntax highlighting: A "nextgroup" item was not properly stored in the state
  3238. list. This caused missing of next groups when not redrawing from start to
  3239. end, but starting halfway.
  3240. Didn't check for valid values of 'ttymouse'.
  3241. When executing an external command from the GUI, waiting for the child to
  3242. terminate might not work, causing a hang. (Parmelan)
  3243. "make uninstall" didn't delete the vimrc_example.vim and gvimrc_example.vim
  3244. files and the vimtutor.
  3245. Win32: "expand("%:p:h")" with no buffer name removed the directory name.
  3246. "fnamemodify("", ":p")" did not add a trailing slash, fname_case() removed it.
  3247. Fixed: When 'hlsearch' was set and the 'c' flag was not in 'cpoptions':
  3248. highlighting was not correct. Now overlapping matches are handled correctly.
  3249. Athena, Motif and GTK GUI: When started without focus, cursor was shown as if
  3250. with focus.
  3251. Don't include 'shellpipe' when compiled without quickfix, it's not used.
  3252. Don't include 'dictionary' option when compiled without the +insert_expand
  3253. feature.
  3254. Only include the 'shelltype' option for the Amiga.
  3255. When making a change to a line, with 'hlsearch' on, causing it to wrap, while
  3256. executing a register, the screen would not be updated correctly. This was a
  3257. generic problem in update_screenline() being called while must_redraw is
  3258. VALID.
  3259. Using ":bdelete" in a BufUnload autocommand could cause a crash. The window
  3260. height was added to another window twice in close_window().
  3261. Win32 GUI: When removing a menu item, the tearoff wasn't updated. (Negri)
  3262. Some performance bottlenecks removed. Allocating memory was not efficient.
  3263. For Win32 checking for available memory was slow, don't check it every time
  3264. now. On NT obtaining the user name takes a long time, cache the result (for
  3265. all systems).
  3266. fnamemodify() with an argument ":~:." or ":.:~" didn't work properly.
  3267. When editing a new file and exiting, the marks for the buffer were not saved
  3268. in the viminfo file.
  3269. ":confirm only" didn't put up a dialog.
  3270. These text objects didn't work when 'selection' was "exclusive": va( vi( va{
  3271. vi{ va< vi< vi[ va[.
  3272. The dialog for writing a readonly file didn't have a valid default. (Negri)
  3273. The line number used for error messages when sourcing a file was reset when
  3274. modelines were inspected. It was wrong when executing a function.
  3275. The file name and line number for an error message wasn't displayed when it
  3276. was the same as for the last error, even when this was long ago. Now reset
  3277. the name/lnum after a hit-enter prompt.
  3278. In a session file, a "%" in a file name caused trouble, because fprintf() was
  3279. used to write it to the file.
  3280. When skipping statements, a mark in an address wasn't skipped correctly:
  3281. "ka|if 0|'ad|else|echo|endif". (Roemer)
  3282. ":wall" could overwrite a not-edited file without asking.
  3283. GUI: When $DISPLAY was not set or starting the GUI failed in another way, the
  3284. console mode then started with wrong colors and skipped initializations. Now
  3285. do an early check if the GUI can be started. Don't source the menu.vim or
  3286. gvimrc when it will not. Also do normal terminal initializations if the GUI
  3287. might not start.
  3288. When using a BufEnter autocommand to position the cursor and scroll the
  3289. window, the cursor was always put at the last used line and halfway the window
  3290. anyhow.
  3291. When 'wildmode' was set to "longest,list:full", ":e *.c<Tab><Tab>" didn't list
  3292. the matches. Also avoid that listing after a "longest" lists the wrong
  3293. matches when the first expansion changed the string in front of the cursor.
  3294. When using ":insert", ":append" or ":change" inside a while loop, was not able
  3295. to break out of it with a CTRL-C.
  3296. Win32: ":e ." took an awful long time before an error message when used in
  3297. "C:\". Was caused by adding another backslash and then trying to get the full
  3298. name for "C:\\".
  3299. ":winpos -10 100" was working like ":winpos -10 -10", because a pointer was
  3300. not advanced past the '-' sign.
  3301. When obtaining the value of a hidden option, would give an error message. Now
  3302. just use a zero value.
  3303. OS/2: Was using argv[0], even though it was not a useful name. It could be
  3304. just "vim", found in the search path.
  3305. Xterm: ":set columns=78" didn't redraw properly (when lines wrap/unwrap) until
  3306. after a delay of 'updatetime'. Didn't check for the size-changed signal.
  3307. 'scrollbind' didn't work in Insert mode.
  3308. Horizontal scrollbinding didn't always work for "0" and "$" commands (e.g.,
  3309. when 'showcmd' was off).
  3310. When compiled with minimal features but with GUI, switching on the mouse in an
  3311. xterm caused garbage, because the mouse codes were not recognized. Don't
  3312. enable the mouse when it can't be recognized. In the GUI it also didn't work,
  3313. the arguments to the mouse code were not interpreted.
  3314. When 'showbreak' used, in Insert mode, when the cursor is just after the last
  3315. character in the line, which is also the in the rightmost column, the cursor
  3316. position would be like the 'showbreak' string is shown, but it wasn't.
  3317. Autocommands could move the cursor in a new file, so that CTRL-W i didn't show
  3318. the right line. Same for when using a filemark to jump to another file.
  3319. When redefining the argument list, the title used for other windows could be
  3320. showing the wrong info about the position in the argument list. Also update
  3321. this for a ":split" command without arguments.
  3322. When editing file 97 of 13, ":Next" didn't work. Now it goes to the last
  3323. file in the argument list.
  3324. Insert mode completion (for dictionaries or included files) could not be
  3325. interrupted by typing an <Esc>. Could get hit-enter prompt after line
  3326. completion, or whenever the informative message would get too long.
  3327. When using the ":edit" command to re-edit the same file, an autocommand to
  3328. jump to the last cursor position caused the cursor to move. Now set the last
  3329. used cursor position to avoid this.
  3330. When 'comments' has a part that starts with white space, formatting the
  3331. comment didn't work.
  3332. At the ":tselect" prompt Normal mode mappings were used. That has been
  3333. disabled.
  3334. When 'selection' is not "old", some commands still didn't allow the cursor
  3335. past the end-of-line in Visual mode.
  3336. Athena: When a menu was deleted, it would appear again (but not functional)
  3337. when adding another menu. Now they don't reappear anymore (although they are
  3338. not really deleted either).
  3339. Borland C++ 4.x had an optimizer problem in fill_breakat_flags(). (Negri)
  3340. "ze" didn't work when 'number' was on. (Davis)
  3341. Win32 GUI: Intellimouse code didn't work properly on Windows 98. (Robinson)
  3342. A few files were including proto.h a second time, after vim.h had already done
  3343. that, which could cause problems with the vim_realloc() macro.
  3344. Win32 console: <M-x> or ALT-x was not recognized. Also keypad '+', '-' and
  3345. '*'. (Negri)
  3346. MS-DOS: <M-x> didn't work, produced a two-byte code. Now the alphabetic and
  3347. number keys work. (Negri)
  3348. When finding a lot of matches for a tag completion, the check for avoiding
  3349. double matches could take a lot of time. Add a line_breakcheck() to be able
  3350. to interrupt this. (Deshpande)
  3351. When the command line was getting longer than the screen, the more-prompt
  3352. would be given regularly, and the cursor position would be wrong. Now only
  3353. show the part of the command line that fits on the screen and force the cursor
  3354. to be positioned on the visible part. There can be text after the cursor
  3355. which isn't editable.
  3356. At the more prompt and with the console dialog, a cursor key was interpreted
  3357. as <Esc> and OA. Now recognize special keys in get_keystroke(). Ignore mouse
  3358. and scrollbar events.
  3359. When typing a BS after inserting a middle comment leader, typing the last char
  3360. of the end comment leader still changed it into the end comment leader. (Webb)
  3361. When a file system is full, writing to a swap file failed. Now first try to
  3362. write one block to the file. Try next entry in 'dir' if it fails.
  3363. When "~" is in 'whichwrap', doing "~" on last char of a line didn't update the
  3364. display.
  3365. Unix: Expanding wildcards for ":file {\\}" didn't work, because "\}" was
  3366. translated to "}" before the shell got it. Now don't remove backslashes when
  3367. wildcards are going to be expanded.
  3368. Unix: ":e /tmp/$uid" didn't work. When expanding environment variables in a
  3369. file name doesn't work, use the shell to expand the file name. ":e /tmp/$tty"
  3370. still doesn't work though.
  3371. "make test" didn't always work on DOS/Windows for test30, because it depended
  3372. on the external "echo" command.
  3373. The link.sh script used "make" instead of $MAKE from the Makefile. Caused
  3374. problems for generating pathdef.c when "make" doesn't work properly.
  3375. On versions that can do console and GUI: In the console a typed CSI code could
  3376. cause trouble.
  3377. The patterns in expression evaluation didn't ignore the 'l' flag in
  3378. 'cpoptions'. This broke the working of <CR> in the options window.
  3379. When 'hls' off and 'ai' on, "O<Esc>" did remove the indent, but it was still
  3380. highlighted red for trailing space.
  3381. Win32 GUI: Dropping an encrypted file on a running gvim didn't work right. Vim
  3382. would loop while outputting "*" characters. vgetc() was called recursively,
  3383. thus it returns NUL. Added safe_vgetc(), which reads input directly from the
  3384. user in this situation.
  3385. While reading text from stdin, only an empty screen was shown. Now show that
  3386. Vim is reading from stdin.
  3387. The cursor shape wasn't set properly when returning to Insert mode, after
  3388. using a CTRL-O /asdf command which fails. It would be OK after a few seconds.
  3389. Now it's OK right away.
  3390. The 'isfname' default for DOS/Windows didn't include the '@' character. File
  3391. names that contained "dir\@file" could not be edited.
  3392. Win32 console: <C-S-Left> could cause a crash when compiled with Borland or
  3393. egcs. (Aaron)
  3394. Unix and VMS: "#if HAVE_DIRENT_H" caused problems for some compilers. Use
  3395. "#ifdef HAVE_DIRENT_H" instead. (Jones)
  3396. When a matching tag is in the current file but has a search pattern that
  3397. doesn't match, the cursor would jump to the first line.
  3398. Unix: Dependencies for pty.c were not included in Makefile. Dependency of
  3399. ctags/config.h was not included (only matters for parallel make).
  3400. Removed a few Uninitialized Memory Reads (potential crashes). In do_call()
  3401. calling clear_var() when not evaluating. In win32_expandpath() and
  3402. dos_expandpath() calling backslash_halve() past the end of a file name.
  3403. Removed memory leaks: Set_vim_var_string() never freed the value. The
  3404. next_list for a syntax keyword was never freed.
  3405. On non-Unix systems, using a file name with wildcards without a match would
  3406. silently fail. E.g., ":e *.sh". Now give a "No match" error message.
  3407. The life/life.mac, urm/urm.mac and hanoi/hanoi.mac files were not recognized
  3408. as Vim scripts. Renamed them to *.vim.
  3409. [Note: some numbered patches are not relevant when upgrading from version 5.3,
  3410. they have been removed]
  3411. Patch 5.4m.1
  3412. Problem: When editing a file with a long name, would get the hit-enter
  3413. prompt, even though all settings are such that the name should be
  3414. truncated to avoid that. filemess() was printing the file name
  3415. without truncating it.
  3416. Solution: Truncate the message in filemess(). Use the same code as for
  3417. msg_trunc_attr(), which is moved to the new function
  3418. msg_may_trunc().
  3419. Files: src/message.c, src/proto/message.pro, src/fileio.c
  3420. Patch 5.4m.3
  3421. Problem: The Motif libraries were not found by configure for Digital Unix.
  3422. Solution: Add "/usr/shlib" to the search path. (Andy Kahn)
  3423. Files: src/configure.in, src/configure
  3424. Patch 5.4m.5
  3425. Problem: Win32 GUI: When using the Save-As menu entry and selecting an
  3426. existing file in the file browser, would get a dialog to confirm
  3427. overwriting twice. (Ed Krall)
  3428. Solution: Removed the dialog from the file browser. It would be nicer to
  3429. set the "forceit" flag and skip Vim's ":confirm" dialog, but it
  3430. requires quite a few changes to do that.
  3431. Files: src/gui_w32.c
  3432. Patch 5.4m.6
  3433. Problem: Win32 GUI: When reading text from stdin, e.g., "cat foo | gvim -",
  3434. a message box would pop up with "-stdin-" (when exiting). (Michael
  3435. Schaap)
  3436. Solution: Don't switch off termcap mode for versions that are GUI-only.
  3437. They use another terminal to read from stdin.
  3438. Files: src/main.c, src/fileio.c
  3439. Patch 5.4m.7
  3440. Problem: Unix: running configure with --enable-gtk-check,
  3441. --enable-motif-check, --enable-athena-check or --enable-gtktest
  3442. had the reverse effect. (Thomas Koehler)
  3443. Solution: Use $enable_gtk_check variable correctly in AC_ARG_ENABLE().
  3444. Files: src/configure.in, src/configure
  3445. Patch 5.4m.9
  3446. Problem: Multi-byte: With wrapping lines, the cursor was sometimes 2
  3447. characters to the left. Syntax highlighting was wrong when a
  3448. double-byte character was split for a wrapping line. When
  3449. 'showbreak' was on the splitting also didn't work.
  3450. Solution: Adjust getvcol() and win_line(). (Chong-Dae Park)
  3451. Files: src/charset.c, src/screen.c
  3452. Patch 5.4m.11
  3453. Problem: The ":call" command didn't check for illegal trailing characters.
  3454. (Stefan Roemer)
  3455. Solution: Add the check in do_call().
  3456. Files: src/eval.c
  3457. Patch 5.4m.13
  3458. Problem: With the ":s" command:
  3459. 1. When performing a substitute command, the mouse would be
  3460. disabled and enabled for every substitution.
  3461. 2. The cursor position could be beyond the end of the line.
  3462. Calling line_breakcheck() could try to position the cursor,
  3463. which causes a crash in the Win32 GUI.
  3464. 3. When using ":s" in a ":g" command, the cursor was not put on
  3465. the first non-white in the line.
  3466. 4. There was a hit-enter prompt when confirming the substitution
  3467. and the replacement was a bit longer.
  3468. Solution: 1. Only disable/enable the mouse when asking for confirmation.
  3469. 2. Always put the cursor on the first character, it is going to be
  3470. moved to the first non-blank anyway.
  3471. Don't use the cursor position in gui_mch_draw_hollow_cursor(),
  3472. get the character from the screen buffer.
  3473. 3. Added global_need_beginline flag to call beginline() after ":g"
  3474. has finished all substitutions.
  3475. 4. Clear the need_wait_return flag after prompting the user.
  3476. Files: src/ex_cmds.c, src/gui_w32.c
  3477. Patch 5.4m.14
  3478. Problem: When doing "vim xxx", ":opt", ":only" and then ":e xxx" we end
  3479. up with two swapfiles for "xxx". That is caused by the ":bdel"
  3480. command which is executed when unloading the option-window.
  3481. Also, there was no check if closing a buffer made the new one
  3482. invalid, this could cause a crash.
  3483. Solution: When closing a buffer causes the current buffer to be deleted,
  3484. use the new buffer to replace it. Also detect that the new buffer
  3485. has become invalid as a side effect of closing the current one.
  3486. Make autocommand that calls ":bdel" in optwin.vim nested, so that
  3487. the buffer loading it triggers also executes autocommands.
  3488. Also added a test for this in test13.
  3489. Files: runtime/optwin.vim, src/buffer.c, src/ex_cmds.c, src/globals.h
  3490. src/testdir/test13.in, src/testdir/test13.ok
  3491. Patch 5.4m.15
  3492. Problem: When using a BufEnter autocommand to reload the syntax file,
  3493. conversion to HTML caused a crash. (Sung-Hyun Nam)
  3494. Solution: When using ":syntax clear" the current stack of syntax items was
  3495. not cleared. This will cause memory to be used that has already
  3496. been freed. Added call to invalidate_current_state() in
  3497. syntax_clear().
  3498. Files: src/syntax.c
  3499. Patch 5.4m.17
  3500. Problem: When omitting a ')' in an expression it would not be seen as a
  3501. failure.
  3502. When detecting an error inside (), there would be an error message
  3503. for a missing ')' too.
  3504. When using ":echo 1+|echo 2" there was no error message. (Roemer)
  3505. When using ":exe 1+" there was no error message.
  3506. When using ":return 1+" there was no error message.
  3507. Solution: Fix do_echo(), do_execute() and do_return() to give an error
  3508. message when eval1() returns FAIL.
  3509. Fix eval6() to handle trailing ')' correctly and return FAIL when
  3510. it's missing.
  3511. Files: src/eval.c
  3512. Patch 5.4m.18
  3513. Problem: When using input() from inside an expression entered with
  3514. "CTRL-R =" on the command line, there could be a crash. And the
  3515. resulting command line was wrong.
  3516. Solution: Added getcmdline_prompt(), which handles recursive use of
  3517. getcmdline() correctly. It also sets the command line prompt.
  3518. Removed cmdline_prompt(). Also use getcmdline_prompt() for
  3519. getting the crypt key in get_crypt_key().
  3520. Files: src/proto/ex_getln.pro, src/ex_getln.c, src/eval.c, src/misc2.c
  3521. Patch 5.4m.21
  3522. Problem: When starting up, the screen structures were first allocated at
  3523. the minimal size, then initializations were done with Rows
  3524. possibly different from screen_Rows. Caused a crash in rare
  3525. situations (GTK with XIM and fontset).
  3526. Solution: Call screenalloc() in main() only after calling ui_get_winsize().
  3527. Also avoids a potential delay because of calling screenclear()
  3528. while "starting" is non-zero.
  3529. Files: src/main.c
  3530. Patch 5.4m.22
  3531. Problem: In the GUI it was possible that the screen was resized and the
  3532. screen structures re-allocated while redrawing the screen. This
  3533. could cause a crash (hard to reproduce). The call sequence goes
  3534. through update_screen() .. syntax_start() .. ui_breakcheck() ..
  3535. gui_resize_window() .. screenalloc().
  3536. Solution: Set updating_screen while redrawing. If the window is resized
  3537. remember the new size and handle it only after redrawing is
  3538. finished.
  3539. This also fixes that resizing the screen while still redrawing
  3540. (slow syntax highlighting) would not work properly.
  3541. Also disable display_hint, it was never used.
  3542. Files: src/globals.h, src/gui.c, src/screen.c, src/proto/gui.pro
  3543. Patch 5.4m.23
  3544. Problem: When using expand("<cword>") when there was no word under the
  3545. cursor, would get an error message. Same for <cWORD> and <cfile>.
  3546. Solution: Don't give an error message, return an empty string.
  3547. Files: src/eval.c
  3548. Patch 5.4m.24
  3549. Problem: ":help \|" didn't find anything. It was translated to "/\\|".
  3550. Solution: Translate "\|" into "\\bar". First check the table for specific
  3551. translations before checking for "\x".
  3552. Files: src/ex_cmds.c
  3553. Patch 5.4m.25
  3554. Problem: Unix: When using command line completion on files that contain
  3555. ''', '"' or '|' the file name could not be used.
  3556. Adding this file name to the Buffers menu caused an error message.
  3557. Solution: Insert a backslash before these three characters.
  3558. Adjust Mungename() function to insert a backslash before '|'.
  3559. Files: src/ex_getln.c, runtime/menu.vim
  3560. Patch 5.4m.26
  3561. Problem: When using a mapping of two function keys, e.g., <F1><F1>, and
  3562. only the first char of the second key has been read, the mapping
  3563. would not be recognized. Noticed on some Unix systems with xterm.
  3564. Solution: Add 'K' flag to 'cpoptions' to wait for the whole key code, even
  3565. when halfway a mapping.
  3566. Files: src/option.h, src/term.c
  3567. Patch 5.4m.27
  3568. Problem: When making test33 without the lisp feature it hangs. Interrupting
  3569. the execution of the script then might cause a crash.
  3570. Solution: In inchar(), after closing a script, don't use buf[] anymore.
  3571. closescript() has freed typebuf[] and buf[] might be pointing
  3572. inside typebuf[].
  3573. Avoid that test33 hangs when the lisp feature is missing.
  3574. Files: src/getchar.c src/testdir/test33.in
  3575. "os2" was missing from the feature list. Useful for has("os2").
  3576. BeOS:
  3577. - Included patches from Richard Offer for BeOS R4.5.
  3578. - menu code didn't work right. Crashed in the Buffers menu. The window title
  3579. wasn't set. (Offer)
  3580. Patch 5.4n.3
  3581. Problem: C-indenting was wrong after " } else". The white space was not
  3582. skipped. Visible when 'cino' has "+10".
  3583. Solution: Skip white space before calling cin_iselse(). (Norbert Zeh)
  3584. Files: src/misc1.c
  3585. Patch 5.4n.4
  3586. Problem: When the 't' flag in 'cpoptions' is included, after a
  3587. ":nohlsearch" the search highlighting would not be enabled again
  3588. after a tag search. (Norbert Zeh)
  3589. Solution: When setting the new search pattern in jumpto_tag(), don't restore
  3590. no_hlsearch.
  3591. Files: src/tag.c
  3592. Patch 5.4n.5
  3593. Problem: When using ":normal" from a CursorHold autocommand Vim hangs. The
  3594. autocommand is executed down from vgetc(). Calling vgetc()
  3595. recursively to execute the command doesn't work then.
  3596. Solution: Forbid the use of ":normal" when vgetc_busy is set. Give an error
  3597. message when this happens.
  3598. Files: src/ex_docmd.c, runtime/doc/autocmd.txt
  3599. Patch 5.4n.6
  3600. Problem: "gv" could reselect a Visual that starts and/or ends past the end
  3601. of a line. (Robert Webb)
  3602. Solution: Check that the start and end of the Visual area are on a valid
  3603. character by calling adjust_cursor().
  3604. Files: src/normal.c
  3605. Patch 5.4n.8
  3606. Problem: When a mark was on a non existing line (e.g., when the .viminfo
  3607. was edited), jumping to it caused ml_get errors. (Alexey
  3608. Marinichev).
  3609. Solution: Added check_cursor_lnum() in nv_gomark().
  3610. Files: src/normal.c
  3611. Patch 5.4n.9
  3612. Problem: ":-2" moved the cursor to a negative line number. (Ralf Schandl)
  3613. Solution: Give an error message for a negative line number.
  3614. Files: src/ex_docmd.c
  3615. Patch 5.4n.10
  3616. Problem: Win32 GUI: At the hit-enter prompt, it was possible to scroll the
  3617. text. This erased the prompt and made Vim look like it is in
  3618. Normal mode, while it is actually still waiting for a <CR>.
  3619. Solution: Disallow scrolling at the hit-enter prompt for systems that use
  3620. on the fly scrolling.
  3621. Files: src/message.c
  3622. Patch 5.4n.14
  3623. Problem: Win32 GUI: When using ":winsize 80 46" and the height is more than
  3624. what fits on the screen, the window size was made smaller than
  3625. asked for (that's OK) and Vim crashed (that's not OK)>
  3626. Solution: Call check_winsize() from gui_set_winsize() to resize the windows.
  3627. Files: src/gui.c
  3628. Patch 5.4n.16
  3629. Problem: Win32 GUI: The <F10> key both selected the menu and was handled as
  3630. a key hit.
  3631. Solution: Apply 'winaltkeys' to <F10>, like it is used for Alt keys.
  3632. Files: src/gui_w32.c
  3633. Patch 5.4n.17
  3634. Problem: Local buffer variables were freed when the buffer is unloaded.
  3635. That's not logical, since options are not freed. (Ron Aaron)
  3636. Solution: Free local buffer variables only when deleting the buffer.
  3637. Files: src/buffer.c
  3638. Patch 5.4n.19
  3639. Problem: Doing ":e" (without argument) in an option-window causes trouble.
  3640. The mappings for <CR> and <Space> are not removed. When there is
  3641. another buffer loaded, the swap file for it gets mixed up.
  3642. (Steve Mueller)
  3643. Solution: Also remove the mappings at the BufUnload event, if they are still
  3644. present.
  3645. When re-editing the same file causes the current buffer to be
  3646. deleted, don't try editing it.
  3647. Also added a test for this situation.
  3648. Files: runtime/optwin.vim, src/ex_cmds.c, src/testdir/test13.in,
  3649. src/testdir/test13.ok
  3650. Patch 5.4n.24
  3651. Problem: BeOS: configure never enabled the GUI, because $with_x was "no".
  3652. Unix prototypes caused problems, because Display and Widget are
  3653. undefined.
  3654. Freeing fonts on exit caused a crash.
  3655. Solution: Only disable the GUI when $with_x is "no" and $BEOS is not "yes".
  3656. Add dummy defines for Display and Widget in proto.h.
  3657. Don't free the fonts in gui_exit() for BeOS.
  3658. Files: src/configure.in, src/configure, src/proto.h, src/gui.c.
  3659. The runtime/vim48x48.xpm icon didn't have a transparent background. (Schild)
  3660. Some versions of the mingw32/egcs compiler didn't have WINBASEAPI defined.
  3661. (Aaron)
  3662. VMS:
  3663. - mch_setenv() had two arguments instead of three.
  3664. - The system vimrc and gvimrc files were called ".vimrc" and ".gvimrc".
  3665. Removed the dot.
  3666. - call to RealWaitForChar() had one argument too many. (Campbell)
  3667. - WaitForChar() is static, removed the prototype from proto/os_vms.pro.
  3668. - Many file accesses failed, because Unix style file names were used.
  3669. Translate file names to VMS style by using vim_fopen().
  3670. - Filtering didn't work, because the temporary file name was generated wrong.
  3671. - There was an extra newline every 9192 characters when writing a file. Work
  3672. around it by writing line by line. (Campbell)
  3673. - os_vms.c contained "# typedef int DESC". Should be "typedef int DESC;".
  3674. Only mattered for generating prototypes.
  3675. - Added file name translation to many places. Made easy by defining macros
  3676. mch_access(), mch_fopen(), mch_fstat(), mch_lstat() and mch_stat().
  3677. - Set default for 'tagbsearch' to off, because binary tag searching apparently
  3678. doesn't work for VMS.
  3679. - make mch_get_host_name() work with /dec and /standard=vaxc. (Campbell)
  3680. Patch 5.4o.2
  3681. Problem: Crash when using "gf" on "file.c://comment here". (Scott Graham)
  3682. Solution: Fix wrong use of pointers in get_file_name_in_path().
  3683. Files: src/window.c
  3684. Patch 5.4o.3
  3685. Problem: The horizontal scrollbar was not sized correctly when 'number' is
  3686. set and 'wrap' not set.
  3687. Athena: Horizontal scrollbar wasn't updated when the cursor was
  3688. positioned with a mouse click just after dragging.
  3689. Solution: Subtract 8 from the size when 'number' set and 'wrap' not set.
  3690. Reset gui.dragged_sb when a mouse click is received.
  3691. Files: src/gui.c
  3692. Patch 5.4o.4
  3693. Problem: When running in an xterm and $WINDOWID is set to an illegal value,
  3694. Vim would exit with "Vim: Got X error".
  3695. Solution: When using the display which was opened for the xterm clipboard,
  3696. check if x11_window is valid by trying to obtain the window title.
  3697. Also add a check in setup_xterm_clip(), for when using X calls to
  3698. get the pointer position in an xterm.
  3699. Files: src/os_unix.c
  3700. Patch 5.4o.5
  3701. Problem: Motif version with Lesstif: When removing the menubar and then
  3702. using a menu shortcut key, Vim would crash. (raf)
  3703. Solution: Disable the menu mnemonics when the menu bar is removed.
  3704. Files: src/gui_motif.c
  3705. Patch 5.4o.9
  3706. Problem: The DOS install.exe program used the "move" program. That doesn't
  3707. work on Windows NT, where "move" is internal to cmd.exe.
  3708. Solution: Don't use an external program for moving the executables. Use C
  3709. functions to copy the file and delete the original.
  3710. Files: src/dosinst.c
  3711. Motif and Athena obtained the status area height differently from GTK. Moved
  3712. status_area_enabled from global.h to gui_x11.c and call
  3713. xim_get_status_area_height() to get the status area height.
  3714. Patch 5.4p.1
  3715. Problem: When using auto-select, and the "gv" command is used, would not
  3716. always obtain ownership of the selection. Caused by the Visual
  3717. area still being the same, but ownership taken away by another
  3718. program.
  3719. Solution: Reset the clipboard Visual mode to force updating the selection.
  3720. Files: src/normal.c
  3721. Patch 5.4p.2
  3722. Problem: Motif and Athena with XIM: Typing 3-byte
  3723. <multibyte><multibyte><space> doesn't work correctly with Ami XIM.
  3724. Solution: Avoid using key_sym XK_VoidSymbol. (Nam)
  3725. Files: src/multbyte.c, src/gui_x11.c
  3726. Patch 5.4p.4
  3727. Problem: Win32 GUI: The scrollbar values were reduced for a file with more
  3728. than 32767 lines. But this info was kept global for all
  3729. scrollbars, causing a mixup between the windows.
  3730. Using the down arrow of a scrollbar in a large file didn't work.
  3731. Because of round-off errors there is no scroll at all.
  3732. Solution: Give each scrollbar its own scroll_shift field. When the down
  3733. arrow is used, scroll several lines.
  3734. Files: src/gui.h, src/gui_w32.c
  3735. Patch 5.4p.5
  3736. Problem: When changing buffers in a BufDelete autocommand, there could be
  3737. ml_line errors and/or a crash. (Schandl) Was caused by deleting
  3738. the current buffer.
  3739. Solution: When the buffer to be deleted unexpectedly becomes the current
  3740. buffer, don't delete it.
  3741. Also added a check for this in test13.
  3742. Files: src/buffer.c, src/testdir/test13.in, src/testdir/test13.ok
  3743. Patch 5.4p.7
  3744. Problem: Win32 GUI: When using 'mousemodel' set to "popup_setpos" and
  3745. clicking the right mouse button outside of the selected area, the
  3746. selected area wasn't removed until the popup menu has gone.
  3747. (Aaron)
  3748. Solution: Set the cursor and update the display before showing the popup
  3749. menu.
  3750. Files: src/normal.c
  3751. Patch 5.4p.8
  3752. Problem: The generated bugreport didn't contain information about
  3753. $VIMRUNTIME and whether runtime files actually exist.
  3754. Solution: Added a few checks to the bugreport script.
  3755. Files: runtime/bugreport.vim
  3756. Patch 5.4p.9
  3757. Problem: The windows install.exe created a wrong entry in the popup menu.
  3758. The "%1" was "". The full directory was included, even when the
  3759. executable had been moved elsewhere. (Ott)
  3760. Solution: Double the '%' to get one from printf. Only include the path to
  3761. gvim.exe when it wasn't moved and it's not in $PATH.
  3762. Files: src/dosinst.c
  3763. Patch 5.4p.10
  3764. Problem: Win32: On top of 5.4p.9: The "Edit with Vim" entry sometimes used
  3765. a short file name for a directory.
  3766. Solution: Change the "%1" to "%L" in the registry entry.
  3767. Files: src/dosinst.c
  3768. Patch 5.4p.11
  3769. Problem: Motif, Athena and GTK: When closing the GUI window when there is a
  3770. changed buffer, there was only an error message and Vim would not
  3771. exit.
  3772. Solution: Put up a dialog, like for ":confirm qa". Uses the code that was
  3773. already used for MS-Windows.
  3774. Files: src/gui.c, src/gui_w32.c
  3775. Patch 5.4p.12
  3776. Problem: Win32: Trying to expand a string that is longer than 256
  3777. characters could cause a crash. (Steed)
  3778. Solution: For the buffer in win32_expandpath() don't use a fixed size array,
  3779. allocate it.
  3780. Files: src/os_win32.c
  3781. MSDOS: Added "-Wall" to Makefile.djg compile flags. Function prototypes for
  3782. fname_case() and mch_update_cursor() were missing. "fd" was unused in
  3783. mf_sync(). "puiLocation" was unused in myputch(). "newcmd" unused in
  3784. mch_call_shell() for DJGPP version.
  3785. ==============================================================================
  3786. VERSION 5.5 *version-5.5*
  3787. Version 5.5 is a bug-fix version of 5.4.
  3788. Changed *changed-5.5*
  3789. -------
  3790. The DJGPP version is now compiled with "-O2" instead of "-O4" to reduce the
  3791. size of the executables.
  3792. Moved the src/STYLE file to runtime/doc/develop.txt. Added the design goals
  3793. to it.
  3794. 'backspace' is now a string option. See patch 5.4.15.
  3795. Added *added-5.5*
  3796. -----
  3797. Included Exuberant Ctags version 3.3. (Darren Hiebert)
  3798. In runtime/mswin.vim, map CTRL-Q to CTRL-V, so that CTRL-Q can be used
  3799. everywhere to do what CTRL-V used to do.
  3800. Support for decompression of bzip2 files in vimrc_example.vim.
  3801. When a patch is included, the patch number is entered in a table in version.c.
  3802. This allows skipping a patch without breaking a next one.
  3803. Support for mouse scroll wheel in X11. See patch 5.5a.14.
  3804. line2byte() can be used to get the size of the buffer. See patch 5.4.35.
  3805. The CTRL-R CTRL-O r and CTRL-R CTRL-P r commands in Insert mode are used to
  3806. insert a register literally. See patch 5.4.48.
  3807. Uninstall program for MS-Windows. To be able to remove the registry entries
  3808. for "Edit with Vim". It is registered to be run from the "Add/Remove
  3809. programs" application. See patch 5.4.x7.
  3810. Fixed *fixed-5.5*
  3811. -----
  3812. When using vimrc_example.vim: An error message when the cursor is on a line
  3813. higher than the number of lines in the compressed file. Move the autocommand
  3814. for jumping to the last known cursor position to after the decompressing
  3815. autocommands.
  3816. ":mkexrc" and ":mksession" wrote the current value of 'textmode'. That may
  3817. mark a file as modified, which causes problems. This is a buffer-specific
  3818. setting, it should not affect all files.
  3819. "vim --version" wrote two empty lines.
  3820. Unix: The alarm signal could kill Vim. It is generated by the Perl alarm()
  3821. function. Ignore SIGALRM.
  3822. Win32 GUI: Toolbar still had the yellow bitmap for running a Vim script.
  3823. BeOS: "tmo" must be bigtime_t, instead of double. (Seibert)
  3824. Patch 5.4.1
  3825. Problem: Test11 fails when $GZIP is set to "-v". (Matthew Jackson)
  3826. Solution: Set $GZIP to an empty string.
  3827. Files: src/testdir/test11.in
  3828. Patch 5.4.2
  3829. Problem: Typing <Esc> at the crypt key prompt caused a crash. (Kallingal)
  3830. Solution: Check for a NULL pointer returned from get_crypt_key().
  3831. Files: src/fileio.c
  3832. Patch 5.4.3
  3833. Problem: Python: Trying to use the name of an unnamed buffer caused a
  3834. crash. (Daniel Burrows)
  3835. Solution: Check for b_fname being a NULL pointer.
  3836. Files: src/if_python.c
  3837. Patch 5.4.4
  3838. Problem: Win32: When compiled without toolbar, but the 'T' flag is in
  3839. 'guioptions', there would be an empty space for the toolbar.
  3840. Solution: Add two #ifdefs where checking for the 'T' flag. (Vince Negri)
  3841. Files: src/gui.c
  3842. Patch 5.4.5
  3843. Problem: Athena GUI: Using the Buffers.Refresh menu entry caused a crash.
  3844. Looks like any ":unmenu" command may cause trouble.
  3845. Solution: Disallow ":unmenu" in the Athena version. Disable the Buffers
  3846. menu, because the Refresh item would not work.
  3847. Files: src/menu.c, runtime/menu.vim
  3848. Patch 5.4.6
  3849. Problem: GTK GUI: Using ":gui" in the .gvimrc file caused an error. Only
  3850. happens when the GUI forks.
  3851. Solution: Don't fork in a recursive call of gui_start().
  3852. Files: src/gui.c
  3853. Patch 5.4.7
  3854. Problem: Typing 'q' at the more prompt for the ATTENTION message causes the
  3855. file loading to be interrupted. (Will Day)
  3856. Solution: Reset got_int after showing the ATTENTION message.
  3857. Files: src/memline.c
  3858. Patch 5.4.8
  3859. Problem: Edit some file, ":he", ":opt": options from help window are shown,
  3860. but pressing space updates from the other window. (Phillipps)
  3861. Also: When there are changes in the option-window, ":q!" gives an
  3862. error message.
  3863. Solution: Before creating the option-window, go to a non-help window.
  3864. Use ":bdel!" to delete the buffer.
  3865. Files: runtime/optwin.vim
  3866. Patch 5.4.9
  3867. Just updates version.h. The real patch has been moved to 5.4.x1.
  3868. This patch is just to keep the version number correct.
  3869. Patch 5.4.10
  3870. Problem: GTK GUI: When $DISPLAY is invalid, "gvim -f" just exits. It
  3871. should run in the terminal.
  3872. Solution: Use gtk_init_check() instead of gtk_init().
  3873. Files: src/gui_gtk_x11.c
  3874. Patch 5.4.11
  3875. Problem: When using the 'S' flag in 'cpoptions', 'tabstop' is not copied to
  3876. the next buffer for some commands, e.g., ":buffer".
  3877. Solution: When the BCO_NOHELP flag is given to buf_copy_options(), still
  3878. copy the options used by do_help() when neither the "from" or "to"
  3879. buffer is a help buffer.
  3880. Files: src/option.c
  3881. Patch 5.4.12
  3882. Problem: When using 'smartindent', there would be no extra indent if the
  3883. current line did not have any indent already. (Hanus Adler)
  3884. Solution: There was a wrongly placed "else", that previously matched with
  3885. the "if" that set trunc_line. Removed the "else" and added a
  3886. check for trunc_line to be false.
  3887. Files: src/misc1.c
  3888. Patch 5.4.13
  3889. Problem: New SGI C compilers need another option for optimisation.
  3890. Solution: Add a check in configure for "-OPT:Olimit". (Chin A Young)
  3891. Files: src/configure.in, src/configure
  3892. Patch 5.4.14
  3893. Problem: Motif GUI: When the popup menu is present, a tiny window appears
  3894. on the desktop for some users.
  3895. Solution: Set the menu widget ID for a popup menu to 0. (Thomas Koehler)
  3896. Files: src/gui_motif.c
  3897. Patch 5.4.15
  3898. Problem: Since 'backspace' set to 0 has been made Vi compatible, it is no
  3899. longer possible to only allow deleting autoindent.
  3900. Solution: Make 'backspace' a list of parts, to allow each kind of
  3901. backspacing separately.
  3902. Files: src/edit.c, src/option.c, src/option.h, src/proto/option.pro,
  3903. runtime/doc/option.txt, runtime/doc/insert.txt
  3904. Patch 5.4.16
  3905. Problem: Multibyte: Locale zh_TW.Big5 was not checked for in configure.
  3906. Solution: Add zh_TW.Big5 to configure check. (Chih-Tsun Huang)
  3907. Files: src/configure.in, src/configure
  3908. Patch 5.4.17
  3909. Problem: GUI: When started from inside gvim with ":!gvim", Vim would not
  3910. start. ":!gvim -f" works fine.
  3911. Solution: After forking, wait a moment in the parent process, to give the
  3912. child a chance to set its process group.
  3913. Files: src/gui.c
  3914. Patch 5.4.18
  3915. Problem: Python: The clear_history() function also exists in a library.
  3916. Solution: Rename clear_history() to clear_hist().
  3917. Files: src/ex_getln.c, src/eval.c, src/proto/ex_getln.pro
  3918. Patch 5.4.19
  3919. Problem: In a terminal with 25 lines, there is a more prompt after the
  3920. ATTENTION message. When hitting 'q' here the dialog prompt
  3921. doesn't appear and file loading is interrupted. (Will Day)
  3922. Solution: Don't allow quitting the printing of a message for the dialog
  3923. prompt. Added the msg_noquit_more flag for this.
  3924. Files: src/message.c
  3925. Patch 5.4.20
  3926. Problem: GTK: When starting gvim, would send escape sequences to the
  3927. terminal to switch the cursor off and on.
  3928. Solution: Don't call msg_start() if the GUI is expected to start.
  3929. Files: src/main.c
  3930. Patch 5.4.21
  3931. Problem: Motif: Toplevel menu ordering was wrong when using tear-off items.
  3932. Solution: Don't add one to the index for a toplevel menu.
  3933. Files: src/gui_motif.c
  3934. Patch 5.4.22
  3935. Problem: In Insert mode, <C-Left>, <S-Left>, <C-Right> and <S-Right> didn't
  3936. update the column used for vertical movement.
  3937. Solution: Set curwin->w_set_curswant for those commands.
  3938. Files: src/edit.c
  3939. Patch 5.4.23
  3940. Problem: When a Visual selection is lost to another program, and then the
  3941. same text is Visually selected again, the clipboard ownership
  3942. wasn't regained.
  3943. Solution: Set clipboard.vmode to NUL to force regaining the clipboard.
  3944. Files: src/normal.c
  3945. Patch 5.4.24
  3946. Problem: Encryption: When using ":r file" while 'key' has already entered,
  3947. the 'key' option would be messed up. When writing the file it
  3948. would be encrypted with an unknown key and lost! (Brad Despres)
  3949. Solution: Don't free cryptkey when it is equal to the 'key' option.
  3950. Files: src/fileio.c
  3951. Patch 5.4.25
  3952. Problem: When 'cindent' is set, but 'autoindent' isn't, comments are not
  3953. properly indented when starting a new line. (Mitterand)
  3954. Solution: When there is a comment leader for the new line, but 'autoindent'
  3955. isn't set, do C-indenting.
  3956. Files: src/misc1.c
  3957. Patch 5.4.26
  3958. Problem: Multi-byte: a multibyte character is never recognized in a file
  3959. name, causing a backslash before it to be removed on Windows.
  3960. Solution: Assume that a leading-byte character is a file name character in
  3961. vim_isfilec().
  3962. Files: src/charset.c
  3963. Patch 5.4.27
  3964. Problem: Entries in the PopUp[nvic] menus were added for several modes, but
  3965. only deleted for the mode they were used for. This resulted in
  3966. the entry remaining in the PopUp menu.
  3967. When removing a PopUp[nvic] menu, the name had been truncated,
  3968. could result in greying-out the whole PopUp menu.
  3969. Solution: Remove entries for all modes from the PopUp[nvic] menus. Remove
  3970. the PopUp[nvic] menu entries first, before the name is changed.
  3971. Files: src/menu.c
  3972. Patch 5.4.28
  3973. Problem: When using a BufWritePre autocommand to change 'fileformat', the
  3974. new value would not be used for writing the file.
  3975. Solution: Check 'fileformat' after executing the autocommands instead of
  3976. before.
  3977. Files: src/fileio.c
  3978. Patch 5.4.29
  3979. Problem: Athena GUI: When removing the 'g' flag from 'guioptions', using a
  3980. menu can result in a crash.
  3981. Solution: Always grey-out menus for Athena, don't hide them.
  3982. Files: src/menu.c
  3983. Patch 5.4.30
  3984. Problem: BeOS: Suspending Vim with CTRL-Z didn't work (killed Vim). The
  3985. first character typed after ":sh" goes to Vim, instead of the
  3986. started shell.
  3987. Solution: Don't suspend Vim, start a new shell. Kill the async read thread
  3988. when starting a new shell. It will be restarted later. (Will Day)
  3989. Files: src/os_unix.c, src/ui.c
  3990. Patch 5.4.31
  3991. Problem: GUI: When 'mousefocus' is set, moving the mouse over where a
  3992. window boundary was, causes a hit-enter prompt to be finished.
  3993. (Jeff Walker)
  3994. Solution: Don't use 'mousefocus' at the hit-enter prompt. Also ignore it
  3995. for the more prompt and a few other situations. When an operator
  3996. is pending, abort it first.
  3997. Files: src/gui.c
  3998. Patch 5.4.32
  3999. Problem: Unix: $LDFLAGS was not passed to configure.
  4000. Solution: Pass $LDFLAGS to configure just like $CFLAGS. (Jon Miner)
  4001. Files: src/Makefile
  4002. Patch 5.4.33
  4003. Problem: Unix: After expanding an environment variable with the shell, the
  4004. next expansion would also use the shell, even though it is not
  4005. needed.
  4006. Solution: Reset "recursive" before returning from gen_expand_wildcards().
  4007. Files: src/misc1.c
  4008. Patch 5.4.34 (also see 5.4.x5)
  4009. Problem: When editing a file, and the file name is relative to a directory
  4010. above the current directory, the file name was made absolute.
  4011. (Gregory Margo)
  4012. Solution: Add an argument to shorten_fnames() which indicates if all file
  4013. names should be shortened, or only absolute names. In main() only
  4014. use shorten_fnames() to shorten absolute names.
  4015. Files: src/ex_docmd.c, src/fileio.c, src/main.c, src/proto/fileio.pro
  4016. Patch 5.4.35
  4017. Problem: There is no function to get the current file size.
  4018. Solution: Allow using line2byte() with the number of lines in the file plus
  4019. one. This returns the offset of the line past the end of the
  4020. file, which is the file size plus one.
  4021. Files: src/eval.c, runtime/doc/eval.txt
  4022. Patch 5.4.36
  4023. Problem: Comparing strings while ignoring case didn't work correctly for
  4024. some machines. (Mide Steed)
  4025. Solution: vim_stricmp() and vim_strnicmp() only returned 0 or 1. Changed
  4026. them to return -1 when the first argument is smaller.
  4027. Files: src/misc2.c
  4028. Patch 5.4.37 (also see 5.4.40 and 5.4.43)
  4029. Problem: Long strings from the viminfo file are truncated.
  4030. Solution: When writing a long string to the viminfo file, first write a line
  4031. with the length, then the string itself in a second line.
  4032. Files: src/eval.c, src/ex_cmds.c, src/ex_getln.c, src/mark.c, src/ops.c,
  4033. src/search.c, src/proto/ex_cmds.pro, runtime/syntax/viminfo.vim
  4034. Patch 5.4.38
  4035. Problem: In the option-window, ":set go&" resulted in 'go' being handled
  4036. like a boolean option.
  4037. Mappings for <Space> and <CR> were overruled by the option-window.
  4038. Solution: When the value of an option isn't 0 or 1, don't handle it like a
  4039. boolean option.
  4040. Save and restore mappings for <Space> and <CR> when entering and
  4041. leaving the option-window.
  4042. Files: runtime/optwin.vim
  4043. Patch 5.4.39
  4044. Problem: When setting a hidden option, spaces before the equal sign were
  4045. not skipped and cause an error message. E.g., ":set csprg =cmd".
  4046. Solution: When skipping over a hidden option, check for a following "=val"
  4047. and skip it too.
  4048. Files: src/option.c
  4049. Patch 5.4.40 (depends on 5.4.37)
  4050. Problem: Compiler error for "atol(p + 1)". (Axel Kielhorn)
  4051. Solution: Add a typecast: "atol((char *)p + 1)".
  4052. Files: src/ex_cmds.c
  4053. Patch 5.4.41
  4054. Problem: Some commands that were not included would give an error message,
  4055. even when after "if 0".
  4056. Solution: Don't give an error message for an unsupported command when not
  4057. executing the command.
  4058. Files: src/ex_docmd.c
  4059. Patch 5.4.42
  4060. Problem: ":w" would also cause a truncated message to appear in the message
  4061. history.
  4062. Solution: Don't put a kept message in the message history when it starts
  4063. with "<".
  4064. Files: src/message.c
  4065. Patch 5.4.43 (depends on 5.4.37)
  4066. Problem: Mixing long lines with multiple lines in a register causes errors
  4067. when writing the viminfo file. (Robinson)
  4068. Solution: When reading the viminfo file to skip register contents, skip
  4069. lines that start with "<".
  4070. Files: src/ops.c
  4071. Patch 5.4.44
  4072. Problem: When 'whichwrap' includes '~', a "~" command that goes on to the
  4073. next line cannot be properly undone. (Zellner)
  4074. Solution: Save each line for undo in n_swapchar().
  4075. Files: src/normal.c
  4076. Patch 5.4.45 (also see 5.4.x8)
  4077. Problem: When expand("$ASDF") fails, there is an error message.
  4078. Solution: Remove the global expand_interactively. Pass a flag down to skip
  4079. the error message.
  4080. Also: expand("$ASDF") returns an empty string if $ASDF isn't set.
  4081. Previously it returned "$ASDF" when 'shell' is "sh".
  4082. Also: system() doesn't print an error when the command returns an
  4083. error code.
  4084. Files: many
  4085. Patch 5.4.46
  4086. Problem: Backspacing did not always use 'softtabstop' after hitting <CR>,
  4087. inserting a register, moving the cursor, etc.
  4088. Solution: Reset inserted_space much more often in edit().
  4089. Files: src/edit.c
  4090. Patch 5.4.47
  4091. Problem: When executing BufWritePre or BufWritePost autocommands for a
  4092. hidden buffer, the cursor could be moved to a non-existing
  4093. position. (Vince Negri)
  4094. Solution: Save and restore the cursor and topline for the current window
  4095. when it is going to be used to execute autocommands for a hidden
  4096. buffer. Use an existing window for the buffer when it's not
  4097. hidden.
  4098. Files: src/fileio.c
  4099. Patch 5.4.48
  4100. Problem: A paste with the mouse in Insert mode was not repeated exactly the
  4101. same with ".". For example, when 'autoindent' is set and pasting
  4102. text with leading indent. (Perry)
  4103. Solution: Add the CTRL-R CTRL-O r and CTRL-R CTRL-P r commands in Insert
  4104. mode, which insert the contents of a register literally.
  4105. Files: src/edit.c, src/normal.c, runtime/doc/insert.txt
  4106. Patch 5.4.49
  4107. Problem: When pasting text with [ <MiddleMouse>, the cursor could end up
  4108. after the last character of the line.
  4109. Solution: Correct the cursor position for the change in indent.
  4110. Files: src/ops.c
  4111. Patch 5.4.x1 (note: Replaces patch 5.4.9)
  4112. Problem: Win32 GUI: menu hints were never used, because WANT_MENU is not
  4113. defined until vim.h is included.
  4114. Solution: Move the #ifdef WANT_MENU from where MENUHINTS is defined to where
  4115. it is used.
  4116. Files: src/gui_w32.c
  4117. Patch 5.4.x2
  4118. Problem: BeOS: When pasting text, one character was moved to the end.
  4119. Solution: Re-enable the BeOS code in fill_input_buf(), and fix timing out
  4120. with acquire_sem_etc(). (Will Day)
  4121. Files: src/os_beos.c, src/ui.c
  4122. Patch 5.4.x3
  4123. Problem: Win32 GUI: When dropping a directory on a running gvim it crashes.
  4124. Solution: Avoid using a NULL file name. Also display a message to indicate
  4125. that the current directory was changed.
  4126. Files: src/gui_w32.c
  4127. Patch 5.4.x4
  4128. Problem: Win32 GUI: Removing an item from the popup menu doesn't work.
  4129. Solution: Don't remove the item from the menubar, but from the parent popup
  4130. menu.
  4131. Files: src/gui_w32.c
  4132. Patch 5.4.x5 (addition to 5.4.34)
  4133. Files: src/gui_w32.c
  4134. Patch 5.4.x6
  4135. Problem: Win32: Expanding (dir)name starting with a dot doesn't work.
  4136. (McCormack) Only when there is a path before it.
  4137. Solution: Fix the check, done before expansion, if the file name pattern
  4138. starts with a dot.
  4139. Files: src/os_win32.c
  4140. Patch 5.4.x7
  4141. Problem: Win32 GUI: Removing "Edit with Vim" from registry is difficult.
  4142. Solution: Add uninstall program to remove the registry keys. It is installed
  4143. in the "Add/Remove programs" list for ease of use.
  4144. Also: don't set $VIM when the executable is with the runtime files.
  4145. Also: Add a text file with a step-by-step description of how to
  4146. uninstall Vim for DOS and Windows.
  4147. Files: src/uninstal.c, src/dosinst.c, src/Makefile.w32, uninstal.txt
  4148. Patch 5.4.x8 (addition to 5.4.45)
  4149. Files: many
  4150. Patch 5.4.x9
  4151. Problem: Win32 GUI: After executing an external command, focus is not
  4152. always regained (when using focus-follows-mouse).
  4153. Solution: Add SetFocus() in mch_system(). (Mike Steed)
  4154. Files: src/os_win32.c
  4155. Patch 5.5a.1
  4156. Problem: ":let @* = @:" did not work. The text was not put on the
  4157. I clipboard. (Fisher)
  4158. Solution: Own the clipboard and put the text on it.
  4159. Files: src/ops.c
  4160. Patch 5.5a.2
  4161. Problem: append() did not mark the buffer modified. Marks below the
  4162. new line were not adjusted.
  4163. Solution: Fix the f_append() function.
  4164. Files: src/eval.c
  4165. Patch 5.5a.3
  4166. Problem: Editing compressed ".gz" files doesn't work on non-Unix systems,
  4167. because there is no "mv" command.
  4168. Solution: Add the rename() function and use it instead of ":!mv".
  4169. Also: Disable the automatic jump to the last position, because it
  4170. changes the jumplist.
  4171. Files: src/eval.c, runtime/doc/eval.txt, runtime/vimrc_example.vim
  4172. Patch 5.5a.4
  4173. Problem: When using whole-line completion in insert mode while the cursor
  4174. is in the indent, get "out of memory" error. (Stekrt)
  4175. Solution: Don't allocate a negative amount of memory in ins_complete().
  4176. Files: src/edit.c
  4177. Patch 5.5a.5
  4178. Problem: Win32: The 'path' option can hold only up to 256 characters,
  4179. because _MAX_PATH is 256. (Robert Webb)
  4180. Solution: Use a fixed path length of 1024.
  4181. Files: src/os_win32.h
  4182. Patch 5.5a.6
  4183. Problem: Compiling with gcc on Win32, using the Unix Makefile, didn't work.
  4184. Solution: Add $(SUFFIX) to all places where an executable is used. Also
  4185. pass it to ctags. (Reynolds)
  4186. Files: src/Makefile
  4187. Patch 5.5a.7
  4188. Problem: When using "cat | vim -" in an xterm, the xterm version reply
  4189. would end up in the file.
  4190. Solution: Read the file from stdin before switching the terminal to RAW
  4191. mode. Should also avoid problems with programs that use a
  4192. specific terminal setting.
  4193. Also: when using the GUI, print "Reading from stdin..." in the GUI
  4194. window, to give a hint why it doesn't do anything.
  4195. Files: src/main.c, src/fileio.c
  4196. Patch 5.5a.8
  4197. Problem: On multi-threaded Solaris, suspending doesn't work.
  4198. Solution: Call pause() when the SIGCONT signal was not received after
  4199. sending the SIGTSTP signal. (Nagano)
  4200. Files: src/os_unix.c
  4201. Patch 5.5a.9
  4202. Problem: 'winaltkeys' could be set to an empty argument, which is illegal.
  4203. Solution: Give an error message when doing ":set winaltkeys=".
  4204. Files: src/option.c
  4205. Patch 5.5a.10
  4206. Problem: Win32 console: Using ALTGR on a German keyboard to produce "}"
  4207. doesn't work, because the 8th bit is set when ALT is pressed.
  4208. Solution: Don't set the 8th bit when ALT and CTRL are used. (Leipert)
  4209. Files: src/os_win32.c
  4210. Patch 5.5a.11
  4211. Problem: Tcl: Configure always uses tclsh8.0.
  4212. Also: Loading a library doesn't work.
  4213. Solution: Add "--with-tclsh" configure argument to allow specifying another
  4214. name for the tcl shell.
  4215. Call Tcl_Init() in tclinit() to make loading libraries work.
  4216. (Johannes Zellner)
  4217. Files: src/configure.in, src/configure, src/if_tcl.c
  4218. Patch 5.5a.12
  4219. Problem: The "user_commands" feature is called "user-commands".
  4220. Solution: Replace "user-commands" with "user_commands". (Kim Sung-bom)
  4221. Keep "user-commands" for the has() function, to remain backwards
  4222. compatible with 5.4.
  4223. Files: src/eval.c, src/version.c
  4224. Patch 5.5a.13
  4225. Problem: OS/2: When $HOME is not defined, "C:/" is used for the viminfo
  4226. file. That is very wrong when OS/2 is on another partition.
  4227. Solution: Use $VIM for the viminfo file when it is defined, like for MSDOS.
  4228. Also: Makefile.os2 didn't depend on os_unix.h.
  4229. Files: src/os_unix.h, src/Makefile.os2
  4230. Patch 5.5a.14
  4231. Problem: Athena, Motif and GTK: The Mouse scroll wheel doesn't work.
  4232. Solution: Interpret a click of the wheel as a key press of the <MouseDown>
  4233. or <MouseUp> keys. Default behavior is to scroll three lines, or
  4234. a full page when Shift is used.
  4235. Files: src/edit.c, src/ex_getln.c, src/gui.c, src/gui_gtk_x11.c,
  4236. src/gui_x11.c, src/keymap.h, src/message.c, src/misc1.c,
  4237. src/misc2.c, src/normal.c, src/proto/normal.pro, src/vim.h,
  4238. runtime/doc/scroll.txt
  4239. Patch 5.5a.15
  4240. Problem: Using CTRL-A in Insert mode doesn't work correctly when the insert
  4241. started with the <Insert> key. (Andreas Rohrschneider)
  4242. Solution: Replace <Insert> with "i" before setting up the redo buffer.
  4243. Files: src/normal.c
  4244. Patch 5.5a.16
  4245. Problem: VMS: GUI does not compile and run.
  4246. Solution: Various fixes. (Zoltan Arpadffy)
  4247. Moved functions from os_unix.c to ui.c, so that VMS can use them
  4248. too: open_app_context(), x11_setup_atoms() and clip_x11* functions.
  4249. Made xterm_dpy global, it's now used by ui.c and os_unix.c.
  4250. Use gethostname() always, sys_hostname doesn't exist.
  4251. Files: src/globals.h, src/gui_x11.c, src/os_vms.mms, src/os_unix.c,
  4252. src/os_vms.c, src/ui.c, src/proto/os_unix.pro, src/proto/ui.pro
  4253. Renamed AdjustCursorForMultiByteCharacter() to AdjustCursorForMultiByteChar()
  4254. to avoid symbol length limit of 31 characters. (Steve P. Wall)
  4255. Patch 5.5b.1
  4256. Problem: SASC complains about dead assignments and implicit type casts.
  4257. Solution: Removed the dead assignments. Added explicit type casts.
  4258. Files: src/buffer.c, src/edit.c, src/eval.c, src/ex_cmds.c,
  4259. src/ex_getln.c, src/fileio.c, src/getchar.c, src/memline.c,
  4260. src/menu.c, src/misc1.c, src/normal.c, src/ops.c, src/quickfix.c,
  4261. src/screen.c
  4262. Patch 5.5b.2
  4263. Problem: When using "CTRL-O O" in Insert mode, hit <Esc> and then "o" in
  4264. another line truncates that line. (Devin Weaver)
  4265. Solution: When using a command that starts Insert mode from CTRL-O, reset
  4266. "restart_edit" first. This avoids that edit() is called with a
  4267. mix of starting a new edit command and restarting a previous one.
  4268. Files: src/normal.c
  4269. ==============================================================================
  4270. VERSION 5.6 *version-5.6*
  4271. Version 5.6 is a bug-fix version of 5.5.
  4272. Changed *changed-5.6*
  4273. -------
  4274. Small changes to OleVim files. (Christian Schaller)
  4275. Inserted "/**/" between patch numbers in src/version.c. This allows for one
  4276. line of context, which some versions of patch need.
  4277. Reordered the Syntax menu to avoid long submenus. Removed keyboard shortcuts
  4278. for alphabetical items to avoid a clash with fixed items.
  4279. Added *added-5.6*
  4280. -----
  4281. Included Exuberant Ctags version 3.4. (Darren Hiebert)
  4282. OpenWithVim in Python. (Christian Schaller)
  4283. Win32 GUI: gvimext.dll, for the context menu "Edit with Vim" entry. Avoids
  4284. the reported problems with the MS Office taskbar. Now it's a Shell Extension.
  4285. (Tianmiao Hu)
  4286. New syntax files:
  4287. abel Abel (John Cook)
  4288. aml Arc Macro Language (Nikki Knuit)
  4289. apachestyle Apache-style config file (Christian Hammers)
  4290. cf Cold Fusion (Jeff Lanzarotta)
  4291. ctrlh files with CTRL-H sequences (Bram Moolenaar)
  4292. cupl CUPL (John Cook)
  4293. cuplsim CUPL simulation (John Cook)
  4294. erlang Erlang (Kresimir Marzic)
  4295. gedcom Gedcom (Paul Johnson)
  4296. icon Icon (Wendell Turner)
  4297. ist MakeIndex style (Peter Meszaros)
  4298. jsp Java Server Pages (Rafael Garcia-Suarez)
  4299. rcslog Rcslog (Joe Karthauser)
  4300. remind Remind (Davide Alberani)
  4301. sqr Structured Query Report Writer (Paul Moore)
  4302. tads TADS (Amir Karger)
  4303. texinfo Texinfo (Sandor Kopanyi)
  4304. xpm2 X Pixmap v2 (Steve Wall)
  4305. The 'C' flag in 'cpoptions' can be used to switch off concatenation for
  4306. sourced lines. See patch 5.5.013 below. |line-continuation|
  4307. "excludenl" argument for the ":syntax" command. See patch 5.5.032 below.
  4308. |:syn-excludenl|
  4309. Implemented |z+| and |z^| commands. See patch 5.5.050 below.
  4310. Vim logo in Corel Draw format. Can be scaled to any resolution.
  4311. Fixed *fixed-5.6*
  4312. -----
  4313. Using this mapping in Select mode, terminated completion:
  4314. ":vnoremap <C-N> <Esc>a<C-N>" (Benji Fisher)
  4315. Ignore K_SELECT in ins_compl_prep().
  4316. VMS (Zoltan Arpadffy, David Elins):
  4317. - ioctl() in pty.c caused trouble, #ifndef VMS added.
  4318. - Cut & paste mismatch corrected.
  4319. - Popup menu line crash corrected. (Patch 5.5.047)
  4320. - Motif directories during open and save as corrected.
  4321. - Handle full file names with version numbers. (Patch 5.5.046)
  4322. - Directory handling (CD command etc.)
  4323. - Corrected file name conversion VMS to Unix and v.v.
  4324. - Recovery was not working.
  4325. - Terminal and signal handling was outdated compared to os_unix.c.
  4326. - Improved os_vms.txt.
  4327. Configure used fprintf() instead of printf() to check for __DATE__ and
  4328. __TIME__. (John Card II)
  4329. BeOS: Adjust computing the char_height and char_ascent. Round them up
  4330. separately, avoids redrawing artifacts. (Mike Steed)
  4331. Fix a few multibyte problems in menu_name_skip(), set_reg_ic(), searchc() and
  4332. findmatchlimit(). (Taro Muraoka)
  4333. GTK GUI:
  4334. - With GTK 1.2.5 and later the scrollbars were not redrawn correctly.
  4335. - Adjusted the gtk_form_draw() function.
  4336. - SNiFF connection didn't work.
  4337. - 'mousefocus' was not working. (Dalecki)
  4338. - Some keys were not working with modifiers: Shift-Tab, Ctrl-Space and CTRL-@.
  4339. Patch 5.5.001
  4340. Problem: Configure in the top directory did not pass on an argument with a
  4341. space correctly. For example "./configure --previs="/My home".
  4342. (Stephane Chazelas)
  4343. Solution: Use '"$@"' instead of '$*' to pass on the arguments.
  4344. Files: configure
  4345. Patch 5.5.002
  4346. Problem: Compilation error for using "fds[] & POLLIN". (Jeff Walker)
  4347. Solution: Use "fds[].revents & POLLIN".
  4348. Files: src/os_unix.c
  4349. Patch 5.5.003
  4350. Problem: The autoconf check for sizeof(int) is wrong on machines where
  4351. sizeof(size_t) != sizeof(int).
  4352. Solution: Use our own configure check. Also fixes the warning for
  4353. cross-compiling.
  4354. Files: src/configure.in, src/configure
  4355. Patch 5.5.004
  4356. Problem: On Unix it's not possible to interrupt ":sleep 100".
  4357. Solution: Switch terminal to cooked mode while asleep, to allow a SIGINT to
  4358. wake us up. But switch off echo, added TMODE_SLEEP.
  4359. Files: src/term.h, src/os_unix.c
  4360. Patch 5.5.005
  4361. Problem: When using <f-args> with a user command, an empty argument to the
  4362. command resulted in one empty string, while no string was
  4363. expected.
  4364. Solution: Catch an empty argument and pass no argument to the function.
  4365. (Paul Moore)
  4366. Files: src/ex_docmd.c
  4367. Patch 5.5.006
  4368. Problem: Python: When platform-dependent files are in another directory
  4369. than the platform-independent files it doesn't work.
  4370. Solution: Also check the executable directory, and add it to CFLAGS. (Tessa
  4371. Lau)
  4372. Files: src/configure.in, src/configure
  4373. Patch 5.5.007 (extra)
  4374. Problem: Win32 OLE: Occasional crash when exiting while still being used
  4375. via OLE.
  4376. Solution: Move OleUninitialize() to before deleting the application object.
  4377. (Vince Negri)
  4378. Files: src/if_ole.cpp
  4379. Patch 5.5.008
  4380. Problem: 10000@@ takes a long time and cannot be interrupted.
  4381. Solution: Check for CTRL-C typed while in the loop to push the register.
  4382. Files: src/normal.c
  4383. Patch 5.5.009
  4384. Problem: Recent Sequent machines don't link with "-linet". (Kurtis Rader)
  4385. Solution: Remove configure check for Sequent.
  4386. Files: src/configure.in, src/configure
  4387. Patch 5.5.010
  4388. Problem: Ctags freed a memory block twice when exiting. When out of
  4389. memory, a misleading error message was given.
  4390. Solution: Update to ctags 3.3.2. Also fixes a few other problems. (Darren
  4391. Hiebert)
  4392. Files: src/ctags/*
  4393. Patch 5.5.011
  4394. Problem: After "CTRL-V s", the cursor jumps back to the start, while all
  4395. other operators leave the cursor on the last changed character.
  4396. (Xiangjiang Ma)
  4397. Solution: Position cursor on last changed character, if possible.
  4398. Files: src/ops.c
  4399. Patch 5.5.012
  4400. Problem: Using CTRL-] in Visual mode doesn't work when the text includes a
  4401. space (just where it's useful). (Stefan Bittner)
  4402. Solution: Don't escape special characters in a tag name with a backslash.
  4403. Files: src/normal.c
  4404. Patch 5.5.013
  4405. Problem: The ":append" and ":insert" commands allow using a leading
  4406. backslash in a line. The ":source" command concatenates those
  4407. lines. (Heinlein)
  4408. Solution: Add the 'C' flag in 'cpoptions' to switch off concatenation.
  4409. Files: src/ex_docmd.c, src/option.h, runtime/doc/options.txt,
  4410. runtime/filetype.vim, runtime/scripts.vim
  4411. Patch 5.5.014
  4412. Problem: When executing a register with ":@", the ":append" command would
  4413. get text lines with a ':' prepended. (Heinlein)
  4414. Solution: Remove the ':' characters.
  4415. Files: src/ex_docmd.c, src/ex_getln.c, src/globals.h
  4416. Patch 5.5.015
  4417. Problem: When using ":g/pat/p", it's hard to see where the output starts,
  4418. the ":g" command is overwritten. Vi keeps the ":g" command.
  4419. Solution: Keep the ":g" command, but allow overwriting it with the report
  4420. for the number of changes.
  4421. Files: src/ex_cmds.c
  4422. Patch 5.5.016 (extra)
  4423. Problem: Win32: Using regedit to install Vim in the popup menu requires the
  4424. user to confirm this in a dialog.
  4425. Solution: Use "regedit /s" to avoid the dialog
  4426. Files: src/dosinst.c
  4427. Patch 5.5.017
  4428. Problem: If an error occurs when closing the current window, Vim could get
  4429. stuck in the error handling.
  4430. Solution: Don't set curwin to NULL when closing the current window.
  4431. Files: src/window.c
  4432. Patch 5.5.018
  4433. Problem: Absolute paths in shell scripts do not always work.
  4434. Solution: Use /usr/bin/env to find out the path.
  4435. Files: runtime/doc/vim2html.pl, runtime/tools/efm_filter.pl,
  4436. runtime/tools/shtags.pl
  4437. Patch 5.5.019
  4438. Problem: A function call in 'statusline' stops using ":q" twice from
  4439. exiting, when the last argument hasn't been edited.
  4440. Solution: Don't decrement quitmore when executing a function. (Madsen)
  4441. Files: src/ex_docmd.c
  4442. Patch 5.5.020
  4443. Problem: When the output of CTRL-D completion in the commandline goes all
  4444. the way to the last column, there is an empty line.
  4445. Solution: Don't add a newline when the cursor wrapped already. (Madsen)
  4446. Files: src/ex_getln.c
  4447. Patch 5.5.021
  4448. Problem: When checking if a file name in the tags file is relative,
  4449. environment variables were not expanded.
  4450. Solution: Expand the file name before checking if it is relative. (Madsen)
  4451. Files: src/tag.c
  4452. Patch 5.5.022
  4453. Problem: When setting or resetting 'paste' the ruler wasn't updated.
  4454. Solution: Update the status lines when 'ruler' changes because of 'paste'.
  4455. Files: src/option.c
  4456. Patch 5.5.023
  4457. Problem: When editing a new file and autocommands change the cursor
  4458. position, the cursor was moved back to the first non-white, unless
  4459. 'startofline' was reset.
  4460. Solution: Keep the new column, just like the line number.
  4461. Files: src/ex_cmds.c
  4462. Patch 5.5.024 (extra)
  4463. Problem: Win32 GUI: When using confirm() to put up a dialog without a
  4464. default button, the dialog would not have keyboard focus.
  4465. (Krishna)
  4466. Solution: Always set focus to the dialog window. Only set focus to a button
  4467. when a default one is specified.
  4468. Files: src/gui_w32.c
  4469. Patch 5.5.025
  4470. Problem: When using "keepend" in a syntax region, a contained match that
  4471. includes the end-of-line could still force that region to
  4472. continue, if there is another contained match in between.
  4473. Solution: Check the keepend_level in check_state_ends().
  4474. Files: src/syntax.c
  4475. Patch 5.5.026
  4476. Problem: When starting Vim in a white-on-black xterm, with 'bg' set to
  4477. "dark", and then starting the GUI with ":gui", setting 'bg' to
  4478. "light" in the gvimrc, the highlighting isn't set. (Tsjokwing)
  4479. Solution: Set the highlighting when 'bg' is changed in the gvimrc, even
  4480. though full_screen isn't set.
  4481. Files: src/option.c
  4482. Patch 5.5.027
  4483. Problem: Unix: os_unix.c doesn't compile when XTERM_CLIP is used but
  4484. WANT_TITLE isn't. (Barnum)
  4485. Solution: Move a few functions that are used by the X11 title and clipboard
  4486. and put another "#if" around it.
  4487. Files: src/os_unix.c
  4488. Patch 5.5.028 (extra)
  4489. Problem: Win32 GUI: When a file is dropped on Win32 gvim while at the ":"
  4490. prompt, the file is edited but the command line is actually still
  4491. there, the cursor goes back to command line on the next command.
  4492. (Krishna)
  4493. Solution: When dropping a file or directory on gvim while at the ":" prompt,
  4494. insert the name of the file/directory. Allows using the
  4495. file/directory name for any Ex command.
  4496. Files: src/gui_w32.c
  4497. Patch 5.5.029
  4498. Problem: "das" at the end of the file didn't delete the last character of
  4499. the sentence.
  4500. Solution: When there is no character after the sentence, make the operation
  4501. inclusive in current_sent().
  4502. Files: src/search.c
  4503. Patch 5.5.030
  4504. Problem: Unix: in os_unix.c, "term_str" is used, which is also defined in
  4505. vim.h as a macro. (wuxin)
  4506. Solution: Renamed "term_str" to "buf" in do_xterm_trace().
  4507. Files: src/os_unix.c
  4508. Patch 5.5.031 (extra)
  4509. Problem: Win32 GUI: When exiting Windows, gvim will leave swap files behind
  4510. and will be killed ungracefully. (Krishna)
  4511. Solution: Catch the WM_QUERYENDSESSION and WM_ENDSESSION messages and try to
  4512. exit gracefully. Allow the user to cancel the shutdown if there
  4513. is a changed buffer.
  4514. Files: src/gui_w32.c
  4515. Patch 5.5.032
  4516. Problem: Patch 5.5.025 wasn't right. And C highlighting was still not
  4517. working correctly for a #define.
  4518. Solution: Added "excludenl" argument to ":syntax", to be able not to extend
  4519. a containing item when there is a match with the end-of-line.
  4520. Files: src/syntax.c, runtime/doc/syntax.txt, runtime/syntax/c.vim
  4521. Patch 5.5.033
  4522. Problem: When reading from stdin, a long line in viminfo would mess up the
  4523. file message. readfile() uses IObuff for keep_msg, which could be
  4524. overwritten by anyone.
  4525. Solution: Copy the message from IObuff to msg_buf and set keep_msg to that.
  4526. Also change vim_fgets() to not use IObuff any longer.
  4527. Files: src/fileio.c
  4528. Patch 5.5.034
  4529. Problem: "gvim -rv" caused a crash. Using 't_Co' before it's set.
  4530. Solution: Don't try to initialize the highlighting before it has been
  4531. initialized from main().
  4532. Files: src/syntax.c
  4533. Patch 5.5.035
  4534. Problem: GTK with XIM: Resizing with status area was messy, and
  4535. ":set guioptions+=b" didn't work.
  4536. Solution: Make status area a separate widget, but not a separate window.
  4537. (Chi-Deok Hwang)
  4538. Files: src/gui_gtk_f.c, src/gui_gtk_x11.c, src/multbyte.c
  4539. Patch 5.5.036
  4540. Problem: The GZIP_read() function in $VIMRUNTIME/vimrc_example.vim to
  4541. uncompress a file did not do detection for 'fileformat'. This is
  4542. because the filtering is done with 'binary' set.
  4543. Solution: Split the filtering into separate write, filter and read commands.
  4544. Files: runtime/vimrc_example.vim
  4545. Patch 5.5.037
  4546. Problem: The "U" command didn't mark the buffer as changed. (McCormack)
  4547. Solution: Set the 'modified' flag when using "U".
  4548. Files: src/undo.c
  4549. Patch 5.5.038
  4550. Problem: When typing a long ":" command, so that the screen scrolls up,
  4551. causes the hit-enter prompt, even though the user just typed
  4552. return to execute the command.
  4553. Solution: Reset need_wait_return if (part of) the command was typed in
  4554. getcmdline().
  4555. Files: src/ex_getln.c
  4556. Patch 5.5.039
  4557. Problem: When using a custom status line, "%a" (file # of #) reports the
  4558. index of the current window for all windows.
  4559. Solution: Pass a window pointer to append_arg_number(), and pass the window
  4560. being updated from build_stl_str_hl(). (Stephen P. Wall)
  4561. Files: src/buffer.c, src/screen.c, src/proto/buffer.pro
  4562. Patch 5.5.040
  4563. Problem: Multi-byte: When there is some error in xim_real_init(), it can
  4564. close XIM and return. After this there can be a segv.
  4565. Solution: Test "xic" for being non-NULL, don't set "xim" to NULL. Also try
  4566. to find more matches for supported styles. (Sung-Hyun Nam)
  4567. Files: src/multbyte.c
  4568. Patch 5.5.041
  4569. Problem: X11 GUI: CTRL-_ requires the SHIFT key only on some machines.
  4570. Solution: Translate CTRL-- to CTRL-_. (Robert Webb)
  4571. Files: src/gui_x11.c
  4572. Patch 5.5.042
  4573. Problem: X11 GUI: keys with ALT were assumed to be used for the menu, even
  4574. when the menu has been disabled by removing 'm' from 'guioptions'.
  4575. Solution: Ignore keys with ALT only when gui.menu_is_active is set. (Raf)
  4576. Files: src/gui_x11.c
  4577. Patch 5.5.043
  4578. Problem: GTK: Handling of fontset fonts was not right when 'guifontset'
  4579. contains exactly 14 times '-'.
  4580. Solution: Avoid setting fonts when working with a fontset. (Sung-Hyun Nam)
  4581. Files: src/gui_gtk_x11.c
  4582. Patch 5.5.044
  4583. Problem: pltags.pl contains an absolute path "/usr/local/bin/perl". That
  4584. might not work everywhere.
  4585. Solution: Use "/usr/bin/env perl" instead.
  4586. Files: runtime/tools/pltags.pl
  4587. Patch 5.5.045
  4588. Problem: Using "this_session" variable does not work, requires preceding it
  4589. with "v:". Default filename for ":mksession" isn't mentioned
  4590. in the docs. (Fisher)
  4591. Solution: Support using "this_session" to be backwards compatible.
  4592. Files: src/eval.c, runtime/doc/options.txt
  4593. Patch 5.5.046 (extra)
  4594. Problem: VMS: problems with path and filename.
  4595. Solution: Truncate file name at last ';', etc. (Zoltan Arpadffy)
  4596. Files: src/buffer.c, src/fileio.c, src/gui_motif.c, src/os_vms.c,
  4597. src/proto/os_vms.pro
  4598. Patch 5.5.047
  4599. Problem: VMS: Crash when using the popup menu
  4600. Solution: Turn the #define MENU_MODE_CHARS into an array. (Arpadffy)
  4601. Files: src/structs.h, src/menu.c
  4602. Patch 5.5.048
  4603. Problem: HP-UX 11: Compiling doesn't work, because both string.h and
  4604. strings.h are included. (Squassabia)
  4605. Solution: The configure test for including both string.h and strings.h
  4606. must include <Xm/Xm.h> first, because it causes problems.
  4607. Files: src/configure.in, src/configure, src/config.h.in
  4608. Patch 5.5.049
  4609. Problem: Unix: When installing Vim, the protection bits of files might be
  4610. influenced by the umask.
  4611. Solution: Add $(FILEMOD) to Makefile. (Shetye)
  4612. Files: src/Makefile
  4613. Patch 5.5.050
  4614. Problem: "z+" and "z^" commands are missing.
  4615. Solution: Implemented "z+" and "z^".
  4616. Files: src/normal.c, runtime/doc/scroll.txt, runtime/doc/index.txt
  4617. Patch 5.5.051
  4618. Problem: Several Unix systems have a problem with the optimization limits
  4619. check in configure.
  4620. Solution: Removed the configure check, let the user add it manually in
  4621. Makefile or the environment.
  4622. Files: src/configure.in, src/configure, src/Makefile
  4623. Patch 5.5.052
  4624. Problem: Crash when using a cursor key at the ATTENTION prompt. (Alberani)
  4625. Solution: Ignore special keys at the console dialog. Also ignore characters
  4626. > 255 for other uses of tolower() and toupper().
  4627. Files: src/menu.c, src/message.c, src/misc2.c
  4628. Patch 5.5.053
  4629. Problem: Indenting is wrong after a function when 'cino' has "fs". Another
  4630. problem when 'cino' has "{s".
  4631. Solution: Put line after closing "}" of a function at the left margin.
  4632. Apply ind_open_extra in the right way after a '{'.
  4633. Files: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok
  4634. Patch 5.5.054
  4635. Problem: Unix: ":e #" doesn't work if the alternate file name contains a
  4636. space or backslash. (Hudacek)
  4637. Solution: When replacing "#", "%" or other items that stand for a file name,
  4638. prepend a backslash before special characters.
  4639. Files: src/ex_docmd.c
  4640. Patch 5.5.055
  4641. Problem: Using "<C-V>$r-" in blockwise Visual mode replaces one character
  4642. beyond the end of the line. (Zivkov)
  4643. Solution: Only replace existing characters.
  4644. Files: src/ops.c
  4645. Patch 5.5.056
  4646. Problem: After "z20<CR>" messages were printed at the old command line
  4647. position once. (Veselinovic)
  4648. Solution: Set msg_row and msg_col when changing cmdline_row in
  4649. win_setheight().
  4650. Files: src/window.c
  4651. Patch 5.5.057
  4652. Problem: After "S<Esc>" it should be possible to restore the line with "U".
  4653. (Veselinovic)
  4654. Solution: Don't call u_clearline() in op_delete() when changing only one
  4655. line.
  4656. Files: src/ops.c
  4657. Patch 5.5.058
  4658. Problem: Using a long search pattern and then "n" causes the hit-enter
  4659. prompt. (Krishna)
  4660. Solution: Truncate the echoed pattern, like other messages. Moved code for
  4661. truncating from msg_attr() to msg_strtrunc().
  4662. Files: src/message.c, src/proto/message.pro, src/search.c
  4663. Patch 5.5.059
  4664. Problem: GTK GUI: When $term is invalid, using "gvim" gives an error
  4665. message, even though $term isn't really used. (Robbins)
  4666. Solution: When the GUI is about to start, skip the error messages for a
  4667. wrong $term.
  4668. Files: src/term.c
  4669. Patch 5.5.060 (extra)
  4670. Problem: Dos 32 bit: When a directory in 'backupdir' doesn't exist, ":w"
  4671. causes the file to be renamed to "axlqwqhy.ba~". (Matzdorf)
  4672. Solution: The code to work around a LFN bug in Windows 95 doesn't handle a
  4673. non-existing target name correctly. When renaming fails, make
  4674. sure the file has its original name. Also do this for the Win32
  4675. version, although it's unlikely that it runs into this problem.
  4676. Files: src/os_msdos.c, src/os_win32.c
  4677. Patch 5.5.061
  4678. Problem: When using "\:" in a modeline, the backslash is included in the
  4679. option value. (Mohsin)
  4680. Solution: Remove one backslash before the ':' in a modeline.
  4681. Files: src/buffer.c, runtime/doc/options.txt
  4682. Patch 5.5.062 (extra)
  4683. Problem: Win32 console: Temp files are created in the root of the current
  4684. drive, which may be read-only. (Peterson)
  4685. Solution: Use the same mechanism of the GUI version: Use $TMP, $TEMP or the
  4686. current directory. Cleaned up vim_tempname() a bit.
  4687. Files: src/fileio.c, src/os_win32.h, runtime/doc/os_dos.txt
  4688. Patch 5.5.063
  4689. Problem: When using whole-line completion in Insert mode, 'cindent' is
  4690. applied, even after changing the indent of the line.
  4691. Solution: Don't reindent the completed line after inserting/removing indent.
  4692. (Robert Webb)
  4693. Files: src/edit.c
  4694. Patch 5.5.064
  4695. Problem: has("sniff") doesn't work correctly.
  4696. Solution: Return 1 when Vim was compiled with the +sniff feature. (Pruemmer)
  4697. Files: src/eval.c
  4698. Patch 5.5.065
  4699. Problem: When dropping a file on Vim, the 'shellslash' option is not
  4700. effective. (Krishna)
  4701. Solution: Fix the slashes in the dropped file names according to
  4702. 'shellslash'.
  4703. Files: src/ex_docmd.c, runtime/doc/options.txt
  4704. Patch 5.5.066
  4705. Problem: For systems with backslash in file name: Setting a file name
  4706. option to a value starting with "\\machine" removed a backslash.
  4707. Solution: Keep the double backslash for "\\machine", but do change
  4708. "\\\\machine" to "\\machine" for backwards compatibility.
  4709. Files: src/option.c, runtime/doc/options.txt
  4710. Patch 5.5.067
  4711. Problem: With 'hlsearch' set, the pattern "\>" doesn't highlight the first
  4712. match in a line. (Benji Fisher)
  4713. Solution: Fix highlighting an empty match. Also highlight the first
  4714. character in an empty line for "$".
  4715. Files: src/screen.c
  4716. Patch 5.5.068
  4717. Problem: Crash when a ":while" is used with an argument that has an error.
  4718. (Sylvain Viart)
  4719. Solution: Was using an uninitialized index in the cs_line[] array. The
  4720. crash only happened when the index was far off. Made sure the
  4721. uninitialized index isn't used.
  4722. Files: src/ex_docmd.c
  4723. Patch 5.5.069
  4724. Problem: Shifting lines in blockwise Visual mode didn't set the 'modified'
  4725. flag.
  4726. Solution: Do set the 'modified' flag.
  4727. Files: src/ops.c
  4728. Patch 5.5.070
  4729. Problem: When editing a new file, creating that file outside of Vim, then
  4730. editing it again, ":w" still warns for overwriting an existing
  4731. file. (Nam)
  4732. Solution: The BF_NEW flag in the "b_flags" field wasn't cleared properly.
  4733. Files: src/buffer.c, src/fileio.c
  4734. Patch 5.5.071
  4735. Problem: Using a matchgroup in a ":syn region", which is the same syntax
  4736. group as the region, didn't stop a contained item from matching in
  4737. the start pattern.
  4738. Solution: Also push an item on the stack when the syntax ID of the
  4739. matchgroup is the same as the syntax ID of the region.
  4740. Files: src/syntax.c
  4741. Patch 5.5.072 (extra)
  4742. Problem: Dos 32 bit: When setting 'columns' to a too large value, Vim may
  4743. crash, and the DOS console too.
  4744. Solution: Check that the value of 'columns' isn't larger than the number of
  4745. columns that the BIOS reports.
  4746. Files: src/os_msdos.c, src/proto/os_msdos.pro, src/option.c
  4747. Patch 5.5.073 (extra)
  4748. Problem: Win 32 GUI: The Find and Find/Replace dialogs didn't show the
  4749. "match case" checkbox. The Find/Replace dialog didn't handle the
  4750. "match whole word" checkbox.
  4751. Solution: Support the "match case" and "match whole word" checkboxes.
  4752. Files: src/gui_w32.c
  4753. Patch 5.6a.001
  4754. Problem: Using <C-End> with a count doesn't work like it does with "G".
  4755. (Benji Fisher)
  4756. Solution: Accept a count for <C-End> and <C-Home>.
  4757. Files: src/normal.c
  4758. Patch 5.6a.002
  4759. Problem: The script for conversion to HTML was an older version.
  4760. Solution: Add support for running 2html.vim on a color terminal.
  4761. Files: runtime/syntax/2html.vim
  4762. Patch 5.6a.003
  4763. Problem: Defining a function inside a function didn't give an error
  4764. message. A missing ":endfunction" doesn't give an error message.
  4765. Solution: Allow defining a function inside a function.
  4766. Files: src/eval.c, runtime/doc/eval.txt
  4767. Patch 5.6a.004
  4768. Problem: A missing ":endwhile" or ":endif" doesn't give an error message.
  4769. (Johannes Zellner)
  4770. Solution: Check for missing ":endwhile" and ":endif" in sourced files.
  4771. Add missing ":endif" in file selection macros.
  4772. Files: src/ex_docmd.c, runtime/macros/file_select.vim
  4773. Patch 5.6a.005
  4774. Problem: 'hlsearch' was not listed alphabetically. The value of 'toolbar'
  4775. was changed when 'compatible' is set.
  4776. Solution: Moved entry of 'hlsearch' in options[] table down.
  4777. Don't reset 'toolbar' option to the default value when
  4778. 'compatible' is set.
  4779. Files: src/option.c
  4780. Patch 5.6a.006
  4781. Problem: Using a backwards range inside ":if 0" gave an error message.
  4782. Solution: Don't complain about a range when it is not going to be used.
  4783. (Stefan Roemer)
  4784. Files: src/ex_docmd.c
  4785. Patch 5.6a.007
  4786. Problem: ":let" didn't show internal Vim variables. (Ron Aaron)
  4787. Solution: Do show ":v" variables for ":let" and ":let v:name".
  4788. Files: src/eval.c
  4789. Patch 5.6a.008
  4790. Problem: Selecting a syntax from the Syntax menu gives an error message.
  4791. Solution: Replace "else if" in SetSyn() with "elseif". (Ronald Schild)
  4792. Files: runtime/menu.vim
  4793. Patch 5.6a.009
  4794. Problem: When compiling with +extra_search but without +syntax, there is a
  4795. compilation error in screen.c. (Axel Kielhorn)
  4796. Solution: Adjust the #ifdef for declaring and initializing "line" in
  4797. win_line(). Also solve compilation problem when +statusline is
  4798. used without +eval. Another one when +cmdline_compl is used
  4799. without +eval.
  4800. Files: src/screen.c, src/misc2.c
  4801. Patch 5.6a.010
  4802. Problem: In a function, ":startinsert!" does not append to the end of the
  4803. line if a ":normal" command was used to move the cursor. (Fisher)
  4804. Solution: Reset "w_set_curswant" to avoid that w_curswant is changed again.
  4805. Files: src/ex_docmd.c
  4806. Patch 5.6a.011 (depends on 5.6a.004)
  4807. Problem: A missing ":endif" or ":endwhile" in a function doesn't give an
  4808. error message.
  4809. Solution: Give that error message.
  4810. Files: src/ex_docmd.c
  4811. Patch 5.6a.012 (depends on 5.6a.008)
  4812. Problem: Some Syntax menu entries caused a hit-enter prompt.
  4813. Solution: Call a function to make the command shorter. Also rename a few
  4814. functions to avoid name clashes.
  4815. Files: runtime/menu.vim
  4816. Patch 5.6a.013
  4817. Problem: Command line completion works different when another completion
  4818. was done earlier. (Johannes Zellner)
  4819. Solution: Reset wim_index when starting a new completion.
  4820. Files: src/ex_getln.c
  4821. Patch 5.6a.014
  4822. Problem: Various warning messages when compiling and running lint with
  4823. different combinations of features.
  4824. Solution: Fix the warning messages.
  4825. Files: src/eval.c, src/ex_cmds.c, src/ex_docmd.c, src/gui_gtk_x11.c,
  4826. src/option.c, src/screen.c, src/search.c, src/syntax.c,
  4827. src/feature.h, src/globals.h
  4828. Patch 5.6a.015
  4829. Problem: The vimtutor command doesn't always know the value of $VIMRUNTIME.
  4830. Solution: Let Vim expand $VIMRUNTIME, instead of the shell.
  4831. Files: src/vimtutor
  4832. Patch 5.6a.016 (extra)
  4833. Problem: Mac: Window size is restricted when starting. Cannot drag the
  4834. window all over the desktop.
  4835. Solution: Get real screen size instead of assuming 640x400. Do not use a
  4836. fixed number for the drag limits. (Axel Kielhorn)
  4837. Files: src/gui_mac.c
  4838. Patch 5.6a.017
  4839. Problem: The "Paste" entry in popup menu for Visual, Insert and Cmdline
  4840. mode is in the wrong position. (Stol)
  4841. Solution: Add priority numbers for all Paste menu entries.
  4842. Files: runtime/menu.vim
  4843. Patch 5.6a.018
  4844. Problem: GTK GUI: submenu priority doesn't work.
  4845. Help dialog could be destroyed too soon.
  4846. When closing a dialog window (e.g. the "ATTENTION" one), Vim would
  4847. just hang.
  4848. When GTK theme is changed, Vim doesn't adjust to the new colors.
  4849. Argument for ":promptfind" isn't used.
  4850. Solution: Fixed the mentioned problems.
  4851. Made the dialogs look&feel nicer.
  4852. Moved functions to avoid the need for a forward declaration.
  4853. Fixed reentrancy of the file browser dialog.
  4854. Added drag&drop support for GNOME.
  4855. Init the text for the Find/replace dialog from the last used
  4856. search string. Set "match whole word" toggle button correctly.
  4857. Made repeat rate for drag outside of window depend on the
  4858. distance from the window. (Marcin Dalecki)
  4859. Made the drag in Visual mode actually work.
  4860. Removed recursiveness protection from gui_mch_get_rgb(), it might
  4861. cause more trouble than it solves.
  4862. Files: src/ex_docmd.c, src/gui_gtk.c, src/gui_gtk_x11.c, src/ui.c,
  4863. src/proto/ui.pro, src/misc2.c
  4864. Patch 5.6a.019
  4865. Problem: When trying to recover through NFS, which uses a large block size,
  4866. Vim might think the swap file is empty, because mf_blocknr_max is
  4867. zero. (Scott McDermott)
  4868. Solution: When computing the number of blocks of the file in mf_open(),
  4869. round up instead of down.
  4870. Files: src/memfile.c
  4871. Patch 5.6a.020
  4872. Problem: GUI GTK: Could not set display for gvim.
  4873. Solution: Add "-display" and "--display" arguments. (Marcin Dalecki)
  4874. Files: src/gui_gtk_x11.c
  4875. Patch 5.6a.021
  4876. Problem: Recovering still may not work when the block size of the device
  4877. where the swap file is located is larger than 4096.
  4878. Solution: Read block 0 with the minimal block size.
  4879. Files: src/memline.c, src/memfile.c, src/vim.h
  4880. Patch 5.6a.022 (extra)
  4881. Problem: Win32 GUI: When an error in the vimrc causes a dialog to pop up
  4882. (e.g., for an existing swap file), Vim crashes. (David Elins)
  4883. Solution: Before showing a dialog, open the main window.
  4884. Files: src/gui_w32.c
  4885. Patch 5.6a.023
  4886. Problem: Using expand("%:gs??/?") causes a crash. (Ron Aaron)
  4887. Solution: Check for running into the end of the string in do_string_sub().
  4888. Files: src/eval.c
  4889. Patch 5.6a.024
  4890. Problem: Using an autocommand to delete a buffer when leaving it can cause
  4891. a crash when jumping to a tag. (Franz Gorkotte)
  4892. Solution: In do_tag(), store tagstacklen before jumping to another buffer.
  4893. Check tagstackidx after jumping to another buffer.
  4894. Add extra check in win_split() if tagname isn't NULL.
  4895. Files: src/tag.c, src/window.c
  4896. Patch 5.6a.025 (extra)
  4897. Problem: Win32 GUI: The tables for toupper() and tolower() are initialized
  4898. too late. (Mike Steed)
  4899. Solution: Move the initialization to win32_init() and call it from main().
  4900. Files: src/main.c, src/os_w32.c, src/proto/os_w32.pro
  4901. Patch 5.6a.026
  4902. Problem: When the SNiFF connection is open, shell commands hang. (Pruemmer)
  4903. Solution: Skip a second wait() call if waitpid() already detected that the
  4904. child has exited.
  4905. Files: src/os_unix.c
  4906. Patch 5.6a.027 (extra)
  4907. Problem: Win32 GUI: The "Edit with Vim" popup menu entry causes problems
  4908. for the Office toolbar.
  4909. Solution: Use a shell extension dll. (Tianmiao Hu)
  4910. Added it to the install and uninstal programs, replaces the old
  4911. "Edit with Vim" menu registry entries.
  4912. Files: src/dosinst.c, src/uninstal.c, gvimext/*, runtime/doc/gui_w32.txt
  4913. Patch 5.6a.028 (extra)
  4914. Problem: Win32 GUI: Dialogs and tear-off menus can't handle multibyte
  4915. characters.
  4916. Solution: Adjust nCopyAnsiToWideChar() to handle multibyte characters
  4917. correctly.
  4918. Files: src/gui_w32.c
  4919. ==============================================================================
  4920. VERSION 5.7 *version-5.7*
  4921. Version 5.7 is a bug-fix version of 5.6.
  4922. Changed *changed-5.7*
  4923. -------
  4924. Renamed src/INSTALL.mac to INSTALL_mac.txt to avoid it being recognized with a
  4925. wrong file type. Also renamed src/INSTALL.amiga to INSTALL_ami.txt.
  4926. Added *added-5.7*
  4927. -----
  4928. New syntax files:
  4929. stp Stored Procedures (Jeff Lanzarotta)
  4930. snnsnet, snnspat, snnsres SNNS (Davide Alberani)
  4931. mel MEL (Robert Minsk)
  4932. ruby Ruby (Mirko Nasato)
  4933. tli TealInfo (Kurt W. Andrews)
  4934. ora Oracle config file (Sandor Kopanyi)
  4935. abaqus Abaqus (Carl Osterwisch)
  4936. jproperties Java Properties (Simon Baldwin)
  4937. apache Apache config (Allan Kelly)
  4938. csp CSP (Jan Bredereke)
  4939. samba Samba config (Rafael Garcia-Suarez)
  4940. kscript KDE script (Thomas Capricelli)
  4941. hb Hyper Builder (Alejandro Forero Cuervo)
  4942. fortran Fortran (rewritten) (Ajit J. Thakkar)
  4943. sml SML (Fabrizio Zeno Cornelli)
  4944. cvs CVS commit (Matt Dunford)
  4945. aspperl ASP Perl (Aaron Hope)
  4946. bc BC calculator (Vladimir Scholtz)
  4947. latte Latte (Nick Moffitt)
  4948. wml WML (Gerfried Fuchs)
  4949. Included Exuberant ctags 3.5.1. (Darren Hiebert)
  4950. "display" and "fold" arguments for syntax items. For future extension, they
  4951. are ignored now.
  4952. strftime() function for the Macintosh.
  4953. macros/explorer.vim: A file browser script (M A Aziz Ahmed)
  4954. Fixed *fixed-5.7*
  4955. -----
  4956. The 16 bit MS-DOS version is now compiled with Bcc 3.1 instead of 4.0. The
  4957. executable is smaller.
  4958. When a "make test" failed, the output file was lost. Rename it to
  4959. test99.failed to be able to see what went wrong.
  4960. After sourcing bugreport.vim, it's not clear that bugreport.txt has been
  4961. written in the current directory. Edit bugreport.txt to avoid that.
  4962. Adding IME support when using Makefile.w32 didn't work. (Taro Muraoka)
  4963. Win32 console: Mouse drags were passed on even when the mouse didn't move.
  4964. Perl interface: In Buffers(), type of argument to SvPV() was int, should be
  4965. STRLEN. (Tony Leneis)
  4966. Problem with prototype for index() on AIX 4.3.0. Added check for _AIX43 in
  4967. os_unix.h. (Jake Hamby)
  4968. Mappings in mswin.vim could break when some commands are mapped. Add "nore"
  4969. to most mappings to avoid re-mapping.
  4970. modify_fname() made a copy of a file name for ":p" when it already was a full
  4971. path name, which is a bit slow.
  4972. Win32 with Borland C++ 5.5: Pass the path to the compiler on to xxd and ctags,
  4973. to avoid depending on $PATH. Fixed "make clean".
  4974. Many fixes to Macintosh specific parts: (mostly by Dany StAmant)
  4975. - Only one Help menu.
  4976. - No more crash when removing a menu item.
  4977. - Support as External Editor for Codewarrior (still some little glitches).
  4978. - Popup menu support.
  4979. - Fixed crash when pasting after application switch.
  4980. - Color from rgb.txt properly displayed.
  4981. - 'isprint' default includes all chars above '~'. (Axel Kielhorn)
  4982. - mac_expandpath() was leaking memory.
  4983. - Add digraphs table. (Axel Kielhorn)
  4984. - Multi-byte support: (Kenichi Asai)
  4985. Switch keyscript when going in/out of Insert mode.
  4986. Draw multibyte character correctly.
  4987. Don't use mblen() but highest bit of char to detect multibyte char.
  4988. Display value of multibyte in statusline (also for other systems).
  4989. - mouse button was not initialized properly to MOUSE_LEFT when
  4990. USE_CTRLCLICKMENU not defined.
  4991. - With Japanese SJIS characters: Make "w", "b", and "e" work
  4992. properly. (Kenichi Asai)
  4993. - Replaced old CodeWarrior file os_mac.CW9.hqx with os_mac.cw5.sit.hqx.
  4994. Fixes for VMS: (Zoltan Arpadffy) (also see patch 5.6.045 below)
  4995. - Added Makefile_vms.mms and vimrc.vms to src/testdir to be able to run the
  4996. tests.
  4997. - Various fixes.
  4998. - Set 'undolevels' to 1000 by default.
  4999. - Made mch_settitle() equivalent to the one in os_unix.c.
  5000. RiscOS: A few prototypes for os_riscos.c were outdated. Generate prototypes
  5001. automatically.
  5002. Previously released patches:
  5003. Patch 5.6.001
  5004. Problem: When using "set bs=0 si cin", Inserting "#<BS>" or "}<BS>" which
  5005. reduces the indent doesn't delete the "#" or "}". (Lorton)
  5006. Solution: Adjust ai_col in ins_try_si().
  5007. Files: src/edit.c
  5008. Patch 5.6.002
  5009. Problem: When using the vim.vim syntax file, a comment with all uppercase
  5010. characters causes a hang.
  5011. Solution: Adjust pattern for vimCommentTitle (Charles Campbell)
  5012. Files: runtime/syntax/vim.vim
  5013. Patch 5.6.003
  5014. Problem: GTK GUI: Loading a user defined toolbar bitmap gives a warning
  5015. about the colormap. Probably because the window has not been
  5016. opened yet.
  5017. Solution: Use gdk_pixmap_colormap_create_from_xpm() to convert the xpm file.
  5018. (Keith Radebaugh)
  5019. Files: src/gui_gtk.c
  5020. Patch 5.6.004 (extra)
  5021. Problem: Win32 GUI with IME: When setting 'guifont' to "*", the font
  5022. requester appears twice.
  5023. Solution: In gui_mch_init_font() don't call get_logfont() but copy
  5024. norm_logfont from fh. (Yasuhiro Matsumoto)
  5025. Files: src/gui_w32.c
  5026. Patch 5.6.005
  5027. Problem: When 'winminheight' is zero, CTRL-W - with a big number causes a
  5028. crash. (David Kotchan)
  5029. Solution: Check for negative window height in win_setheight().
  5030. Files: src/window.c
  5031. Patch 5.6.006
  5032. Problem: GTK GUI: Bold font cannot always be used. Memory is freed too
  5033. early in gui_mch_init_font().
  5034. Solution: Move call to g_free() to after where sdup is used. (Artem Hodyush)
  5035. Files: src/gui_gtk_x11.c
  5036. Patch 5.6.007 (extra)
  5037. Problem: Win32 IME: Font is not changed when screen font is changed. And
  5038. IME composition window does not trace the cursor.
  5039. Solution: Initialize IME font. When cursor is moved, set IME composition
  5040. window with ImeSetCompositionWindow(). Add call to
  5041. ImmReleaseContext() in several places. (Taro Muraoka)
  5042. Files: src/gui.c, src/gui_w32.c, src/proto/gui_w32.pro
  5043. Patch 5.6.008 (extra)
  5044. Problem: Win32: When two files exist with the same name but different case
  5045. (through NFS or Samba), fixing the file name case could cause the
  5046. wrong one to be edited.
  5047. Solution: Prefer a perfect match above a match while ignoring case in
  5048. fname_case(). (Flemming Madsen)
  5049. Files: src/os_win32.c
  5050. Patch 5.6.009 (extra)
  5051. Problem: Win32 GUI: Garbage in Windows Explorer help line when selecting
  5052. "Edit with Vim" popup menu entry.
  5053. Solution: Only return the help line when called with the GCS_HELPTEXT flag.
  5054. (Tianmiao Hu)
  5055. Files: GvimExt/gvimext.cpp
  5056. Patch 5.6.010
  5057. Problem: A file name which contains a TAB was not read correctly from the
  5058. viminfo file and the ":ls" listing was not aligned properly.
  5059. Solution: Parse the buffer list lines in the viminfo file from the end
  5060. backwards. Count a Tab for two characters to align the ":ls" list.
  5061. Files: src/buffer.c
  5062. Patch 5.6.011
  5063. Problem: When 'columns' is huge (using a tiny font) and 'statusline' is
  5064. used, Vim can crash.
  5065. Solution: Limit maxlen to MAXPATHL in win_redr_custom(). (John Mullin)
  5066. Files: src/screen.c
  5067. Patch 5.6.012
  5068. Problem: When using "zsh" for /bin/sh, toolcheck may hang until "exit" is
  5069. typed. (Kuratczyk)
  5070. Solution: Add "-c exit" when checking for the shell version.
  5071. Files: src/toolcheck
  5072. Patch 5.6.013
  5073. Problem: Multibyte char in tooltip is broken.
  5074. Solution: Consider multibyte char in replace_termcodes(). (Taro Muraoka)
  5075. Files: src/term.c
  5076. Patch 5.6.014
  5077. Problem: When cursor is at the end of line and the character under cursor
  5078. is a multibyte character, "yl" doesn't yank 1 multibyte-char.
  5079. (Takuhiro Nishioka)
  5080. Solution: Recognize a multibyte-char at end-of-line correctly in oneright().
  5081. (Taro Muraoka)
  5082. Also: make "+quickfix" in ":version" output appear alphabetically.
  5083. Files: src/edit.c
  5084. Patch 5.6.015
  5085. Problem: New xterm delete key sends <Esc>[3~ by default.
  5086. Solution: Added <kDel> and <kIns> to make the set of keypad keys complete.
  5087. Files: src/edit.c, src/ex_getln.c, src/keymap.h, src/misc1.c,
  5088. src/misc2.c, src/normal.c, src/os_unix.c, src/term.c
  5089. Patch 5.6.016
  5090. Problem: When deleting a search string from history from inside a mapping,
  5091. another entry is deleted too. (Benji Fisher)
  5092. Solution: Reset last_maptick when deleting the last entry of the search
  5093. history. Also: Increment maptick when starting a mapping from
  5094. typed characters to avoid a just added search string being
  5095. overwritten or removed from history.
  5096. Files: src/ex_getln.c, src/getchar.c
  5097. Patch 5.6.017
  5098. Problem: ":s/e/\^M/" should replace an "e" with a CTRL-M, not split the
  5099. line. (Calder)
  5100. Solution: Replace the backslash with a CTRL-V internally. (Stephen P. Wall)
  5101. Files: src/ex_cmds.c
  5102. Patch 5.6.018
  5103. Problem: ":help [:digit:]" takes a long time to jump to the wrong place.
  5104. Solution: Insert a backslash to avoid the special meaning of '[]'.
  5105. Files: src/ex_cmds.c
  5106. Patch 5.6.019
  5107. Problem: "snd.c", "snd.java", etc. were recognized as "mail" filetype.
  5108. Solution: Make pattern for mail filetype more strict.
  5109. Files: runtime/filetype.vim
  5110. Patch 5.6.020 (extra)
  5111. Problem: The DJGPP version eats processor time (Walter Briscoe).
  5112. Solution: Call __dpmi_yield() in the busy-wait loop.
  5113. Files: src/os_msdos.c
  5114. Patch 5.6.021
  5115. Problem: When 'selection' is "exclusive", a double mouse click in Insert
  5116. mode doesn't select last char in line. (Lutz)
  5117. Solution: Allow leaving the cursor on the NUL past the line in this case.
  5118. Files: src/edit.c
  5119. Patch 5.6.022
  5120. Problem: ":e \~<Tab>" expands to ":e ~\$ceelen", which doesn't work.
  5121. Solution: Re-insert the backslash before the '~'.
  5122. Files: src/ex_getln.c
  5123. Patch 5.6.023 (extra)
  5124. Problem: Various warnings for the Ming compiler.
  5125. Solution: Changes to avoid the warnings. (Bill McCarthy)
  5126. Files: src/ex_cmds.c, src/gui_w32.c, src/os_w32exe.c, src/os_win32.c,
  5127. src/syntax.c, src/vim.rc
  5128. Patch 5.6.024 (extra)
  5129. Problem: Win32 console: Entering CTRL-_ requires the shift key. (Kotchan)
  5130. Solution: Specifically catch keycode 0xBD, like the GUI.
  5131. Files: src/os_win32.c
  5132. Patch 5.6.025
  5133. Problem: GTK GUI: Starting the GUI could be interrupted by a SIGWINCH.
  5134. (Nils Lohner)
  5135. Solution: Repeat the read() call to get the gui_in_use value when
  5136. interrupted by a signal.
  5137. Files: src/gui.c
  5138. Patch 5.6.026 (extra)
  5139. Problem: Win32 GUI: Toolbar bitmaps are searched for in
  5140. $VIMRUNTIME/bitmaps, while GTK looks in $VIM/bitmaps. (Keith
  5141. Radebaugh)
  5142. Solution: Use $VIM/bitmaps for both, because these are not part of the
  5143. distribution but defined by the user.
  5144. Files: src/gui_w32.c, runtime/doc/gui.txt
  5145. Patch 5.6.027
  5146. Problem: TCL: Crash when using a Tcl script (reported for Win32).
  5147. Solution: Call Tcl_FindExecutable() in main(). (Brent Fulgham)
  5148. Files: src/main.c
  5149. Patch 5.6.028
  5150. Problem: Xterm patch level 126 sends codes for mouse scroll wheel.
  5151. Fully works with xterm patch level 131.
  5152. Solution: Recognize the codes for button 4 (0x60) and button 5 (0x61).
  5153. Files: src/term.c
  5154. Patch 5.6.029
  5155. Problem: GTK GUI: Shortcut keys cannot be used for a dialog. (Johannes
  5156. Zellner)
  5157. Solution: Add support for shortcut keys. (Marcin Dalecki)
  5158. Files: src/gui_gtk.c
  5159. Patch 5.6.030
  5160. Problem: When closing a window and 'ea' is set, Vim can crash. (Yasuhiro
  5161. Matsumoto)
  5162. Solution: Set "curbuf" to a valid value in win_close().
  5163. Files: src/window.c
  5164. Patch 5.6.031
  5165. Problem: Multi-byte: When a double-byte character ends in CSI, Vim waits
  5166. for another character to be typed.
  5167. Solution: Recognize the CSI as the second byte of a character and don't wait
  5168. for another one. (Yasuhiro Matsumoto)
  5169. Files: src/getchar.c
  5170. Patch 5.6.032
  5171. Problem: Functions with an argument that is a line number don't all accept
  5172. ".", "$", etc. (Ralf Arens)
  5173. Solution: Add get_art_lnum() and use it for setline(), line2byte() and
  5174. synID().
  5175. Files: src/eval.c
  5176. Patch 5.6.033
  5177. Problem: Multi-byte: "f " sometimes skips to the second space. (Sung-Hyun
  5178. Nam)
  5179. Solution: Change logic in searchc() to skip trailing byte of a double-byte
  5180. character.
  5181. Also: Ask for second byte when searching for double-byte
  5182. character. (Park Chong-Dae)
  5183. Files: src/search.c
  5184. Patch 5.6.034 (extra)
  5185. Problem: Compiling with Borland C++ 5.5 fails on tolower() and toupper().
  5186. Solution: Use TO_LOWER() and TO_UPPER() instead. Also adjust the Makefile
  5187. to make using bcc 5.5 easier.
  5188. Files: src/edit.c, src/ex_docmd.c, src/misc1.c, src/Makefile.bor
  5189. Patch 5.6.035
  5190. Problem: Listing the"+comments" feature in the ":version" output depended
  5191. on the wrong ID. (Stephen P. Wall)
  5192. Solution: Change "CRYPTV" to "COMMENTS".
  5193. Files: src/version.c
  5194. Patch 5.6.036
  5195. Problem: GTK GUI: Copy/paste text doesn't work between gvim and Eterm.
  5196. Solution: Support TEXT and COMPOUND_TEXT selection targets. (ChiDeok Hwang)
  5197. Files: src/gui_gtk_x11.c
  5198. Patch 5.6.037
  5199. Problem: Multi-byte: Can't use "f" command with multibyte character in GUI.
  5200. Solution: Enable XIM in Normal mode for the GUI. (Sung-Hyun Nam)
  5201. Files: src/gui_gtk_x11.c, src/multbyte.c
  5202. Patch 5.6.038
  5203. Problem: Multi-clicks in GUI are interpreted as a mouse wheel click. When
  5204. 'ttymouse' is "xterm" a mouse click is interpreted as a mouse
  5205. wheel click.
  5206. Solution: Don't recognize the mouse wheel in check_termcode() in the GUI.
  5207. Use 0x43 for a mouse drag in do_xterm_trace(), not 0x63.
  5208. Files: src/term.c, src/os_unix.c
  5209. Patch 5.6.039
  5210. Problem: Motif GUI under KDE: When trying to logout, Vim hangs up the
  5211. system. (Hermann Rochholz)
  5212. Solution: When handling the WM_SAVE_YOURSELF event, set the WM_COMMAND
  5213. property of the window to let the session manager know we finished
  5214. saving ourselves.
  5215. Files: src/gui_x11.c
  5216. Patch 5.6.040
  5217. Problem: When using ":s" command, matching the regexp is done twice.
  5218. Solution: After copying the matched line, adjust the pointers instead of
  5219. finding the match again. (Loic Grenie) Added vim_regnewptr().
  5220. Files: src/ex_cmds.c, src/regexp.c, src/proto/regexp.pro
  5221. Patch 5.6.041
  5222. Problem: GUI: Athena, Motif and GTK don't give more than 10 dialog buttons.
  5223. Solution: Remove the limit on the number of buttons.
  5224. Also support the 'v' flag in 'guioptions'.
  5225. For GTK: Center the buttons.
  5226. Files: src/gui_athena.c, src/gui_gtk.c, src/gui_motif.c
  5227. Patch 5.6.042
  5228. Problem: When doing "vim -u vimrc" and vimrc contains ":q", the cursor in
  5229. the terminal can remain off.
  5230. Solution: Call cursor_on() in mch_windexit().
  5231. Files: src/os_unix.c
  5232. Patch 5.6.043 (extra)
  5233. Problem: Win32 GUI: When selecting guifont with the dialog, 'guifont'
  5234. doesn't include the bold or italic attributes.
  5235. Solution: Append ":i" and/or ":b" to 'guifont' in gui_mch_init_font().
  5236. Files: src/gui_w32.c
  5237. Patch 5.6.044 (extra)
  5238. Problem: MS-DOS and Windows: The line that dosinst.exe appends to
  5239. autoexec.bat to set PATH is wrong when Vim is in a directory with
  5240. an embedded space.
  5241. Solution: Use double quotes for the value when there is an embedded space.
  5242. Files: src/dosinst.c
  5243. Patch 5.6.045 (extra) (fixed version)
  5244. Problem: VMS: Various small problems.
  5245. Solution: Many small changes. (Zoltan Arpadffy)
  5246. File name modifier ":h" keeps the path separator.
  5247. File name modifier ":e" also removes version.
  5248. Compile with MAX_FEAT by default.
  5249. When checking for autocommands ignore version in file name.
  5250. Be aware of file names being case insensitive.
  5251. Added vt320 builtin termcap.
  5252. Be prepared for an empty default_vim_dir.
  5253. Files: runtime/gvimrc_example.vim, runtime/vimrc_example.vim,
  5254. runtime/doc/os_vms.txt, src/eval.c, src/feature.h, src/fileio.c,
  5255. src/gui_motif.c, src/gui_vms_conf.h, src/main.c, src/memline.c,
  5256. src/misc1.c, src/option.c, src/os_vms_conf.h, src/os_vms.c,
  5257. src/os_vms.h, src/os_vms.mms, src/tag.c, src/term.c, src/version.c
  5258. Patch 5.6.046
  5259. Problem: Systems with backslash in file name: With 'shellslash' set, "vim
  5260. */*.c" only uses a slash for the first file name. (Har'El)
  5261. Solution: Fix slashes in file name arguments after reading the vimrc file.
  5262. Files: src/option.c
  5263. Patch 5.6.047
  5264. Problem: $CPPFLAGS is not passed on to ctags configure.
  5265. Solution: Add it. (Walter Briscoe)
  5266. Files: src/config.mk.in, src/Makefile
  5267. Patch 5.6.048
  5268. Problem: CTRL-R in Command-line mode is documented to insert text as typed,
  5269. but inserts text literally.
  5270. Solution: Make CTRL-R insert text as typed, use CTRL-R CTRL-R to insert
  5271. literally. This is consistent with Insert mode. But characters
  5272. that end Command-line mode are inserted literally.
  5273. Files: runtime/doc/index.txt, runtime/doc/cmdline.txt, src/ex_getln.c,
  5274. src/ops.c, src/proto/ops.pro
  5275. Patch 5.6.049
  5276. Problem: Documentation for [!] after ":ijump" is wrong way around. (Benji
  5277. Fisher)
  5278. Solution: Fix the documentation. Also improve the code to check for a match
  5279. after a /* */ comment.
  5280. Files: runtime/doc/tagsearch.txt, src/search.c
  5281. Patch 5.6.050
  5282. Problem: Replacing is wrong when replacing a single-byte char with
  5283. double-byte char or the other way around.
  5284. Solution: Shift the text after the character when it is replaced.
  5285. (Yasuhiro Matsumoto)
  5286. Files: src/normal.c, src/misc1.c
  5287. Patch 5.6.051
  5288. Problem: ":tprev" and ":tnext" don't give an error message when trying to
  5289. go before the first or beyond the last tag. (Robert Webb)
  5290. Solution: Added error messages. Also: Delay a second when a file-read
  5291. message is going to overwrite an error message, otherwise it won't
  5292. be seen.
  5293. Files: src/fileio.c, src/tag.c
  5294. Patch 5.6.052
  5295. Problem: Multi-byte: When an Ex command has a '|' or '"' as a second byte,
  5296. it terminates the command.
  5297. Solution: Skip second byte of multibyte char when checking for '|' and '"'.
  5298. (Asai Kenichi)
  5299. Files: src/ex_docmd.c
  5300. Patch 5.6.053
  5301. Problem: CTRL-] doesn't work on a tag that contains a '|'. (Cesar Crusius)
  5302. Solution: Escape '|', '"' and '\' in tag names when using CTRL-] and also
  5303. for command-line completion.
  5304. Files: src/ex_getln.c, src/normal.c
  5305. Patch 5.6.054
  5306. Problem: When using ":e" and ":e #" the cursor is put in the first column
  5307. when 'startofline' is set. (Cordell)
  5308. Solution: Use the last known column when 'startofline' is set.
  5309. Also, use ECMD_LAST more often to simplify the code.
  5310. Files: src/buffer.c, src/ex_cmds.c, src/ex_docmd.c, src/proto/buffer.pro
  5311. Patch 5.6.055
  5312. Problem: When 'statusline' only contains a text without "%" and doesn't fit
  5313. in the window, Vim crashes. (Ron Aaron)
  5314. Solution: Don't use the pointer for the first item if there is no item.
  5315. Files: src/screen.c
  5316. Patch 5.6.056 (extra)
  5317. Problem: MS-DOS: F11 and F12 don't work when 'bioskey' is set.
  5318. Solution: Use enhanced keyboard functions. (Vince Negri)
  5319. Detect presence of enhanced keyboard and set bioskey_read and
  5320. bioskey_ready.
  5321. Files: src/os_msdos.c
  5322. Patch 5.6.057 (extra)
  5323. Problem: Win32 GUI: Multi-byte characters are wrong in dialogs and tear-off
  5324. menus.
  5325. Solution: Use system font instead of a fixed font. (Matsumoto, Muraoka)
  5326. Files: src/gui_w32.c
  5327. Patch 5.6.058
  5328. Problem: When the 'a' flag is not in 'guioptions', non-Windows systems
  5329. copy Visually selected text to the clipboard/selection on a yank
  5330. or delete command anyway. On Windows it isn't done even when the
  5331. 'a' flag is included.
  5332. Solution: Respect the 'a' flag in 'guioptions' on all systems.
  5333. Files: src/normal.c
  5334. Patch 5.6.059 (extra)
  5335. Problem: When moving the cursor over italic text and the characters spill
  5336. over to the cell on the right, that spill-over is deleted.
  5337. Noticed in the Win32 GUI, can happen on other systems too.
  5338. Solution: Redraw italic text starting from a blank, like this is already
  5339. done for bold text. (Vince Negri)
  5340. Files: src/gui.c, src/gui.h, src/gui_w32.c
  5341. Patch 5.6.060
  5342. Problem: Some bold characters spill over to the cell on the left, that
  5343. spill-over can remain sometimes.
  5344. Solution: Redraw a character when the next character was bold and needs
  5345. redrawing. (Robert Webb)
  5346. Files: src/screen.c
  5347. Patch 5.6.061
  5348. Problem: When xterm sends 8-bit controls, recognizing the version response
  5349. doesn't work.
  5350. When using CSI instead of <Esc>[ for the termcap color codes,
  5351. using 16 colors doesn't work. (Neil Bird)
  5352. Solution: Also accept CSI in place of <Esc>[ for the version string.
  5353. Also check for CSI when handling colors 8-15 in term_color().
  5354. Use CSI for builtin xterm termcap entries when 'term' contains
  5355. "8bit".
  5356. Files: runtime/doc/term.txt, src/ex_cmds.c, src/option.c, src/term.c,
  5357. src/os_unix.c, src/proto/option.pro, src/proto/term.pro
  5358. Patch 5.6.062
  5359. Problem: The documentation says that setting 'smartindent' doesn't have an
  5360. effect when 'cindent' is set, but it does make a difference for
  5361. lines starting with "#". (Neil Bird)
  5362. Solution: Really ignore 'smartindent' when 'cindent' is set.
  5363. Files: src/misc1.c, src/ops.c
  5364. Patch 5.6.063
  5365. Problem: Using "I" in Visual-block mode doesn't accept a count. (Johannes
  5366. Zellner)
  5367. Solution: Pass the count on to do_insert() and edit(). (Allan Kelly)
  5368. Files: src/normal.c, src/ops.c, src/proto/ops.pro
  5369. Patch 5.6.064
  5370. Problem: MS-DOS and Win32 console: Mouse doesn't work correctly after
  5371. including patch 5.6.28. (Vince Negri)
  5372. Solution: Don't check for mouse scroll wheel when the mouse code contains
  5373. the number of clicks.
  5374. Files: src/term.c
  5375. Patch 5.6.065
  5376. Problem: After moving the cursor around in Insert mode, typing a space can
  5377. still trigger an abbreviation. (Benji Fisher)
  5378. Solution: Don't check for an abbreviation after moving around in Insert mode.
  5379. Files: src/edit.c
  5380. Patch 5.6.066
  5381. Problem: Still a few bold character spill-over remains after patch 60.
  5382. Solution: Clear character just in front of blanking out rest of the line.
  5383. (Robert Webb)
  5384. Files: src/screen.c
  5385. Patch 5.6.067
  5386. Problem: When a file name contains a NL, the viminfo file is corrupted.
  5387. Solution: Use viminfo_writestring() to convert the NL to CTRL-V n.
  5388. Also fix the Buffers menu and listing a menu name with a newline.
  5389. Files: runtime/menu.vim, src/buffer.c, src/mark.c, src/menu.c
  5390. Patch 5.6.068
  5391. Problem: Compiling the Perl interface doesn't work with Perl 5.6.0.
  5392. (Bernhard Rosenkraenzer)
  5393. Solution: Also check xs_apiversion for the version number when prepending
  5394. defines for PL_*.
  5395. Files: src/Makefile
  5396. Patch 5.6.069
  5397. Problem: "go" doesn't always end up at the right character when
  5398. 'fileformat' is "dos". (Bruce DeVisser)
  5399. Solution: Correct computations in ml_find_line_or_offset().
  5400. Files: src/memline.
  5401. Patch 5.6.070 (depends on 5.6.068)
  5402. Problem: Compiling the Perl interface doesn't work with Perl 5.6.0.
  5403. (Bernhard Rosenkraenzer)
  5404. Solution: Simpler check instead of the one from patch 68.
  5405. Files: src/Makefile
  5406. Patch 5.6.071
  5407. Problem: "A" in Visual block mode on a Tab positions the cursor one char to
  5408. the right. (Michael Haumann)
  5409. Solution: Correct the column computation in op_insert().
  5410. Files: src/ops.c
  5411. Patch 5.6.072
  5412. Problem: When starting Vim with "vim +startinsert", it enters Insert mode
  5413. only after typing the first command. (Andrew Pimlott)
  5414. Solution: Insert a dummy command in the stuff buffer.
  5415. Files: src/main.c
  5416. Patch 5.6.073 (extra) (depends on 5.6.034)
  5417. Problem: Win32 GUI: When compiled with Bcc 5.5 menus don't work.
  5418. In dosinst.c toupper() and tolower() give an "internal compiler
  5419. error" for Bcc 5.5.
  5420. Solution: Define WINVER to 4 to avoid compiling for Windows 2000. (Dan
  5421. Sharp) Also cleaned up compilation arguments.
  5422. Use our own implementation of toupper() in dosinst.c. Use
  5423. mytoupper() instead of tolower().
  5424. Files: src/Makefile.bor, src/dosinst.c
  5425. Patch 5.6.074 (extra)
  5426. Problem: Entering CSI directly doesn't always work, because it's recognized
  5427. as the start of a special key. Mostly a problem with multibyte
  5428. in the GUI.
  5429. Solution: Use K_CSI for a typed CSI character. Use <CSI> for a normal CSI,
  5430. <xCSI> for a CSI typed in the GUI.
  5431. Files: runtime/doc/intro.txt, src/getchar.c, src/gui_amiga.c,
  5432. src/gui_gtk_x11.c, src/gui_mac.c, src/gui_riscos.c, src/gui_w32.c,
  5433. src/keymap.h, src/misc2.c
  5434. Patch 5.6.075
  5435. Problem: When using "I" or "A" in Visual block mode while 'sts' is set may
  5436. change spaces to a Tab the inserted text is not correct. (Mike
  5437. Steed) And some other problems when using "A" to append after the
  5438. end of the line.
  5439. Solution: Check for change in spaces/tabs after inserting the text. Append
  5440. spaces to fill the gap between the end-of-line and the right edge
  5441. of the block.
  5442. Files: src/ops.c
  5443. Patch 5.6.076
  5444. Problem: GTK GUI: Mapping <M-Space> doesn't work.
  5445. Solution: Don't use the "Alt" modifier twice in key_press_event().
  5446. Files: src/gui_gtk_x11.c
  5447. Patch 5.6.077
  5448. Problem: GUI: When interrupting an external program with CTRL-C, gvim might
  5449. crash. (Benjamin Korvemaker)
  5450. Solution: Avoid using a NULL pointer in ui_inchar_undo().
  5451. Files: src/ui.c
  5452. Patch 5.6.078
  5453. Problem: Locale doesn't always work on FreeBSD. (David O'Brien)
  5454. Solution: Link with the "xpg4" library when available.
  5455. Files: src/configure.in, src/configure
  5456. Patch 5.6.079
  5457. Problem: Vim could crash when several Tcl interpreters are created and
  5458. destroyed.
  5459. Solution: handle the "exit" command and nested ":tcl" commands better. (Ingo
  5460. Wilken)
  5461. Files: runtime/doc/if_tcl.txt, src/if_tcl.c
  5462. Patch 5.6.080
  5463. Problem: When jumping to a tag, generating the tags file and jumping to the
  5464. same tag again uses the old search pattern. (Sung-Hyun Nam)
  5465. Solution: Flush cached tag matches when executing an external command.
  5466. Files: src/misc2.c, src/proto/tag.pro, src/tag.c
  5467. Patch 5.6.081
  5468. Problem: ":syn include" uses a level for the included file, this confuses
  5469. contained items included at the same level.
  5470. Solution: Use a unique tag for each included file. Changed sp_syn_inc_lvl
  5471. to sp_syn_inc_tag. (Scott Bigham)
  5472. Files: src/syntax.c, src/structs.h
  5473. Patch 5.6.082
  5474. Problem: When using cscope, Vim can crash.
  5475. Solution: Initialize tag_fname in find_tags(). (Anton Blanchard)
  5476. Files: src/tag.c
  5477. Patch 5.6.083 (extra)
  5478. Problem: Win32: The visual beep can't be seen. (Eric Roesinger)
  5479. Solution: Flush the output before waiting with GdiFlush(). (Maurice S. Barnum)
  5480. Also: Allow specifying the delay in t_vb for the GUI.
  5481. Files: src/gui.c, src/gui_amiga.c, src/gui_gtk_x11.c, src/gui_mac.c,
  5482. src/gui_riscos.c, src/gui_w32.c, src/gui_x11.c, src/gui_beos.cc,
  5483. src/proto/gui_amiga.pro, src/proto/gui_gtk_x11.pro,
  5484. src/proto/gui_mac.pro, src/proto/gui_riscos.pro,
  5485. src/proto/gui_w32.pro, src/proto/gui_x11.pro,
  5486. src/proto/gui_beos.pro
  5487. Patch 5.6.084 (depends on 5.6.074)
  5488. Problem: GUI: Entering CSI doesn't always work for Athena and Motif.
  5489. Solution: Handle typed CSI as <xCSI> (forgot this bit in 5.6.074).
  5490. Files: src/gui_x11.c
  5491. Patch 5.6.085
  5492. Problem: Multi-byte: Using "r" to replace a double-byte char with a
  5493. single-byte char moved the cursor one character. (Matsumoto)
  5494. Also, using a count when replacing a single-byte char with a
  5495. double-byte char didn't work.
  5496. Solution: Don't use del_char() to delete the second byte.
  5497. Get "ptr" again after calling ins_char().
  5498. Files: src/normal.c
  5499. Patch 5.6.086 (extra)
  5500. Problem: Win32: When using libcall() and the returned value is not a valid
  5501. pointer, Vim crashes.
  5502. Solution: Use IsBadStringPtr() to check if the pointer is valid.
  5503. Files: src/os_win32.c
  5504. Patch 5.6.087
  5505. Problem: Multi-byte: Commands and messages with multibyte characters are
  5506. displayed wrong.
  5507. Solution: Detect double-byte characters. (Yasuhiro Matsumoto)
  5508. Files: src/ex_getln.c, src/message.c, src/misc2.c, src/screen.c
  5509. Patch 5.6.088
  5510. Problem: Multi-byte with Motif or Athena: The message "XIM requires
  5511. fontset" is annoying when Vim was compiled with XIM support but it
  5512. is not being used.
  5513. Solution: Remove that message.
  5514. Files: src/multbyte.c
  5515. Patch 5.6.089
  5516. Problem: On non-Unix systems it's possible to overwrite a read-only file
  5517. without using "!".
  5518. Solution: Check if the file permissions allow overwriting before moving the
  5519. file to become the backup file.
  5520. Files: src/fileio.c
  5521. Patch 5.6.090
  5522. Problem: When editing a file in "/home/dir/home/dir" this was replaced with
  5523. "~~". (Andreas Jellinghaus)
  5524. Solution: Replace the home directory only once in home_replace().
  5525. Files: src/misc1.c
  5526. Patch 5.6.091
  5527. Problem: When editing many "no file" files, can't create swap file, because
  5528. .sw[a-p] have all been used. (Neil Bird)
  5529. Solution: Also use ".sv[a-z]", ".su[a-z]", etc.
  5530. Files: src/memline.c
  5531. Patch 5.6.092
  5532. Problem: FreeBSD: When setting $TERM to a non-valid terminal name, Vim
  5533. hangs in tputs().
  5534. Solution: After tgetent() returns an error code, call it again with the
  5535. terminal name "dumb". This apparently creates an environment in
  5536. which tputs() doesn't fail.
  5537. Files: src/term.c
  5538. Patch 5.6.093 (extra)
  5539. Problem: Win32 GUI: "ls | gvim -" will show a message box about reading
  5540. stdin when Vim exits. (Donohue)
  5541. Solution: Don't write a message about the file read from stdin until the GUI
  5542. has started.
  5543. Files: src/fileio.c
  5544. Patch 5.6.094
  5545. Problem: Problem with multibyte string for ":echo var".
  5546. Solution: Check for length in msg_outtrans_len_attr(). (Sung-Hyun Nam)
  5547. Also make do_echo() aware of multibyte characters.
  5548. Files: src/eval.c, src/message.c
  5549. Patch 5.6.095
  5550. Problem: With an Emacs TAGS file that include another a relative path
  5551. doesn't always work.
  5552. Solution: Use expand_tag_fname() on the name of the included file.
  5553. (Utz-Uwe Haus)
  5554. Files: src/tag.c
  5555. Patch 5.6.096
  5556. Problem: Unix: When editing many files, startup can be slow. (Paul
  5557. Ackersviller)
  5558. Solution: Halve the number of stat() calls used to add a file to the buffer
  5559. list.
  5560. Files: src/buffer.c
  5561. Patch 5.7a.001
  5562. Problem: GTK doesn't respond on drag&drop from ROX-Filer.
  5563. Solution: Add "text/uri-list" target. (Thomas Leonard)
  5564. Also: fix problem with checking for trash arguments.
  5565. Files: src/gui_gtk_x11.c
  5566. Patch 5.7a.002
  5567. Problem: Multi-byte: 'showmatch' is performed when second byte of an
  5568. inserted double-byte char is a paren or brace.
  5569. Solution: Check IsTrailByte() before calling showmatch(). (Taro Muraoka)
  5570. Files: src/misc1.c
  5571. Patch 5.7a.003
  5572. Problem: Multi-byte: After using CTRL-O in Insert mode with the cursor at
  5573. the end of the line on a multibyte character the cursor moves to
  5574. the left.
  5575. Solution: Check for multibyte character at end-of-line. (Taro Muraoka)
  5576. Also: fix cls() to detect a double-byte character. (Chong-Dae Park)
  5577. Files: src/edit.c, src/search.c
  5578. Patch 5.7a.004
  5579. Problem: When reporting the search pattern offset, the string could be
  5580. unterminated, which may cause a crash.
  5581. Solution: Terminate the string for the search offset. (Stephen P. Wall)
  5582. Files: src/search.c
  5583. Patch 5.7a.005
  5584. Problem: When ":s//~/" doesn't find a match it reports "[NULL]" for the
  5585. pattern.
  5586. Solution: Use get_search_pat() to obtain the actually used pattern.
  5587. Files: src/ex_cmds.c, src/proto/search.pro, src/search.c
  5588. Patch 5.7a.006 (extra)
  5589. Problem: VMS: Various problems, also with the VAXC compiler.
  5590. Solution: In many places use the Unix code for VMS too.
  5591. Added time, date and compiler version to version message.
  5592. (Zoltan Arpadffy)
  5593. Files: src/ex_cmds.c, src/ex_docmd.c, src/globals.h, src/gui_vms_conf.h,
  5594. src/main.c, src/message.c, src/misc1.c, src/os_vms.c,
  5595. src/os_vms.h, src/os_vms.mms, src/os_vms_conf.h,
  5596. src/proto/os_vms.pro, src/proto/version.pro, src/term.c,
  5597. src/version.c, src/xxd/os_vms.mms, src/xxd/xxd.c
  5598. Patch 5.7a.007
  5599. Problem: Motif and Athena GUI: CTRL-@ is interpreted as CTRL-C.
  5600. Solution: Only use "intr_char" when it has been set.
  5601. Files: src/gui_x11.c
  5602. Patch 5.7a.008
  5603. Problem: GTK GUI: When using CTRL-L the screen is redrawn twice, causing
  5604. trouble for bold characters. Also happens when moving with the
  5605. scrollbar. Best seen when 'writedelay' is non-zero.
  5606. When starting the GUI with ":gui" the screen is redrawn once with
  5607. the wrong colors.
  5608. Solution: Only set the geometry hints when the window size really changed.
  5609. This avoids setting it each time the scrollbar is forcefully
  5610. redrawn.
  5611. Don't redraw in expose_event() when gui.starting is still set.
  5612. Files: src/gui_gtk_x11.c
  5613. ==============================================================================
  5614. VERSION 5.8 *version-5.8*
  5615. Version 5.8 is a bug-fix version of 5.7.
  5616. Changed *changed-5.8*
  5617. -------
  5618. Ctags is no longer included with Vim. It has grown into a project of its own.
  5619. You can find it here: http://ctags.sf.net. It is highly recommended as a Vim
  5620. companion when you are writing programs.
  5621. Added *added-5.8*
  5622. -----
  5623. New syntax files:
  5624. acedb AceDB (Stewart Morris)
  5625. aflex Aflex (Mathieu Clabaut)
  5626. antlr Antlr (Mathieu Clabaut)
  5627. asm68k 68000 Assembly (Steve Wall)
  5628. automake Automake (John Williams)
  5629. ayacc Ayacc (Mathieu Clabaut)
  5630. b B (Mathieu Clabaut)
  5631. bindzone BIND zone (glory hump)
  5632. blank Blank (Rafal Sulejman)
  5633. cfg Configure files (Igor Prischepoff)
  5634. changelog ChangeLog (Gediminas Paulauskas)
  5635. cl Clever (Phil Uren)
  5636. crontab Crontab (John Hoelzel)
  5637. csc Essbase script (Raul Segura Acevedo)
  5638. cynlib Cynlib(C++) (Phil Derrick)
  5639. cynpp Cyn++ (Phil Derrick)
  5640. debchangelog Debian Changelog (Wichert Akkerman)
  5641. debcontrol Debian Control (Wichert Akkerman)
  5642. dns DNS zone file (Jehsom)
  5643. dtml Zope's DTML (Jean Jordaan)
  5644. dylan Dylan, Dylan-intr and Dylan-lid (Brent Fulgham)
  5645. ecd Embedix Component Description (John Beppu)
  5646. fgl Informix 4GL (Rafal Sulejman)
  5647. foxpro FoxPro (Powing Tse)
  5648. gsp GNU Server Pages (Nathaniel Harward)
  5649. gtkrc GTK rc (David Necas)
  5650. hercules Hercules (Avant! Corporation) (Dana Edwards)
  5651. htmlos HTML/OS by Aestiva (Jason Rust)
  5652. inittab SysV process control (David Necas)
  5653. iss Inno Setup (Dominique Stephan)
  5654. jam Jam (Ralf Lemke)
  5655. jess Jess (Paul Baleme)
  5656. lprolog LambdaProlog (Markus Mottl)
  5657. ia64 Intel Itanium (parth malwankar)
  5658. kix Kixtart (Nigel Gibbs)
  5659. mgp MaGic Point (Gerfried Fuchs)
  5660. mason Mason (HTML with Perl) (Andrew Smith)
  5661. mma Mathematica (Wolfgang Waltenberger)
  5662. nqc Not Quite C (Stefan Scherer)
  5663. omnimark Omnimark (Paul Terray)
  5664. openroad OpenROAD (Luis Moreno Serrano)
  5665. named BIND configuration (glory hump)
  5666. papp PApp (Marc Lehmann)
  5667. pfmain Postfix main config (Peter Kelemen)
  5668. pic PIC assembly (Aleksandar Veselinovic)
  5669. ppwiz PPWizard (Stefan Schwarzer)
  5670. progress Progress (Phil Uren)
  5671. psf Product Specification File (Rex Barzee)
  5672. r R (Tom Payne)
  5673. registry MS-Windows registry (Dominique Stephan)
  5674. robots Robots.txt (Dominique Stephan)
  5675. rtf Rich Text Format (Dominique Stephan)
  5676. setl SETL (Alex Poylisher)
  5677. sgmldecl SGML Declarations (Daniel A. Molina W.)
  5678. sinda Sinda input (Adrian Nagle)
  5679. sindacmp Sinda compare (Adrian Nagle)
  5680. sindaout Sinda output (Adrian Nagle)
  5681. smith SMITH (Rafal Sulejman)
  5682. snobol4 Snobol 4 (Rafal Sulejman)
  5683. strace Strace (David Necas)
  5684. tak TAK input (Adrian Nagle)
  5685. takcmp TAK compare (Adrian Nagle)
  5686. takout TAK output (Adrian Nagle)
  5687. tasm Turbo assembly (FooLman)
  5688. texmf TeX configuration (David Necas)
  5689. trasys Trasys input (Adrian Nagle)
  5690. tssgm TSS Geometry (Adrian Nagle)
  5691. tssop TSS Optics (Adrian Nagle)
  5692. tsscl TSS Command line (Adrian Nagle)
  5693. virata Virata Configuration Script (Manuel M.H. Stol)
  5694. vsejcl VSE JCL (David Ondrejko)
  5695. wdiff Wordwise diff (Gerfried Fuchs)
  5696. wsh Windows Scripting Host (Paul Moore)
  5697. xkb X Keyboard Extension (David Necas)
  5698. Renamed php3 to php, it now also supports php4 (Lutz Eymers)
  5699. Patch 5.7.015
  5700. Problem: Syntax files for Vim 6.0 can't be used with 5.x.
  5701. Solution: Add the "default" argument to the ":highlight" command: Ignore the
  5702. command if highlighting was already specified.
  5703. Files: src/syntax.c
  5704. Generate the Syntax menu with makemenu.vim, so that it doesn't have to be done
  5705. when Vim is starting up. Reduces the startup time of the GUI.
  5706. Fixed *fixed-5.8*
  5707. -----
  5708. Conversion of docs to HTML didn't convert "|tag|s" to a hyperlink.
  5709. Fixed compiling under NeXT. (Jeroen C.M. Goudswaard)
  5710. optwin.vim gave an error when used in Vi compatible mode ('cpo' contains 'C').
  5711. Tcl interpreter: "buffer" command didn't check for presence of an argument.
  5712. (Dave Bodenstab)
  5713. dosinst.c: Added checks for too long file name.
  5714. Amiga: a file name starting with a colon was considered absolute but it isn't.
  5715. Amiga: ":pwd" added a slash when in the root of a drive.
  5716. Macintosh: Warnings for unused variables. (Bernhard Pruemmer)
  5717. Unix: When catching a deadly signal, handle it in such a way that it's
  5718. unlikely that Vim will hang. Call _exit() instead of exit() in case of a
  5719. severe problem.
  5720. Setting the window title from nothing to something didn't work after patch 29.
  5721. Check for ownership of .exrc and .vimrc was done with stat(). Use lstat() as
  5722. well for extra security.
  5723. Win32 GUI: Printing a file with 'fileformat' "unix" didn't work. Set
  5724. 'fileformat' to "dos" before writing the temp file.
  5725. Unix: Could start waiting for a character when checking for a CTRL-C typed
  5726. when an X event is received.
  5727. Could not use Perl and Python at the same time on FreeBSD, because Perl used
  5728. "-lc" and Python used the threaded C library.
  5729. Win32: The Mingw compiler gave a few warning messages.
  5730. When using "ZZ" and an autocommand for writing uses an abbreviation it didn't
  5731. work. Don't stuff the ":x" command but execute it directly. (Mikael Berthe)
  5732. VMS doesn't always have lstat(), added an #ifdef around it.
  5733. Added a few corrections for the Macintosh. (Axel Kielhorn)
  5734. Win32: GvimExt could not edit more than a few files at once, the length of the
  5735. argument was fixed.
  5736. Previously released patches for Vim 5.7:
  5737. Patch 5.7.001
  5738. Problem: When the current buffer is encrypted, and another modified buffer
  5739. isn't, ":wall" will encrypt the other buffer.
  5740. Solution: In buf_write() use "buf" instead of "curbuf" to check for the
  5741. crypt key.
  5742. Files: src/fileio.c
  5743. Patch 5.7.002
  5744. Problem: When 'showmode' is set, using "CTRL-O :r file" waits three seconds
  5745. before displaying the read text. (Wichert Akkerman)
  5746. Solution: Set "keep_msg" to the file message so that the screen is redrawn
  5747. before the three seconds wait for displaying the mode message.
  5748. Files: src/fileio.c
  5749. Patch 5.7.003
  5750. Problem: Searching for "[[:cntrl:]]" doesn't work.
  5751. Solution: Exclude NUL from the matching characters, it terminates the list.
  5752. Files: src/regexp.c
  5753. Patch 5.7.004
  5754. Problem: GTK: When selecting a new font, Vim can crash.
  5755. Solution: In gui_mch_init_font() unreference the old font, not the new one.
  5756. Files: src/gui_gtk_x11.c
  5757. Patch 5.7.005
  5758. Problem: Multibyte: Inserting a wrapped line corrupts kterm screen.
  5759. Pasting TEXT/COMPOUND_TEXT into Vim does not work.
  5760. On Motif no XIM status line is displayed even though it is
  5761. available.
  5762. Solution: Don't use xterm trick for wrapping lines for multibyte mode.
  5763. Correct a missing "break", added TEXT/COMPOUND_TEXT selection
  5764. request.
  5765. Add XIMStatusArea fallback code.
  5766. (Katsuhito Nagano)
  5767. Files: src/gui_gtk_x11.c, src/multbyte.c, src/screen.c, src/ui.c
  5768. Patch 5.7.006
  5769. Problem: GUI: redrawing the non-Visual selection is wrong when the window
  5770. is unobscured. (Jean-Pierre Etienne)
  5771. Solution: Redraw the selection properly and don't clear it. Added "len"
  5772. argument to clip_may_redraw_selection().
  5773. Files: src/gui.c, src/ui.c, src/proto/ui.pro
  5774. Patch 5.7.007
  5775. Problem: Python: Crash when using the current buffer twice.
  5776. Solution: Increase the reference count for buffer and window objects.
  5777. (Johannes Zellner)
  5778. Files: src/if_python.c
  5779. Patch 5.7.008
  5780. Problem: In Ex mode, backspacing over the first TAB doesn't work properly.
  5781. (Wichert Akkerman)
  5782. Solution: Switch the cursor on before printing the newline.
  5783. Files: src/ex_getln.c
  5784. Patch 5.7.009 (extra)
  5785. Problem: Mac: Crash when using a long file.
  5786. Solution: Don't redefine malloc() and free(), because it will break using
  5787. realloc().
  5788. Files: src/os_mac.h
  5789. Patch 5.7.010
  5790. Problem: When using CTRL-A on a very long number Vim can crash. (Michael
  5791. Naumann)
  5792. Solution: Truncate the length of the new number to avoid a buffer overflow.
  5793. Files: src/ops.c
  5794. Patch 5.7.011 (extra)
  5795. Problem: Win32 GUI on NT 5 and Win98: Displaying Hebrew is reversed.
  5796. Solution: Output each character separately, to avoid that Windows reverses
  5797. the text for some fonts. (Ron Aaron)
  5798. Files: src/gui_w32.c
  5799. Patch 5.7.012
  5800. Problem: When using "-complete=buffer" for ":command" the user command
  5801. fails.
  5802. Solution: In a user command don't replace the buffer name with a count for
  5803. the buffer number.
  5804. Files: src/ex_docmd.c
  5805. Patch 5.7.013
  5806. Problem: "gD" didn't always find a match in the first line, depending on
  5807. the column the search started at.
  5808. Solution: Reset the column to zero before starting to search.
  5809. Files: src/normal.c
  5810. Patch 5.7.014
  5811. Problem: Rot13 encoding was done on characters with accents, which is
  5812. wrong. (Sven Gottwald)
  5813. Solution: Only do rot13 encoding on ASCII characters.
  5814. Files: src/ops.c
  5815. Patch 5.7.016
  5816. Problem: When hitting 'n' for a ":s///c" command, the ignore-case flag was
  5817. not restored, some matches were skipped. (Daniel Blaustein)
  5818. Solution: Restore the reg_ic variable when 'n' was hit.
  5819. Files: src/ex_cmds.c
  5820. Patch 5.7.017
  5821. Problem: When using a Vim script for Vim 6.0 with <SID> before a function
  5822. name, it produces an error message even when inside an "if version
  5823. >= 600". (Charles Campbell)
  5824. Solution: Ignore errors in the function name when the function is not going
  5825. to be defined.
  5826. Files: src/eval.c
  5827. Patch 5.7.018
  5828. Problem: When running "rvim" or "vim -Z" it was still possible to execute a
  5829. shell command with system() and backtick-expansion. (Antonios A.
  5830. Kavarnos)
  5831. Solution: Disallow executing a shell command in get_cmd_output() and
  5832. mch_expand_wildcards().
  5833. Files: src/misc1.c, src/os_unix.c
  5834. Patch 5.7.019
  5835. Problem: Multibyte: In a substitute string, a multibyte character isn't
  5836. skipped properly, can be a problem when the second byte is a
  5837. backslash.
  5838. Solution: Skip an extra byte for a double-byte character. (Muraoka Taro)
  5839. Files: src/ex_cmds.c
  5840. Patch 5.7.020
  5841. Problem: Compilation doesn't work on MacOS-X.
  5842. Solution: Add a couple of #ifdefs. (Jamie Curmi)
  5843. Files: src/regexp.c, src/ctags/general.h
  5844. Patch 5.7.021
  5845. Problem: Vim sometimes produces a beep when started in an xterm. Only
  5846. happens when compiled without mouse support.
  5847. Solution: Requesting the xterm version results in a K_IGNORE. This wasn't
  5848. handled when mouse support is disabled. Accept K_IGNORE always.
  5849. Files: src/normal.c
  5850. Patch 5.7.022
  5851. Problem: %v in 'statusline' is not displayed when it's equal to %c.
  5852. Solution: Check if %V or %v is used and handle them differently.
  5853. Files: src/screen.c
  5854. Patch 5.7.023
  5855. Problem: Crash when a WinLeave autocommand deletes the buffer in the other
  5856. window.
  5857. Solution: Check that after executing the WinLeave autocommands there still
  5858. is a window to be closed. Also update the test that was supposed
  5859. to check for this problem.
  5860. Files: src/window.c, testdir/test13.in, testdir/test13.ok
  5861. Patch 5.7.024
  5862. Problem: Evaluating an expression for 'statusline' can have side effects.
  5863. Solution: Evaluate the expression in a sandbox.
  5864. Files: src/edit.c, src/eval.c, src/proto/eval.pro, src/ex_cmds.c,
  5865. src/ex_cmds.h, src/ex_docmd.c, src/globals.h, src/option.c,
  5866. src/screen.c, src/undo.c
  5867. Patch 5.7.025 (fixed)
  5868. Problem: Creating a temp file has a race condition.
  5869. Solution: Create a private directory to write the temp files in.
  5870. Files: src/fileio.c, src/misc1.c, src/proto/misc1.pro,
  5871. src/proto/fileio.pro, src/memline.c, src/os_unix.h
  5872. Patch 5.7.026 (extra)
  5873. Problem: Creating a temp file has a race condition.
  5874. Solution: Create a private directory to write the temp files in.
  5875. This is the extra part of patch 5.7.025.
  5876. Files: src/os_msdos.h
  5877. Patch 5.7.027
  5878. Problem: Starting to edit a file can cause a crash. For example when in
  5879. Insert mode, using CTRL-O :help abbr<Tab> to scroll the screen and
  5880. then <CR>, which edits a help file. (Robert Bogomip)
  5881. Solution: Check if keep_msg is NULL before copying it.
  5882. Files: src/fileio.c
  5883. Patch 5.7.028
  5884. Problem: Creating a backup or swap file could fail in rare situations.
  5885. Solution: Use O_EXCL for open().
  5886. Files: src/fileio.c, src/memfile.c
  5887. Patch 5.7.029
  5888. Problem: Editing a file with an extremely long name crashed Vim.
  5889. Solution: Check for length of the name when setting the window title.
  5890. Files: src/buffer.c
  5891. Patch 5.7.030
  5892. Problem: A ":make" or ":grep" command with a very long argument could cause
  5893. a crash.
  5894. Solution: Allocate the buffer for the shell command.
  5895. Files: src/ex_docmd.c
  5896. vim:tw=78:ts=8:noet:ft=help:norl: