Advertisement
Guest User

vimrc

a guest
Jun 15th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.51 KB | None | 0 0
  1. " VIM Configuration - DarKou
  2.  
  3. " Cancel VI compatibility
  4. set nocompatible
  5.  
  6. " -- Vim-plug
  7. if empty(glob('~/.vim/autoload/plug.vim'))
  8.   silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
  9.     \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  10.   autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
  11. endif
  12.  
  13. call plug#begin('~/.vim/plugged')
  14.         Plug 'arcticicestudio/nord-vim'
  15.         Plug 'preservim/nerdtree'
  16.         Plug 'kshenoy/vim-signature'
  17.         "       Plug 'eslint/eslint'
  18.         Plug 'w0rp/ale'
  19. " Initialize plugin system
  20. call plug#end()
  21.  
  22. " -- Display
  23. colorscheme nord
  24. set title
  25. set number
  26. set ruler
  27. set wrap
  28. set scrolloff=5
  29. syntax enable
  30.  
  31. filetype on
  32. filetype plugin on
  33. filetype indent on
  34.  
  35. :highlight ExtraWhitespace ctermbg=red guibg=red
  36. :match ExtraWhitespace /\s\+$/
  37.  
  38. " -- File browser (NERDTree)
  39. map <silent> <C-f> :NERDTree<CR>
  40.  
  41. " -- Search
  42. set ignorecase
  43. set smartcase
  44. set incsearch
  45. set hlsearch
  46.  
  47. " -- Beep
  48. set visualbell
  49. set noerrorbells
  50.  
  51. "
  52. set backspace=indent,eol,start
  53.  
  54. " Hide file when open other file
  55. set hidden
  56.  
  57. " Disable arrow keys
  58. map <left> <nop>
  59. map <down> <nop>
  60. map <up> <nop>
  61. map <right> <nop>
  62. imap <left> <nop>
  63. imap <down> <nop>
  64. imap <up> <nop>
  65. imap <right> <nop>
  66.  
  67. " Remap esc key
  68. :imap <C-x> <Esc>
  69. :map <C-x> <Esc>
  70.  
  71. " Code formating
  72. let b:ale_linters = ['eslint']
  73. let g:ale_fixers = {
  74.  \ 'javascript': ['eslint']
  75.  \ }
  76. let g:ale_sign_error = '❌'
  77. let g:ale_sign_warning = '⚠️'
  78. let g:ale_fix_on_save = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement