Skip to content

Commit

Permalink
New shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwynn committed Dec 19, 2012
1 parent 0b52a04 commit 93b3a20
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions vim/vim.symlink/common.vim
Original file line number Diff line number Diff line change
@@ -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
" ==========

Expand All @@ -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
Expand Down

0 comments on commit 93b3a20

Please sign in to comment.