Created
January 17, 2022 09:24
-
-
Save Aetherus/96a0961884a8bb4c1090acc1a388369f to your computer and use it in GitHub Desktop.
Vimrc
This file contains 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
call plug#begin('~/.vim/plugged') | |
Plug 'scrooloose/nerdtree' | |
Plug 'tpope/vim-fugitive' | |
Plug 'tpope/vim-surround' | |
Plug 'scrooloose/nerdcommenter' | |
Plug 'ervandew/supertab' | |
Plug 'elixir-lang/vim-elixir' | |
Plug 'slashmili/alchemist.vim' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'will133/vim-dirdiff' | |
Plug 'antoyo/vim-licenses' | |
Plug 'posva/vim-vue' | |
Plug 'tpope/vim-commentary' | |
Plug 'bagrat/vim-buffet' | |
Plug 'dense-analysis/ale' | |
Plug 'GrzegorzKozub/vim-elixirls', { 'do': ':ElixirLsCompileSync' } | |
call plug#end() | |
set tabstop=2 softtabstop=0 expandtab shiftwidth=2 smarttab number nowrap encoding=UTF-8 | |
let mapleader = "." | |
filetype plugin on | |
let NERDTreeShowHidden=1 | |
let g:NERDSpaceDelims = 1 | |
let g:NERDTrimTrailingWhitespace = 1 | |
let g:licenses_authors_name = 'Aetherus, Zhou <[email protected]>' | |
syntax on | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif | |
if has('nvim') | |
let s:user_dir = stdpath('config') | |
else | |
let s:user_dir = has('win32') ? expand('~/vimfiles') : expand('~/.vim') | |
endif | |
let g:ale_elixir_elixir_ls_release = s:user_dir . '/plugins/vim-elixirls/elixir-ls/release' | |
" https://github.com/JakeBecker/elixir-ls/issues/54 | |
let g:ale_elixir_elixir_ls_config = { 'elixirLS': { 'dialyzerEnabled': v:false } } | |
let g:ale_linters = {} | |
let g:ale_linters.elixir = [ 'credo', 'elixir-ls' ] | |
autocmd FileType elixir,eelixir nnoremap <C-]> :ALEGoToDefinition<CR> | |
autocmd FileType elixir,eelixir nnoremap <C-\> :ALEFindReferences<CR> | |
let g:buffet_powerline_separators = 1 | |
let g:buffet_show_index = 1 | |
nmap <leader>1 <Plug>BuffetSwitch(1) | |
nmap <leader>2 <Plug>BuffetSwitch(2) | |
nmap <leader>3 <Plug>BuffetSwitch(3) | |
nmap <leader>4 <Plug>BuffetSwitch(4) | |
nmap <leader>5 <Plug>BuffetSwitch(5) | |
nmap <leader>6 <Plug>BuffetSwitch(6) | |
nmap <leader>7 <Plug>BuffetSwitch(7) | |
nmap <leader>8 <Plug>BuffetSwitch(8) | |
nmap <leader>9 <Plug>BuffetSwitch(9) | |
nmap <leader>0 <Plug>BuffetSwitch(10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment