Advertisement
Guest User

Untitled

a guest
Sep 26th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. set nocompatible
  2.  
  3. filetype off
  4.  
  5. set rtp+=~/.vim/bundle/Vundle.vim
  6. call vundle#begin()
  7.  
  8. Plugin 'VundleVim/Vundle.vim'
  9. +" ----- Making Vim look good ------------------------------------------
  10. Plugin 'vim-airline/vim-airline'
  11. Plugin 'vim-airline/vim-airline-themes'
  12. Plugin 'ctrlpvim/ctrlp.vim'
  13. Plugin 'dracula/vim'
  14. Plugin 'w0rp/ale'
  15. Plugin 'pangloss/vim-javascript'
  16. call vundle#end()
  17. filetype plugin indent on
  18.  
  19. " --- General settings ---
  20. set backspace=indent,eol,start
  21. set ruler
  22. set number
  23. set showcmd
  24. set incsearch
  25. set hlsearch
  26. set softtabstop=2
  27. set tabstop=2
  28. set shiftwidth=2
  29. set expandtab
  30. set relativenumber
  31. set mouse=c
  32. set colorcolumn=80
  33. set swapfile
  34. set wildmenu
  35. set clipboard=unnamed
  36. set dir=/tmp
  37. "set shellcmdflag=-ic " source bash
  38. set list
  39. set listchars=tab:\|\ ,trail:•,eol:⌐,nbsp:+
  40. syntax on
  41.  
  42. " ----- Plugin-Specific Settings --------------------------------------
  43.  
  44. " ----- bling/vim-airline settings -----
  45. " Always show statusbar
  46. set laststatus=2
  47.  
  48. " ----- Dracula Color Scheme ----
  49. let g:dracula_colorterm=0
  50. color dracula
  51.  
  52. " ---- Airline -----
  53.  
  54. " Show PASTE if in paste mode
  55. let g:airline_detect_paste=1
  56.  
  57. " Show airline for tabs too
  58. let g:airline#extensions#tabline#enabled = 1
  59. " Show just the filename
  60. let g:airline#extensions#tabline#fnamemod = ':t'
  61. " Patched font for the fancy icons
  62. set guifont=Menlo\ for\ Powerline
  63.  
  64. " ---- Ctrl - P -----
  65.  
  66. " Setup some default ignores
  67. let g:ctrlp_custom_ignore = {
  68. \ 'dir': '\v[\/](\.(git|hg|svn)|\_site)$',
  69. \ 'file': '\v\.(exe|so|dll|class|png|jpg|jpeg)$',
  70. \}
  71. set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
  72. " Use the nearest .git directory as the cwd
  73. " This makes a lot of sense if you are working on a project that is in version
  74. " control. It also supports works with .svn, .hg, .bzr.
  75. let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
  76. let g:ctrlp_working_path_mode = 'r'
  77.  
  78. " ---- ALE ----
  79. " Configuring fixers used
  80. let g:ale_fixers = {
  81. \ 'javascript': ['eslint'],
  82. \ 'java': ['google_java_format'],
  83. \ 'python': ['autopep8'],
  84. \ 'c': ['clang-format'],
  85. \ 'go': ['gofmt'],
  86. \}
  87.  
  88. " Configuting linters used
  89. let g:ale_linters = {
  90. \ 'javascript': ['eslint'],
  91. \ 'typescript': ['tslint'],
  92. \ 'java': ['javac'],
  93. \ 'python': ['pycodestyle', 'pylint'],
  94. \}
  95.  
  96. " Set this setting in vimrc if you want to fix files automatically on save.
  97. " This is off by default.
  98. let g:ale_fix_on_save = 1
  99.  
  100. " Set this. Airline will handle the rest.
  101. let g:airline#extensions#ale#enabled = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement