More bindings
This commit is contained in:
parent
b7b431038f
commit
e7c3c2fa27
1 changed files with 10 additions and 6 deletions
14
vim/.vimrc
14
vim/.vimrc
|
@ -80,15 +80,21 @@ set wrap "wrap lines
|
||||||
|
|
||||||
let mapleader = ","
|
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>
|
inoremap <F1> <nop>
|
||||||
nnoremap <F1> <nop>
|
nnoremap <F1> <nop>
|
||||||
vnoremap <F1> <nop>
|
vnoremap <F1> <nop>
|
||||||
nnoremap q <nop>
|
|
||||||
|
|
||||||
|
ino <down> <Nop>
|
||||||
|
ino <up> <Nop>
|
||||||
|
ino <left> <Nop>
|
||||||
|
ino <right> <Nop>
|
||||||
|
|
||||||
nnoremap / /\v
|
nnoremap / /\v
|
||||||
vnoremap / /\v
|
vnoremap / /\v
|
||||||
|
@ -103,8 +109,6 @@ nnoremap U <c-r>
|
||||||
highlight WhitespaceEOL ctermbg=Red guibg=Red
|
highlight WhitespaceEOL ctermbg=Red guibg=Red
|
||||||
match WhitespaceEOL /\s\+$/
|
match WhitespaceEOL /\s\+$/
|
||||||
|
|
||||||
nnoremap <silent> <leader>f :normal gg=G<CR>
|
|
||||||
|
|
||||||
set statusline=%m
|
set statusline=%m
|
||||||
set statusline+=\ %f
|
set statusline+=\ %f
|
||||||
set statusline+=%=
|
set statusline+=%=
|
||||||
|
|
Loading…
Reference in a new issue