You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.4 KiB

  1. source ~/vimconfigbase.vim
  2. " Automate plug.vim installation:
  3. let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
  4. if empty(glob(data_dir . '/autoload/plug.vim'))
  5. silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
  6. autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
  7. endif
  8. call plug#begin(expand('~/.vim/plugged'))
  9. nnoremap <Space> <nop>
  10. let mapleader = "\<Space>"
  11. let g:mapleader = "\<Space>"
  12. let maplocalleader = "\<Space>"
  13. Plug 'liuchengxu/space-vim-dark'
  14. Plug 'morhetz/gruvbox'
  15. Plug 'rakr/vim-one'
  16. " Plug 'godlygeek/tabular'
  17. " Plug 'preservim/vim-markdown'
  18. " focus mode
  19. Plug 'junegunn/goyo.vim'
  20. " vimwiki
  21. Plug 'vimwiki/vimwiki'
  22. call plug#end()
  23. " copy&paste from system clipboard
  24. vnoremap <leader>y "+y
  25. vnoremap <leader>p "+p
  26. " next 3 lines are needed for vimwiki
  27. set nocompatible
  28. filetype plugin on
  29. syntax on
  30. " vimwiki with markdown
  31. let g:vimwiki_list = [{'path': '~/vimwiki/',
  32. \ 'syntax': 'markdown', 'ext': '.md'}]
  33. " prevent vimwiki of setting conceallevel=2:
  34. let g:vimwiki_conceallevel=2
  35. " to allow backspacing over everything in insert mode
  36. set backspace=indent,eol,start
  37. " tab to translate into 2 spaces
  38. set shiftwidth=2
  39. set termguicolors
  40. colorscheme space-vim-dark
  41. "colorscheme gruvbox
  42. set background=dark
  43. highlight normal ctermbg=0 guibg=#000000