Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible
- filetype off
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- Plugin 'VundleVim/Vundle.vim'
- +" ----- Making Vim look good ------------------------------------------
- Plugin 'vim-airline/vim-airline'
- Plugin 'vim-airline/vim-airline-themes'
- Plugin 'ctrlpvim/ctrlp.vim'
- Plugin 'dracula/vim'
- Plugin 'w0rp/ale'
- Plugin 'pangloss/vim-javascript'
- call vundle#end()
- filetype plugin indent on
- " --- General settings ---
- set backspace=indent,eol,start
- set ruler
- set number
- set showcmd
- set incsearch
- set hlsearch
- set softtabstop=2
- set tabstop=2
- set shiftwidth=2
- set expandtab
- set relativenumber
- set mouse=c
- set colorcolumn=80
- set swapfile
- set wildmenu
- set clipboard=unnamed
- set dir=/tmp
- "set shellcmdflag=-ic " source bash
- set list
- set listchars=tab:\|\ ,trail:•,eol:⌐,nbsp:+
- syntax on
- " ----- Plugin-Specific Settings --------------------------------------
- " ----- bling/vim-airline settings -----
- " Always show statusbar
- set laststatus=2
- " ----- Dracula Color Scheme ----
- let g:dracula_colorterm=0
- color dracula
- " ---- Airline -----
- " Show PASTE if in paste mode
- let g:airline_detect_paste=1
- " Show airline for tabs too
- let g:airline#extensions#tabline#enabled = 1
- " Show just the filename
- let g:airline#extensions#tabline#fnamemod = ':t'
- " Patched font for the fancy icons
- set guifont=Menlo\ for\ Powerline
- " ---- Ctrl - P -----
- " Setup some default ignores
- let g:ctrlp_custom_ignore = {
- \ 'dir': '\v[\/](\.(git|hg|svn)|\_site)$',
- \ 'file': '\v\.(exe|so|dll|class|png|jpg|jpeg)$',
- \}
- set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
- " Use the nearest .git directory as the cwd
- " This makes a lot of sense if you are working on a project that is in version
- " control. It also supports works with .svn, .hg, .bzr.
- let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
- let g:ctrlp_working_path_mode = 'r'
- " ---- ALE ----
- " Configuring fixers used
- let g:ale_fixers = {
- \ 'javascript': ['eslint'],
- \ 'java': ['google_java_format'],
- \ 'python': ['autopep8'],
- \ 'c': ['clang-format'],
- \ 'go': ['gofmt'],
- \}
- " Configuting linters used
- let g:ale_linters = {
- \ 'javascript': ['eslint'],
- \ 'typescript': ['tslint'],
- \ 'java': ['javac'],
- \ 'python': ['pycodestyle', 'pylint'],
- \}
- " Set this setting in vimrc if you want to fix files automatically on save.
- " This is off by default.
- let g:ale_fix_on_save = 1
- " Set this. Airline will handle the rest.
- let g:airline#extensions#ale#enabled = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement