Remove a space before an argument, while adding '(' and ')' with VIM surround -


using vim plugin vim-surround pretty extensively, , happy it. however, there 1 replacement witch haven't found nice shortcut.

the usage case, following. need :

def function argument 

to become (when cursor in middle of 'argument')

def function(argument) 

my attempts didn't fulfil need:

i have try

ysiw) => def function (argument) # don't space after function ysaw) => def function( argument) # don't space before argument 

since, there shortcut vim, asking communitity me satisfy style obsession...

without vim on hand, think

nmap <f6> f xyse) 

or

nmap <f6> ysiw)f x 

should trick.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -