|
|
@ -3,6 +3,8 @@ |
|
|
|
" Treat long lines as break lines (useful when moving around in them) |
|
|
|
" Treat long lines as break lines (useful when moving around in them) |
|
|
|
map j gj |
|
|
|
map j gj |
|
|
|
map k gk |
|
|
|
map k gk |
|
|
|
|
|
|
|
nnoremap j gj |
|
|
|
|
|
|
|
nnoremap k gk |
|
|
|
|
|
|
|
|
|
|
|
" fast saving |
|
|
|
" fast saving |
|
|
|
nmap <leader>w :w!<cr> |
|
|
|
nmap <leader>w :w!<cr> |
|
|
@ -22,6 +24,12 @@ map <leader>tn :tabnew<cr> |
|
|
|
map <leader>to :tabonly<cr> |
|
|
|
map <leader>to :tabonly<cr> |
|
|
|
map <leader>tc :tabclose<cr> |
|
|
|
map <leader>tc :tabclose<cr> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Disable arrowkeys |
|
|
|
|
|
|
|
noremap <Up> <Nop> |
|
|
|
|
|
|
|
noremap <Down> <Nop> |
|
|
|
|
|
|
|
noremap <Left> <Nop> |
|
|
|
|
|
|
|
noremap <Right> <Nop> |
|
|
|
|
|
|
|
|
|
|
|
" visual mode copy and paste to system clipboard |
|
|
|
" visual mode copy and paste to system clipboard |
|
|
|
"vmap <C-c> "+y |
|
|
|
"vmap <C-c> "+y |
|
|
|
"vmap <C-x> "+c |
|
|
|
"vmap <C-x> "+c |
|
|
|