From 96678bcd9960684373e18de8f9e51ec0c6d32b3e Mon Sep 17 00:00:00 2001 From: ajitsingh Date: Mon, 13 Apr 2015 19:39:25 +0530 Subject: [PATCH] some useful mappings I use everyday --- .vimrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.vimrc b/.vimrc index c84516328..4afabdfd9 100644 --- a/.vimrc +++ b/.vimrc @@ -362,6 +362,20 @@ nmap f8 :set foldlevel=8 nmap f9 :set foldlevel=9 + "UPPERCASE and lowsercase conversion + nnoremap g^ gUiW + nnoremap gv guiW + + "go to first and last char of line + nnoremap H ^ "go to first char of line + nnoremap L g_ "go to last char of line + vnoremap H ^ + vnoremap L g_ + + "use ; to go to command line + nnoremap ; : + vnoremap ; : + " Most prefer to toggle search highlighting rather than clear the current " search results. To clear search highlighting rather than toggle it on " and off, add the following to your .vimrc.before.local file: