Browse Source

Fixed gpla and Vim mappings

- gpla: Pop stashed changes before clearing them.
- Vim mappings: Remove spacing at end because Vim already adds a space
  after mappings.
red-hat-laptop
Kevin Mok 6 years ago
parent
commit
1338b0ece4
  1. 36
      .vimrc
  2. 2
      aliases/.bash_aliases
  3. 2
      aliases/.git_aliases
  4. 2
      aliases/.pc_aliases

36
.vimrc

@ -87,23 +87,23 @@ nnoremap <leader>s :set syn=sh<CR>
" Local Mappings {{{ "
let maplocalleader="-"
autocmd Filetype c inoremap <localleader>s struct pixel
autocmd Filetype c inoremap <localleader>s struct pixel
autocmd Filetype tex inoremap <localleader>e \exists
autocmd Filetype tex inoremap <localleader>fa \forall
autocmd Filetype tex inoremap <localleader>g \geq
autocmd Filetype tex inoremap <localleader>i \in
autocmd Filetype tex inoremap <localleader>l \leq
autocmd Filetype tex inoremap <localleader>lr \Leftrightarrow
autocmd Filetype tex inoremap <localleader>n \neg
autocmd Filetype tex inoremap <localleader>N \mathbb{N}
autocmd Filetype tex inoremap <localleader>R \Rightarrow
autocmd Filetype tex inoremap <localleader>st such that
autocmd Filetype tex inoremap <localleader>t \times
autocmd Filetype tex inoremap <localleader>T $T$
autocmd Filetype tex inoremap <localleader>v \vee
autocmd Filetype tex inoremap <localleader>w \wedge
autocmd Filetype tex inoremap <localleader>x $x$-axis
autocmd Filetype tex inoremap <localleader>y $y$-axis
autocmd Filetype tex inoremap <localleader>Z \mathbb{Z}
autocmd Filetype tex inoremap <localleader>e \exists
autocmd Filetype tex inoremap <localleader>fa \forall
autocmd Filetype tex inoremap <localleader>g \geq
autocmd Filetype tex inoremap <localleader>i \in
autocmd Filetype tex inoremap <localleader>l \leq
autocmd Filetype tex inoremap <localleader>lr \Leftrightarrow
autocmd Filetype tex inoremap <localleader>n \neg
autocmd Filetype tex inoremap <localleader>N \mathbb{N}
autocmd Filetype tex inoremap <localleader>R \Rightarrow
autocmd Filetype tex inoremap <localleader>st such that
autocmd Filetype tex inoremap <localleader>t \times
autocmd Filetype tex inoremap <localleader>T $T$
autocmd Filetype tex inoremap <localleader>v \vee
autocmd Filetype tex inoremap <localleader>w \wedge
autocmd Filetype tex inoremap <localleader>x $x$-axis
autocmd Filetype tex inoremap <localleader>y $y$-axis
autocmd Filetype tex inoremap <localleader>Z \mathbb{Z}
" }}} Local Mappings "

2
aliases/.bash_aliases

@ -49,5 +49,5 @@ alias rx="redshift -x"
usnp_dir="~/.vim/plugged/vim-snippets/UltiSnips"
alias snp="d $usnp_dir"
vsnp() { vi ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
alias tmsp="vi $usnp_dir/texmath.snippets"
alias tm="vi $usnp_dir/texmath.snippets"
# }}} #

2
aliases/.git_aliases

@ -39,7 +39,7 @@ gunc() { git update-index --assume-unchanged $1 ; }
gpla() {
cmds="lc snp 9r sch"
for cmd in $cmds; do
eval $cmd && gst && gpl && gclear
eval $cmd && gst && gpl && gstp && gclear
done
}
# Functions }}}

2
aliases/.pc_aliases

@ -4,7 +4,7 @@ if [ "$(whoami)" == "kevin" ]; then
alias mt="ok ~/Documents/School/calc-textbook.pdf"
alias clc="gcalccmd"
alias 36t="ok ~/Documents/School/236-textbook.pdf"
alias 6t="ok ~/Documents/School/236-textbook.pdf"
fi
# Both PC/Laptop }}}

Loading…
Cancel
Save