Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Me
- can you do this? http://pastebin.com/Ah7FTjbr, how much?
- 18:25NOVEMBER 20, 2016
- ramesh_samane
- ramesh_samane
- Let me try it out and get back to you.
- Report 00:03NOVEMBER 21, 2016
- ramesh_samane
- ramesh_samane
- I have coded a script that will open a file at certain location when "myvim abc.h" is issued. I have a few questions:
- 1. I am assuming, the files in question will be located only in a single particular directory, for example, ~/pg. Am I right?
- 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?
- 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?
- 4. I am not sure about what you exactly want when you type "vim TAB". Can you explain please?
- Report 03:17NOVEMBER 21, 2016
- ramesh_samane
- ramesh_samane
- 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.
- Report 03:40NOVEMBER 21, 2016
- A
- Me
- 1. no, may not in one directory. but all paths are preset
- 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
- 3. yes, just open a new one
- 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
- 5. no. this is just my personal project
- 06:30NOVEMBER 21, 2016
- A
- Me
- 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
- 06:32NOVEMBER 21, 2016
- ramesh_samane
- ramesh_samane
- 1. In that case, there can be multiple files with the same name. How do you want it to handle?
- 2. I am not sure hoe bash-completion.d works, need to check. Alias will work fine.
- 3. Got it.
- 4. Need examples.
- 5. Okay
- Report 06:52NOVEMBER 21, 2016
- ramesh_samane
- ramesh_samane
- Deadline for this?
- Report 06:53NOVEMBER 21, 2016
- ramesh_samane
- ramesh_samane
- And, your budget.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement