Guest User

Untitled

a guest
Jan 19th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. function! s:SetVals()
  2. " Save and change any config values we need.
  3.  
  4. " Temporarily change isk to treat periods and opening
  5. " parenthesis as part of a keyword -- so we can complete
  6. " python modules and functions:
  7. let s:pydiction_save_isk = &iskeyword
  8. setlocal iskeyword +=.,(
  9.  
  10. " Save any current dictionaries the user has set:
  11. let s:pydiction_save_dictions = &dictionary
  12. " Temporarily use only pydiction's dictionary:
  13. let &dictionary = g:pydiction_location
  14.  
  15. " Save the ins-completion options the user has set:
  16. let s:pydiction_save_cot = &completeopt
  17. " Have the completion menu show up for one or more matches:
  18. let &completeopt = "menu,menuone"
  19.  
  20. " Set the popup menu height:
  21. let s:pydiction_save_pumheight = &pumheight
  22. if !exists('g:pydiction_menu_height')
  23. let g:pydiction_menu_height = 15
  24. endif
  25. let &pumheight = g:pydiction_menu_height
  26.  
  27. return ''
  28. endfunction
Add Comment
Please, Sign In to add comment