Enable C-p - hippie-expand only in vim style

This commit is contained in:
Muneeb Shaikh 2016-02-01 16:19:37 +05:30
parent 18874c9a3e
commit 7863cf1613

View file

@ -168,7 +168,8 @@
(defun auto-completion/init-hippie-exp ()
;; replace dabbrev-expand
(global-set-key (kbd "M-/") 'hippie-expand)
(define-key evil-insert-state-map (kbd "C-p") 'hippie-expand)
(when (eq dotspacemacs-editing-style 'vim)
(define-key evil-insert-state-map (kbd "C-p") 'hippie-expand))
(setq hippie-expand-try-functions-list
'(
;; Try to expand word "dynamically", searching the current buffer.