When I type [[
or ]]
in normal mode, cursor is jumping previous / next "class definition" during editing python (.py) file.
I want to map these shortcuts to SHIFT + UP
and SHIFT + DOWN
. And I added this to my vimrc:
nnoremap <S-Up> [[
nnoremap <S-Down> ]]
But when I press SHIFT + UP
, cursor going beginning of the file, or if I press SHIFT + DOWN
, cursor going end of the file.
How can I map these keys?