Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " VIM Configuration - DarKou
- " Cancel VI compatibility
- set nocompatible
- " -- Vim-plug
- if empty(glob('~/.vim/autoload/plug.vim'))
- silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
- \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
- endif
- call plug#begin('~/.vim/plugged')
- Plug 'arcticicestudio/nord-vim'
- Plug 'preservim/nerdtree'
- Plug 'kshenoy/vim-signature'
- " Plug 'eslint/eslint'
- Plug 'w0rp/ale'
- " Initialize plugin system
- call plug#end()
- " -- Display
- colorscheme nord
- set title
- set number
- set ruler
- set wrap
- set scrolloff=5
- syntax enable
- filetype on
- filetype plugin on
- filetype indent on
- :highlight ExtraWhitespace ctermbg=red guibg=red
- :match ExtraWhitespace /\s\+$/
- " -- File browser (NERDTree)
- map <silent> <C-f> :NERDTree<CR>
- " -- Search
- set ignorecase
- set smartcase
- set incsearch
- set hlsearch
- " -- Beep
- set visualbell
- set noerrorbells
- "
- set backspace=indent,eol,start
- " Hide file when open other file
- set hidden
- " Disable arrow keys
- map <left> <nop>
- map <down> <nop>
- map <up> <nop>
- map <right> <nop>
- imap <left> <nop>
- imap <down> <nop>
- imap <up> <nop>
- imap <right> <nop>
- " Remap esc key
- :imap <C-x> <Esc>
- :map <C-x> <Esc>
- " Code formating
- let b:ale_linters = ['eslint']
- let g:ale_fixers = {
- \ 'javascript': ['eslint']
- \ }
- let g:ale_sign_error = '❌'
- let g:ale_sign_warning = '⚠️'
- let g:ale_fix_on_save = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement