Closed galou closed 1 year ago
+1, How to savle this probleam?
I don't use fswitch anymore but still have this in my configuration
autocmd BufEnter *.cpp let b:fswitchdst = 'h,hpp'
autocmd BufEnter *.cpp let b:fswitchlocs = 'reg:|src/\(.*\)/\([^w]\+\)/src|src/\1/\2/include/\2|,reg:|src|include|,reg:|src|include/*|'
Hope this helps!
I have use the following pattern:
src/namespace
include/namespace
Both directories are in a path where one of the directories is named
src
. How can I configureb:fswitchlocs
to havevim-fswtich
work?b:fswitchlocs=reg:|src|include|
doesn't work because the firstsrc
is changed, not the last one.Thanks!