Advertisement
absolute100

Untitled

Nov 21st, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. Me
  2. can you do this? http://pastebin.com/Ah7FTjbr, how much?
  3. 18:25NOVEMBER 20, 2016
  4. ramesh_samane
  5. ramesh_samane
  6. Let me try it out and get back to you.
  7. Report 00:03NOVEMBER 21, 2016
  8. ramesh_samane
  9. ramesh_samane
  10. I have coded a script that will open a file at certain location when "myvim abc.h" is issued. I have a few questions:
  11.  
  12. 1. I am assuming, the files in question will be located only in a single particular directory, for example, ~/pg. Am I right?
  13. 2. I am using a script and alias "myvim" which is your customized vim that looks for files only in ~/pg. Is that what you want?
  14. 3. What if the file you mentioned does not exists in ~/pg? Do you like vim to open a new file with that name, or display error message, or do both?
  15. 4. I am not sure about what you exactly want when you type "vim TAB". Can you explain please?
  16. Report 03:17NOVEMBER 21, 2016
  17. ramesh_samane
  18. ramesh_samane
  19. 5. Is this an academic or commercial project? Why I am asking is, in an academic project the teachers put restrictions on what to use and what not, so we have to do it the way they want even though there are easy methods.
  20. Report 03:40NOVEMBER 21, 2016
  21. A
  22. Me
  23. 1. no, may not in one directory. but all paths are preset
  24. 2. why vim itself doesn't work? i don't think it matters, you just need to create vim and put it in bash-completion.d
  25. 3. yes, just open a new one
  26. 4. vim TAB: just expand to files in all preset path. and when the cmd run, it will open what i want. the entire purpose is to save some work on 'cd' the path
  27. 5. no. this is just my personal project
  28. 06:30NOVEMBER 21, 2016
  29. A
  30. Me
  31. as for 3. i think i am wrong. I mean if the file doesn't exist, just do what currently vim does: open the file at the current path
  32. 06:32NOVEMBER 21, 2016
  33. ramesh_samane
  34. ramesh_samane
  35. 1. In that case, there can be multiple files with the same name. How do you want it to handle?
  36. 2. I am not sure hoe bash-completion.d works, need to check. Alias will work fine.
  37. 3. Got it.
  38. 4. Need examples.
  39. 5. Okay
  40. Report 06:52NOVEMBER 21, 2016
  41. ramesh_samane
  42. ramesh_samane
  43. Deadline for this?
  44. Report 06:53NOVEMBER 21, 2016
  45. ramesh_samane
  46. ramesh_samane
  47. And, your budget.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement