Commits

Frank Fischer  committed e38293d

enable search-commands in motion-mode

  • Participants
  • Parent commits c95a459

Comments (0)

Files changed (2)

 
 (vim:nmap "J" 'vim:cmd-join-lines)
 
-(vim:nmap "/" 'vim:motion-search-fwd)
-(vim:nmap "?" 'vim:motion-search-bwd)
-(vim:nmap "*" 'vim:search-word)
-(vim:nmap "#" 'vim:search-word-backward)
-(vim:nmap "g*" 'vim:search-unbounded-word)
-(vim:nmap "g#" 'vim:search-unbounded-word-backward)
+(vim:mmap "/" 'vim:motion-search-fwd)
+(vim:mmap "?" 'vim:motion-search-bwd)
+(vim:mmap "*" 'vim:search-word)
+(vim:mmap "#" 'vim:search-word-backward)
+(vim:mmap "g*" 'vim:search-unbounded-word)
+(vim:mmap "g#" 'vim:search-unbounded-word-backward)
+(vim:mmap (kbd "C-n") 'vim:motion-search-next)
+(vim:mmap (kbd "C-S-N") 'vim:motion-search-next-reverse)
 (vim:nmap "n" 'vim:motion-search-next)
 (vim:nmap "N" 'vim:motion-search-next-reverse)
 
 ;;; Changelog:
 
 ;; version 0.5
+;;     * enable search commands /, ?, *, #, g*, g# in motion-mode,
+;;       repeat search with C-n and C-N instead of n and N
 ;;     * : starts ex-mode in motion-mode
 ;;     * C-: starts ex-mode in window-mode
 ;;     * command can take an addition force argument which is set