linux - vi editor showing bracket date and time stamp on left hand side -


i new linux , trying edit file in vi editor. when access file, have date , time strings running down left hand side , makes cumbersome edit file. advice appreciated. thank you.

since vi/vim doesn't insert dates default, suggests dates in data itself. have several choices occur me:

  1. you can delete dates actual file content :%s/^\d\{4}-\d\d-\d\d \d\d:\d\d:\d\d\s* (assuming dates in "yyyy-mm-dd hh:mm:ss" format)

  2. with recent version of vim (check output of :version +conceal) can leave dates in file have them hidden unless you're on actual line:

    :set conceallevel=2 :syn match comment /^\d\{4}-\d\d-\d\d \d\d:\d\d:\d\d\s*/ conceal 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -