derekwyatt / vim-fswitch

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

Fixes for commands using splits #5

Closed lyokha closed 12 years ago

lyokha commented 12 years ago
  1. FSSplitLeft and FSSplitAbove do not really need changing window using wincmd commands: they did already changed windows after splitting.
  2. 'b:' prefixes for variables curspr and cursb are not really needed (and unletting them too), because they get in fact local variables in function FSwitch(), moreover using them as local-buffer variables may lead to error messages about inexistent variables in some specific cases when option bufhidden is set to 'delete'.