Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to or make right #21

Open
cmaughan opened this issue Aug 13, 2018 · 1 comment
Open

Switch to or make right #21

cmaughan opened this issue Aug 13, 2018 · 1 comment

Comments

@cmaughan
Copy link

It would be nice to auto choose between FSRight and FSSplitRight depending on presence of the right window...., then I could use the same shortcut for both wiithout thinking about which to use.

@sidhant007
Copy link

I wrote this quick vim function in my .vimrc which does this:

function! FSRightOptionalSplit()
    if winnr() !=# winnr('l')
        exec ":FSRight"
    else
        exec ":FSSplitRight"
    endif
endfunction

nnoremap <leader>tfr :call FSRigtOptionalSplit()<CR>

@derekwyatt Incase you still actively maintain this plugin, then I would be more than happy to add this functionality in the existing codebase and get it merged. Let me know if this is a possibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants