Add My Remap
This commit is contained in:
parent
e25674d6e1
commit
7700d51182
1 changed files with 13 additions and 0 deletions
|
@ -51,6 +51,19 @@ nmap <leader>w :w!<cr>
|
||||||
" (useful for handling the permission-denied error)
|
" (useful for handling the permission-denied error)
|
||||||
command W w !sudo tee % > /dev/null
|
command W w !sudo tee % > /dev/null
|
||||||
|
|
||||||
|
" Show number and set to relative number
|
||||||
|
set number
|
||||||
|
set relativenumber
|
||||||
|
|
||||||
|
" Toggle relative number
|
||||||
|
nnoremap <silent> <leader>nb :set relativenumber!<CR>
|
||||||
|
|
||||||
|
" Make j and k move to the next row, not the file line
|
||||||
|
nnoremap j gj
|
||||||
|
nnoremap k gk
|
||||||
|
|
||||||
|
" Remap esc key to jk
|
||||||
|
inoremap jk <esc>
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => VIM user interface
|
" => VIM user interface
|
||||||
|
|
Loading…
Reference in a new issue