Skip to content

Selecting word under cursor for custom key mappings? #801

Answered by wingy3181
wingy3181 asked this question in Q&A
Discussion options

You must be logged in to vote

Ok I got what i wanted by doing this

nmap <leader>* viwy \| :%s/\<<c-r>+\>//g<left><left>

Thanks @lippfi
Let me know if there is some other or better way i could do the same thing

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@wingy3181
Comment options

@wingy3181
Comment options

Answer selected by wingy3181
@sharpchen
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants