I use Sublime Text in Windows(feels natural in Windows even though there's gVim) and trying to use vim in Linux environment (vim feels natural in Linux even though there's Sublime for Linux).
I'm trying to map :m +1
and :m -2
which is similar to Sublime's Ctrl+Shift+Down
and Ctrl+Shift+Up
. My attempt at mapping it in my ~/.vimrc
is as follows:-
nmap <C-S-Up> :m -2<CR>
nmap <C-S-Down> :m +1<CR>
But it doesn't seem to work. The following however do work but I wanted to get it close to Sublime's key mapping.
nmap <leader><S-Up> :m -2<CR>
nmap <leader>S-Down> :m +1<CR>
I also have to note that I'm using terminator
as my console emulator which has Ctrl+Shift+Up
and Ctrl+Shift+Down
to resize the split window but I've already disabled those key binding and still vim
doesn't like my Sublime way of mapping. :/
What am I doing wrong?