More bindings

This commit is contained in:
madmaurice 2015-10-25 19:42:03 +01:00
parent b7b431038f
commit e7c3c2fa27

View file

@ -80,15 +80,21 @@ set wrap "wrap lines
let mapleader = ","
" Make double-<Esc> clear search highlights
" nnoremap <silent> <Esc><Esc> :nohlsearch<CR>
nnoremap <silent> <leader><space> :noh<cr>
nnoremap <silent> <leader><space> :noh<cr>
nnoremap <silent> <leader>c :%s/\s\+$//e<cr>
nnoremap <silent> <leader>v :%s/\n\{3,}/\r\r/e<cr>
nnoremap <silent> <leader>p :set invpaste paste?<cr>
nnoremap <silent> <leader>a= :Tabularise /=<cr>
vnoremap <silent> <leader>a= :'<,'>Tabularize /=<cr>
inoremap <F1> <nop>
nnoremap <F1> <nop>
vnoremap <F1> <nop>
nnoremap q <nop>
ino <down> <Nop>
ino <up> <Nop>
ino <left> <Nop>
ino <right> <Nop>
nnoremap / /\v
vnoremap / /\v
@ -103,8 +109,6 @@ nnoremap U <c-r>
highlight WhitespaceEOL ctermbg=Red guibg=Red
match WhitespaceEOL /\s\+$/
nnoremap <silent> <leader>f :normal gg=G<CR>
set statusline=%m
set statusline+=\ %f
set statusline+=%=