Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Lisp Navigation
- let b:search = ''
- function! SaveSearch()
- let b:search = @/
- endfunction
- function! RestoreSearch()
- let @/ = b:search
- endfunction
- nnoremap <up> :call SaveSearch()<cr>?^\s*(\s*\S?e<cr>:call RestoreSearch()<cr>
- nnoremap <down> :call SaveSearch()<cr>/^\s*(\s*\S/e<cr>:call RestoreSearch()<cr>
- nnoremap <right> :call SaveSearch()<cr>/(\s*\S/e<cr>:call RestoreSearch()<cr>
- nnoremap <left> :call SaveSearch()<cr>?(\s*\S?e<cr>:call RestoreSearch()<cr>
Advertisement
Add Comment
Please, Sign In to add comment