Advertisement
Guest User

sojboy_vim

a guest
Aug 21st, 2018
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.71 KB | None | 0 0
  1. "Configure Vundle
  2. syntax on
  3. set number
  4. set nocompatible
  5. set autoindent
  6. set shiftwidth=4
  7. set smartindent
  8. set smarttab   
  9. set softtabstop=4
  10. "filetype off
  11.  
  12. "Vundle config
  13. set rtp+=~/.vim/bundle/Vundle.vim
  14. call vundle#begin()
  15.  
  16. "need this to install Vundle
  17. Plugin 'gmarik/Vundle.vim'
  18.  
  19.  "24-bit color configuration
  20. "Use 24-bit (true-color) mode in Vim/Neovim when outside tmux.
  21. "If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support
  22. "(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.)
  23. if (empty($TMUX))
  24.   if (has("nvim"))
  25.     "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
  26.     let $NVIM_TUI_ENABLE_TRUE_COLOR=1
  27.   endif
  28.   "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
  29.   "Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
  30.   " < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
  31.   if (has("termguicolors"))
  32.     set termguicolors
  33.   endif
  34. endif
  35.  
  36. " ---- Plugins ----
  37. Plugin 'JamshedVesuna/vim-markdown-preview'
  38. Plugin 'joshdick/onedark.vim'
  39. Plugin 'sheerun/vim-polyglot'
  40. Plugin 'mattn/emmet-vim'
  41. Plugin 'airblade/vim-gitgutter'
  42. Plugin 'vim-airline/vim-airline'
  43. Plugin 'vim-airline/vim-airline-themes'
  44. Plugin 'scrooloose/nerdtree'
  45. Plugin 'editorconfig/editorconfig-vim'
  46. Plugin 'dracula/vim'
  47.  
  48. call vundle#end()
  49. filetype plugin on
  50.  
  51. colorscheme onedark
  52. let g:lightline = {
  53.       \ 'colorscheme': 'onedark',
  54.         \ }
  55.  
  56. "Shortcuts
  57. map <C-b> :NERDTreeToggle<CR>
  58. map <C-Right> :tabnext<CR>
  59. map <C-Left> :tabprevious<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement