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

freevars is a normal mode mapping #832

Closed
nhooyr opened this issue Apr 30, 2016 · 2 comments
Closed

freevars is a normal mode mapping #832

nhooyr opened this issue Apr 30, 2016 · 2 comments

Comments

@nhooyr
Copy link
Contributor

nhooyr commented Apr 30, 2016

nnoremap <silent> <Plug>(go-freevars) :<C-u>call go#guru#Freevars(-1)<CR>

This mapping in ftplugin/go/mappings.vim cannot be used because it is a normal mode mapping whereas go-freevars is only usable with a selection. So it should be a visual mode mapping.

@fatih fatih closed this as completed in bbe4357 May 1, 2016
@fatih
Copy link
Owner

fatih commented May 1, 2016

Fixed. An example mapping you can add to your vimrc to test it:

au FileType go xmap <leader>f  <Plug>(go-freevars)

@nhooyr
Copy link
Contributor Author

nhooyr commented May 1, 2016

alright thanks

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