2015-05-05 11:18:25 +00:00
|
|
|
" remap semi-colon to be colon in normal an visual mode
|
|
|
|
nnoremap ; :
|
|
|
|
vnoremap ; :
|
|
|
|
|
|
|
|
" Swap v and CTRL-V, because Block mode is more useful
|
|
|
|
nnoremap v <C-V>
|
|
|
|
nnoremap <C-V> v
|
|
|
|
vnoremap v <C-V>
|
|
|
|
vnoremap <C-V> v
|
|
|
|
|
|
|
|
" jk nice behaviour (screen lines vs. shown lines)
|
|
|
|
nnoremap j gj
|
|
|
|
nnoremap k gk
|
|
|
|
|
|
|
|
" behave - yank just like D and C
|
|
|
|
nnoremap Y y$
|
|
|
|
|
|
|
|
" auto-yanking with clipper for selected yanking, see leader-y mapping
|
|
|
|
vnoremap y y :call system('nc localhost 8377', @0)<cr>
|
|
|
|
|
|
|
|
" Search mappings: These will make it so that going to the next one in a
|
|
|
|
" search will center on the line it's found in.
|
|
|
|
nnoremap N Nzz
|
|
|
|
nnoremap n nzz
|
|
|
|
|
|
|
|
" use the arrowkeys for usefull stuff in normal mode -- switching buffers
|
|
|
|
nnoremap <up> :bfirst<cr>
|
|
|
|
nnoremap <down> :blast<cr>
|
|
|
|
nnoremap <left> :bp<cr>
|
|
|
|
nnoremap <right> :bn<cr>
|
|
|
|
|
2016-12-29 09:36:43 +00:00
|
|
|
" fix a bug in neovim/tmux-navigator
|
|
|
|
nnoremap <silent> <BS> :TmuxNavigateLeft<cr>
|
|
|
|
|
2015-05-05 11:18:25 +00:00
|
|
|
" Bubble/indent lines using unimpaired
|
|
|
|
" using left alt + hjkl on mac usgerman keyboard
|
2017-05-30 10:08:18 +00:00
|
|
|
" those are some weird mappings, but they work!
|
2015-05-05 11:18:25 +00:00
|
|
|
nmap ˚ [e
|
|
|
|
nmap ∆ ]e
|
|
|
|
nmap ˙ <<
|
|
|
|
nmap ¬ >>
|
|
|
|
vmap ˚ [egv
|
|
|
|
vmap ∆ ]egv
|
|
|
|
vmap ˙ <gv
|
|
|
|
vmap ¬ >gv
|
|
|
|
|
|
|
|
" no help while mishitting ESC - awesome
|
2017-05-30 10:08:18 +00:00
|
|
|
" just type :help if you need help is easier
|
2015-05-05 11:18:25 +00:00
|
|
|
noremap <F1> <ESC>
|
|
|
|
|
2016-08-16 12:09:02 +00:00
|
|
|
" hitting jj in insert mode escapes
|
|
|
|
inoremap jj <ESC>
|
2017-03-10 13:21:30 +00:00
|
|
|
inoremap jk <ESC>
|
2016-08-16 12:09:02 +00:00
|
|
|
|
2015-05-05 11:18:25 +00:00
|
|
|
" deactivate stupid ex-mode and man-page stuff
|
|
|
|
nnoremap Q <nop>
|
|
|
|
nnoremap K <nop>
|
|
|
|
|
|
|
|
" reload files when set autoread is active with F5
|
|
|
|
nnoremap <F5> :checktime<CR>
|
|
|
|
|
|
|
|
" For when you forget to sudo.. Really Write the file.
|
|
|
|
cmap w!! w !sudo tee % >/dev/null
|