(self, view, motion)
return winsaveview()
Use a motion inside Vim, starting from the given view.

        If the motion causes an error, return None.
Use a motion inside Vim, starting from the given view.
Use a motion inside Vim starting from the given view .
def _try_motion(self, view, motion):
        """
        Use a motion inside Vim, starting from the given view.

        If the motion causes an error, return None.
        """
        winrestview(view)
        try:
            vim.command(f"silent! normal! {motion}")
        except:
            return None
        return winsaveview()
def _try_motion ( self , view , motion ) : winrestview ( view ) try : vim . command ( f"silent! normal! {motion}" ) except : return None return winsaveview ( )