Last active
May 12, 2021 13:08
-
-
Save just-paja/d8d2fc4153959f78671b9f322204a892 to your computer and use it in GitHub Desktop.
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
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] | |
let g:ctrlp_map = '<C-t>' | |
let g:prettier#autoformat = 1 | |
let g:prettier#autoformat_require_pragma = 0 | |
let g:completor_node_binary = '/usr/bin/node' | |
let g:tern_show_argument_hints='on_hold' | |
let mapleader = ',' | |
augroup FiletypeGroup | |
autocmd! | |
au BufNewFile,BufRead *.jsx set filetype=javascript.jsx | |
augroup END | |
call plug#begin('~/.vim/plugged') | |
Plug 'ap/vim-buftabline' | |
Plug 'ctrlpvim/ctrlp.vim' | |
" Plug 'eslint/eslint' | |
Plug 'fisadev/vim-ctrlp-cmdpalette' | |
Plug 'morhetz/gruvbox' | |
Plug 'pangloss/vim-javascript' | |
Plug 'preservim/nerdtree' | |
" Plug 'prettier/vim-prettier', { 'do': 'yarn install' } | |
Plug 'pseewald/vim-anyfold' | |
Plug 'terryma/vim-multiple-cursors' | |
Plug 'vim-airline/vim-airline' | |
Plug 'ternjs/tern_for_vim', { 'do': 'npm install' } | |
Plug 'maralla/completor.vim', { 'do': 'make js' } | |
Plug 'dense-analysis/ale' | |
Plug 'arrufat/vala.vim' | |
let g:ale_fix_on_save = 1 | |
call plug#end() | |
set background=dark | |
set expandtab | |
set hidden | |
set laststatus=2 | |
set list | |
set number | |
set shiftwidth=2 | |
set showtabline=2 | |
set tabstop=2 | |
filetype plugin indent on | |
syntax on | |
colorscheme gruvbox | |
execute "set <M-\\>=\e\\" | |
map <C-p> :CtrlPCmdPalette<CR> | |
map <C-t> :CtrlP<CR> | |
map <C-b> :CtrlPBuffer<CR> | |
map <C-\> :NERDTreeToggle<CR> | |
map <M-\> :NERDTreeFind<CR> | |
map <Insert> <Nop> | |
noremap <Leader>y "*y | |
noremap <Leader>p "*p | |
noremap <Leader>Y "+y | |
noremap <Leader>P "+p | |
" Close the current buffer and move to the previous one | |
" This replicates the idea of closing a tab | |
nnoremap <leader>bq :<c-u>bp <bar> bd #<cr> | |
" Close all but current buffer | |
nnoremap <leader>bd :<c-u>up <bar> %bd <bar> e#<cr> | |
" Show all open buffers and their status | |
nnoremap <leader>bl :ls<cr> | |
let g:ale_fixers = {'javascript': ['prettier_standard']} | |
let g:ale_linters = {'javascript': ['standard'], 'json': ['jsonlint']} | |
let g:ale_fix_on_save = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment