Skip to content

Instantly share code, notes, and snippets.

@dimaqq
Created August 10, 2023 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimaqq/7136e103497cec4cb495da631df2ae68 to your computer and use it in GitHub Desktop.
Save dimaqq/7136e103497cec4cb495da631df2ae68 to your computer and use it in GitHub Desktop.
" -*- coding: utf-8 -*-
" scriptencoding utf-8
set termencoding=utf-8
set termguicolors
set encoding=utf-8
setglobal fileencoding=utf-8
syntax on
set hls
set expandtab
set colorcolumn=88
set grepprg=ag\ --vimgrep\ -W\ 88
setlocal spell
" Ex mode begone!
nnoremap Q <Nop>
cnoreabbrev ag grep
filetype plugin indent on
autocmd FileType css setlocal ts=2 sts=2 sw=2 expandtab spell
autocmd FileType html setlocal ts=2 sts=2 sw=2 expandtab spell
autocmd FileType json setlocal ts=2 sts=2 sw=2 expandtab spell
autocmd FileType javascript setlocal ts=2 sts=2 sw=2 expandtab spell
autocmd FileType javascript.jsx setlocal ts=2 sts=2 sw=2 expandtab spell
autocmd FileType typescriptreact setlocal ts=2 sts=2 sw=2 expandtab spell
autocmd FileType typescript setlocal ts=2 sts=2 sw=2 expandtab spell
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab spell
autocmd FileType py setlocal spell
autocmd FileType markdown setlocal spell
call plug#begin('~/.vim/plugged')
"Plug 'cormacrelf/vim-colors-github'
"Plug 'othree/yajs.vim'
"Plug 'pangloss/vim-javascript'
"Plug 'mxw/vim-jsx'
Plug 'leafgarland/typescript-vim'
"Plug 'Quramy/tsuquyomi'
Plug 'w0rp/ale'
call plug#end()
" Doesn't work?
" autocmd FileType py ALEDisable
" autocmd FileType py let b:ale_linters = ["pyre"]
" autocmd FileType javascript.jsx let b:ale_linters = ["eslint", "stylelint"]
" autocmd FileType py let b:ale_linters = ['flake8']
" let g:ale_python_flake8_options = "--max-line-length=88"
" set fillchars=vert:¿,stl:¿,stlnc:¿,diff:-
" set fillchars=vert:¿,stl:¿,stlnc:¿,diff:-
set fillchars=vert:⌑,stl:⌑,stlnc:⌑,diff:-
hi clear StatusLine
hi clear VertSplit
hi clear StatusLineNC
hi clear ColorColumn
hi ColorColumn cterm=bold
hi VertSplit ctermfg=242
hi StatusLine ctermfg=248
hi StatusLineNC ctermfg=242
hi Comment cterm=italic
hi SpellBad ctermbg=52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment