Skip to content
Browse files

New shortcuts

  • Loading branch information...
1 parent 0b52a04 commit 93b3a20cb4fecc7817d6256222f19643667c8995 @pengwynn committed
Showing with 14 additions and 2 deletions.
  1. +14 −2 vim/vim.symlink/common.vim
View
16 vim/vim.symlink/common.vim
@@ -1,3 +1,16 @@
+" Navigation
+" ==========
+" Move between wrapped lines as though they were physical lines.
+noremap k gk
+noremap j gj
+noremap <up> g<up>
+noremap <down> g<down>
+
+" Easier start & end of line.
+noremap H ^
+nnoremap L $
+vnoremap L $h
+
" Windows
" ==========
@@ -8,8 +21,7 @@ nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l
" Toggle paste
-nnoremap <F6> :set invpaste paste?<CR>
-set pastetoggle=<F6>
+nnoremap <leader>p :set invpaste paste?<CR>
set showmode
" Toggle case

0 comments on commit 93b3a20

Please sign in to comment.
Something went wrong with that request. Please try again.