Advertisement
Guest User

working-separated-legacy-and-vim9

a guest
May 2nd, 2025
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. set nocompatible
  2.  
  3. " Plugin installation
  4. runtime plug.vim
  5.  
  6. call plug#begin()
  7. Plug 'morhetz/gruvbox'
  8. Plug 'neoclide/coc.nvim', {'branch': 'release'}
  9. Plug 'preservim/nerdtree'
  10. Plug 'Xuyuanp/nerdtree-git-plugin'
  11. Plug 'tpope/vim-fugitive'
  12. Plug 'tpope/vim-commentary'
  13. call plug#end()
  14.  
  15. " CoC configuration
  16. " def CheckBackspace(): bool
  17. " var col = col('.') - 1
  18. " return !col || getline('.')[col - 1] =~# '\s'
  19. " enddef
  20.  
  21. " inoremap <silent><expr> <C-@>
  22. " \ coc#pum#visible() ? coc#pum#next(1) :
  23. " \ CheckBackspace() ? "\<C-@>" :
  24. " \ coc#refresh()
  25.  
  26. " inoremap <expr> <cr> coc#pum#visible() ? coc#pum#confirm() : "\<CR>"
  27. " inoremap <expr> <C-N> coc#pum#visible() ? coc#pum#next(1) : ""
  28. " inoremap <expr> <C-P> coc#pum#visible() ? coc#pum#prev(1) : ""
  29. " inoremap <expr> <C-[> coc#pum#visible() ? coc#pum#close() : "\<ESC>"
  30.  
  31. " coc-ansible
  32. " let g:coc_filetype_map = { 'yaml.ansible': 'ansible' }
  33.  
  34. " Loading vim9 script
  35. runtime vim9rc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement