vim - Python: open and display a text file at a specific line -


i don't use python often, develop simple tools in make life easier. used log checker/crude debugger sas. reads sas log line line checking errors in list , dumps finds standard out (i'm running python 2.6 in redhat linux environment) - along error, prints line number of error (not that's super useful).

what i'd optionally feed script line number , have open sas log in gvim , display scrolled down line number i've specified. haven't had luck finding way - i've looked pretty thoroughly on google no avail. ideas appreciated. thanks! jeremy

once you've got line number, can run gvim filename -c 12 , go line 12 (this because -c <command> "execute <command> after loading first file", -c 12 saying run :12 after loading file).

so i'm not sure if need python @ in case; sending line number direct gvim may need.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -