Mercurial > dotfiles.old
comparison vimrc @ 178:899ac4d147ef
Add mapping to move visually selected lines
author | zegervdv <zegervdv@me.com> |
---|---|
date | Tue, 04 Nov 2014 22:32:24 +0100 |
parents | ca5bd373473e |
children | 3682b9b12839 |
comparison
equal
deleted
inserted
replaced
177:ca5bd373473e | 178:899ac4d147ef |
---|---|
247 " Note that this will overwrite the contents of the z mark. I never use it, but | 247 " Note that this will overwrite the contents of the z mark. I never use it, but |
248 " if you do you'll probably want to use another mark. | 248 " if you do you'll probably want to use another mark. |
249 inoremap <C-u> <esc>mzgUiw`za | 249 inoremap <C-u> <esc>mzgUiw`za |
250 | 250 |
251 nnoremap <leader>ev :vsplit $MYVIMRC<cr> | 251 nnoremap <leader>ev :vsplit $MYVIMRC<cr> |
252 | |
253 " Move lines from visual selection | |
254 vnoremap <S-j> :m '>+1<CR>gv=gv | |
255 vnoremap <S-k> :m '<-2<CR>gv=gv | |
252 | 256 |
253 function! MyFoldText() " {{{ | 257 function! MyFoldText() " {{{ |
254 let line = getline(v:foldstart) | 258 let line = getline(v:foldstart) |
255 | 259 |
256 let nucolwidth = &fdc + &number * &numberwidth | 260 let nucolwidth = &fdc + &number * &numberwidth |