Last active
July 16, 2019 02:22
-
-
Save wkei/f5db0c97f66ff8e9a3d3696fa1f07789 to your computer and use it in GitHub Desktop.
dotfiles
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
export PS1="\W \\$ " | |
# alias | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias l="ls -Ga" | |
alias zshrc="vim ~/.zshrc" | |
alias gs="git status" | |
alias gb="git branch" | |
alias gl="git log" | |
alias gsl="git stash list" | |
alias gco="git checkout" | |
alias gcob="git checkout -b" | |
alias rm="rm -i" | |
alias copy="pbcopy <" | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
# export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git' | |
export FZF_DEFAULT_COMMAND='fd --type f' | |
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
set encoding=utf-8 | |
set nocompatible | |
filetype plugin indent on | |
call plug#begin('~/.vim/plugged') | |
" theme | |
Plug 'ayu-theme/ayu-vim' | |
" syntax | |
Plug 'pangloss/vim-javascript' | |
Plug 'leafgarland/typescript-vim' | |
Plug 'mxw/vim-jsx' | |
Plug 'posva/vim-vue' | |
Plug 'iloginow/vim-stylus' | |
Plug 'Yggdroot/indentLine' | |
Plug 'Quramy/vim-js-pretty-template' | |
" edit tools | |
Plug 'editorconfig/editorconfig-vim' | |
Plug 'tpope/vim-commentary' | |
" extra tools | |
Plug '/usr/local/opt/fzf' | |
Plug 'junegunn/fzf.vim' | |
call plug#end() | |
" ui | |
set termguicolors " enable true colors support | |
let ayucolor="mirage" " for mirage version of theme | |
colorscheme ayu | |
syntax on | |
set nu | |
set ruler | |
set cursorline | |
set mouse=a | |
" tab & indent | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set smartindent | |
set autoindent | |
" modify backspace key | |
set backspace=indent,eol,start | |
" share clipboard | |
set clipboard=unnamed | |
" search | |
set hlsearch | |
set incsearch | |
set ignorecase | |
set smartcase | |
set showmatch | |
" turn off search highlight | |
map <c-l> :noh<cr> | |
" https://shapeshed.com/vim-netrw/ | |
" open tree | |
map <c-x> :Vex<cr> | |
let g:netrw_banner = 0 | |
let g:netrw_liststyle = 3 | |
let g:netrw_browse_split = 4 | |
let g:netrw_altv = 1 | |
let g:netrw_winsize = 18 | |
augroup ProjectDrawer | |
autocmd! | |
autocmd VimEnter * :Vexplore | |
autocmd VimEnter * :wincmd p | |
augroup END | |
" https://github.com/junegunn/fzf.vim | |
" This is the default extra key bindings | |
map <c-p> :Files<cr> | |
let g:fzf_action = { | |
\ 'ctrl-t': 'tab split', | |
\ 'ctrl-x': 'split', | |
\ 'ctrl-v': 'vsplit' } | |
let g:fzf_history_dir = '~/.local/share/fzf-history' | |
"ts | |
let g:typescript_indent_disable = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment