Skip to content

Commit

Permalink
Merge pull request #1 from chechoRP/master
Browse files Browse the repository at this point in the history
Location List Mappings
  • Loading branch information
NLKNguyen committed Sep 5, 2015
2 parents 898e6cb + 0a54574 commit 45d63c4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ Or manually copy `easy-navigate.vim` to `~/.vim/plugin/`
| `]Q` | Go to last error | `:clast`
| `[Q` | Go to first error | `:cfirst`

**Navigate Between Location List Items**

| Keys | Action | Equivalence
| ----: | --- | ---
| `]l` | Go to next item | `:lnext`
| `[l` | Go to previous item | `:lprevious`
| `]L` | Go to last item | `:llast`
| `[L` | Go to first item | `:lfirst`


**Navigate Between Wrapped Lines**
*These don't affect the usual behavior of the motion keys*
Expand Down
6 changes: 6 additions & 0 deletions plugin/easy-navigate.vim
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ noremap ]q :cnext<CR>
noremap [Q :cfirst<CR>
noremap ]Q :clast<CR>
" Location List
noremap [l :lprevious<CR>
noremap ]l :lnext<CR>
noremap [L :lfirst<CR>
noremap ]L :llast<CR>
" Buffer
nnoremap [b :bprevious<CR>
nnoremap ]b :bnext<CR>
Expand Down

0 comments on commit 45d63c4

Please sign in to comment.