You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.1 KiB
62 lines
2.1 KiB
" link destination: $HOME/.vimrc
|
|
|
|
" Enable modern Vim features not compatible with Vi spec.
|
|
set nocompatible
|
|
|
|
" Enable mouse support.
|
|
set mouse=a
|
|
|
|
" Run Pathogen package manager
|
|
execute pathogen#infect()
|
|
|
|
" Set up vim-gfm-syntax
|
|
let g:gfm_syntax_emoji_conceal = 0
|
|
|
|
" Enable file type based indent configuration and syntax highlighting.
|
|
" Note that when code is pasted via the terminal, vim by default does not detect
|
|
" that the code is pasted (as opposed to when using vim's paste mappings), which
|
|
" leads to incorrect indentation when indent mode is on.
|
|
" To work around this, use ":set paste" / ":set nopaste" to toggle paste mode.
|
|
" You can also use a plugin to:
|
|
" - enter insert mode with paste (https://github.com/tpope/vim-unimpaired)
|
|
" - auto-detect pasting (https://github.com/ConradIrwin/vim-bracketed-paste)
|
|
filetype plugin indent on
|
|
syntax on
|
|
|
|
let g:ale_linters = {
|
|
\ 'javascript': ['standard'],
|
|
\}
|
|
let g:ale_fixers = {'javascript': ['standard']}
|
|
let g:ale_lint_on_save = 1
|
|
let g:ale_fix_on_save = 1
|
|
let g:ale_sign_column_always = 1
|
|
let g:airline#extensions#ale#enabled = 1
|
|
hi ALEError ctermbg=DarkRed ctermfg=White
|
|
hi ALEWarning ctermbg=106 ctermfg=Black
|
|
|
|
let g:airline#extensions#tabline#enabled = 1
|
|
set modeline
|
|
set expandtab
|
|
set shiftwidth=2
|
|
set softtabstop=2
|
|
set laststatus=2
|
|
hi Statement ctermfg=3 guifg=#C4A000
|
|
|
|
set synmaxcol=1000
|
|
set foldmethod=syntax
|
|
let javaScript_Fold=1
|
|
set foldcolumn=1
|
|
set foldlevelstart=99
|
|
let g:javascript_conceal_function = "ƒ"
|
|
let g:javascript_conceal_null = "ø"
|
|
let g:javascript_conceal_this = "@"
|
|
"let g:javascript_conceal_return = "⇚"
|
|
let g:javascript_conceal_undefined = "¿"
|
|
"let g:javascript_conceal_NaN = "ℕ"
|
|
let g:javascript_conceal_prototype = "¶"
|
|
let g:javascript_conceal_static = "•"
|
|
let g:javascript_conceal_super = "Ω"
|
|
let g:javascript_conceal_arrow_function = "⇒"
|
|
let g:javascript_conceal_noarg_arrow_function = "🞅"
|
|
let g:javascript_conceal_underscore_arrow_function = "🞅"
|
|
set conceallevel=1
|
|
|