Skip to content

Commit 96678bc

Browse files
committed
some useful mappings I use everyday
1 parent 80f430d commit 96678bc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.vimrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,20 @@
362362
nmap <leader>f8 :set foldlevel=8<CR>
363363
nmap <leader>f9 :set foldlevel=9<CR>
364364
365+
"UPPERCASE and lowsercase conversion
366+
nnoremap g^ gUiW
367+
nnoremap gv guiW
368+
369+
"go to first and last char of line
370+
nnoremap H ^ "go to first char of line
371+
nnoremap L g_ "go to last char of line
372+
vnoremap H ^
373+
vnoremap L g_
374+
375+
"use ; to go to command line
376+
nnoremap ; :
377+
vnoremap ; :
378+
365379
" Most prefer to toggle search highlighting rather than clear the current
366380
" search results. To clear search highlighting rather than toggle it on
367381
" and off, add the following to your .vimrc.before.local file:

0 commit comments

Comments
 (0)