Cleanup aliases, markdown syntax in vim

This commit is contained in:
2020-05-27 13:50:01 -07:00
parent addbe7e1f2
commit 90bd2e6d70
2 changed files with 5 additions and 14 deletions

6
.vimrc
View File

@@ -31,9 +31,6 @@ if has('nvim')
autocmd FileType typescript nnoremap <buffer> <C-]> :TSDef<CR> autocmd FileType typescript nnoremap <buffer> <C-]> :TSDef<CR>
autocmd FileType typescript nnoremap <buffer> <Leader>t :TSType<CR> autocmd FileType typescript nnoremap <buffer> <Leader>t :TSType<CR>
autocmd FileType typescript nnoremap <buffer> <Leader>d :TSDoc<CR> autocmd FileType typescript nnoremap <buffer> <Leader>d :TSDoc<CR>
" Scala
Plug 'buntec/neovim-scalavista', { 'do': ':UpdateRemotePlugins' }
else else
Plug 'Quramy/tsuquyomi' Plug 'Quramy/tsuquyomi'
Plug 'leafgarland/typescript-vim' Plug 'leafgarland/typescript-vim'
@@ -132,3 +129,6 @@ if !empty($LC_LIGHT_BG)
set background=light set background=light
let g:airline_theme='light' let g:airline_theme='light'
endif endif
" markdown
let g:markdown_fenced_languages = ['html', 'python', 'bash=sh', 'scala', 'typescript', 'javascript']

13
.zshrc
View File

@@ -9,14 +9,13 @@ else
fi fi
export PATH=$PATH:~/bin export PATH=$PATH:~/bin
export EDITOR=vim export EDITOR=nvim
export CLICOLOR=1 export CLICOLOR=1
export MAIL=/var/spool/mail/amgutier export MAIL=/var/spool/mail/amgutier
export LSCOLORS=DxGxcxdxCxegedabagacad export LSCOLORS=DxGxcxdxCxegedabagacad
export LESSOPEN='|/usr/local/bin/lesspipe.sh %s' export LESSOPEN="|/usr/local/bin/lesspipe.sh %s" LESS_ADVANCED_PREPROCESSOR=1
export LESS_ADVANCED_PREPROCESSOR=1
setopt PROMPT_SUBST ; setopt PROMPT_SUBST ;
# for git-prompt # for git-prompt
@@ -30,24 +29,16 @@ PS1=$'\n╭%{$fg[yellow]%}$(__git_ps1 "(%s)")%{$fg[green]%}[%~]%{$reset_color%}\
# set window title to working directory # set window title to working directory
precmd () { print -Pn "\e]0;%~\a" } precmd () { print -Pn "\e]0;%~\a" }
alias cdg='. cdg'
alias coin='rlwrap coin' # by-setup-c0 alias coin='rlwrap coin' # by-setup-c0
alias dark='export LC_LIGHT_BG=' alias dark='export LC_LIGHT_BG='
alias ed='ed -p:' alias ed='ed -p:'
alias fuck='sudo $(history -p \!\!)'
alias grep='grep --color=auto' alias grep='grep --color=auto'
alias hidden='ls -a | grep "^\..*"'
alias killz='killall -9 '
alias light='export LC_LIGHT_BG=1' alias light='export LC_LIGHT_BG=1'
alias m='ncmpcpp' alias m='ncmpcpp'
alias math='rlwrap MathKernel'
alias ocaml='rlwrap ocaml' alias ocaml='rlwrap ocaml'
alias ocamldebug='rlwrap ocamldebug' alias ocamldebug='rlwrap ocamldebug'
alias rm='rm -i' alias rm='rm -i'
alias shell='ps -p $$ -o comm='
alias sml='rlwrap sml' alias sml='rlwrap sml'
alias sshp='ssh -o PubkeyAuthentication=no'
alias style='clang-format-3.5 -style=Google'
alias telnet='rlwrap telnet' alias telnet='rlwrap telnet'
# Enable color support of ls and also add handy aliases # Enable color support of ls and also add handy aliases