Added up/down line keymap

Fixed clipboard consinstence on OSX
This commit is contained in:
Andrea Mistrali 2013-01-16 13:54:42 +00:00
parent 51fad85c7c
commit 7071fa42f9
3 changed files with 26 additions and 4 deletions

View File

@ -58,7 +58,15 @@ See |textformat|
*akmap-misc* *akmap-misc*
7. Misc~ 7. Misc~
Empty for now
In command or insertion mode:
<Shift-Ctrl-Up> - Move line up
<Shift-Ctrl-Down> - Move line down
In Visual mode:
<Shift-Ctrl-Up> - Move block up
<Shift-Ctrl-Down> - Move block down
*akmap-ver* *akmap-ver*
8. Version~ 8. Version~
@ -66,4 +74,4 @@ Author: Andrea Mistrali
Version: $Id$ Version: $Id$
Last change: $Date$ Last change: $Date$
vim:tw=78:ts=8:ft=help:norl: vim:tw=78:ts=8:ft=help:norl:

View File

@ -13,6 +13,7 @@ set nohlsearch
set nostartofline set nostartofline
" set paste " set paste
set autochdir set autochdir
set clipboard=unnamed
" Let's go to 256 colors " Let's go to 256 colors
set t_Co=256 set t_Co=256
@ -166,6 +167,16 @@ nnoremap <silent> <S-Up> V
vnoremap <silent> <S-Down> j vnoremap <silent> <S-Down> j
vnoremap <silent> <S-Up> k vnoremap <silent> <S-Up> k
" Line/block move up/down
nnoremap <CS-Down> :m .+1<CR>==
nnoremap <CS-Up> :m .-2<CR>==
inoremap <CS-Down> <Esc>:m .+1<CR>==gi
inoremap <CS-Up> <Esc>:m .-2<CR>==gi
vnoremap <CS-Down> :m '>+1<CR>gv=gv
vnoremap <CS-Up> :m '<-2<CR>gv=gv
" Terminal/Filemanager integration " Terminal/Filemanager integration
" nnoremap <silent> <F9> :OpenTerminal<CR> " nnoremap <silent> <F9> :OpenTerminal<CR>
nnoremap <silent> <F10> :OpenFilemanager<CR><CR> nnoremap <silent> <F10> :OpenFilemanager<CR><CR>
@ -188,6 +199,9 @@ nnoremap <silent> <D-8> 8gt
nnoremap <silent> <D-9> 9gt nnoremap <silent> <D-9> 9gt
nnoremap <silent> <D-0> 10gt nnoremap <silent> <D-0> 10gt
" <Leader>hh opens my help file
nnoremap <silent> <Leader>hh :help akmap<CR>
" Vim5 comes with syntaxhighlighting. If you want to enable syntaxhightlighting " Vim5 comes with syntaxhighlighting. If you want to enable syntaxhightlighting
" by default uncomment the next three lines. " by default uncomment the next three lines.
if has("syntax") if has("syntax")