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:
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)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
Post a Comment