Last active
June 19, 2019 16:30
-
-
Save smoothml/26e360d2ebc85f96899628da20a49a9f to your computer and use it in GitHub Desktop.
Vim config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
" Plugins | |
Plugin 'w0rp/ale' | |
Plugin 'Valloric/YouCompleteMe' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
"split navigations | |
nnoremap <C-J> <C-W><C-J> | |
nnoremap <C-K> <C-W><C-K> | |
nnoremap <C-L> <C-W><C-L> | |
nnoremap <C-H> <C-W><C-H> | |
" syntax highlighting | |
syntax on | |
colorscheme molokai | |
highlight Comment cterm=bold | |
" add line numbers | |
set nu | |
" set encoding | |
set encoding=utf-8 | |
" Make backspace work properly | |
set backspace=2 | |
set backspace=indent,eol,start | |
" Python configuration | |
au BufNewFile,BufRead *.py | |
\ set tabstop=4 | | |
\ set softtabstop=4 | | |
\ set shiftwidth=4 | | |
\ set textwidth=79 | | |
\ set expandtab | | |
\ set autoindent | | |
\ set fileformat=unix | |
" Web development et al. | |
au BufNewFile,BufRead *.html, *.css, *.sh, *.yml, *.yaml | |
\ set tabstop=2 | | |
\ set softtabstop=2 | | |
\ set shiftwidth=2 | | |
\ set expandtab | |
" Linting | |
let g:ale_linters = {'python': ['flake8']} | |
let g:ale_lint_on_text_changed = 'always' | |
let g:ale_sign_column_always = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment