derekwyatt / vim-fswitch

Vim plug for switching between companion source files (e.g. ".h" and ".cpp")
179 stars 57 forks source link

fix bug ,now can switch btw catkin_ws #24

Closed ImAaronChou closed 2 weeks ago

ImAaronChou commented 5 years ago

these is a problem if the file path have more than one key which like "include",or "src", then the substitute function just will replace the first key which it matched. so i modify the script ,and work well. but there is still a bug, when the key in the end of the path but i am a new guy for vim script. so, the code maybe not friendly when you review that