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.
This commit is contained in:
36
.vimrc
36
.vimrc
@@ -87,23 +87,23 @@ nnoremap <leader>s :set syn=sh<CR>
|
|||||||
|
|
||||||
" Local Mappings {{{ "
|
" Local Mappings {{{ "
|
||||||
let maplocalleader="-"
|
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>e \exists
|
||||||
autocmd Filetype tex inoremap <localleader>fa \forall
|
autocmd Filetype tex inoremap <localleader>fa \forall
|
||||||
autocmd Filetype tex inoremap <localleader>g \geq
|
autocmd Filetype tex inoremap <localleader>g \geq
|
||||||
autocmd Filetype tex inoremap <localleader>i \in
|
autocmd Filetype tex inoremap <localleader>i \in
|
||||||
autocmd Filetype tex inoremap <localleader>l \leq
|
autocmd Filetype tex inoremap <localleader>l \leq
|
||||||
autocmd Filetype tex inoremap <localleader>lr \Leftrightarrow
|
autocmd Filetype tex inoremap <localleader>lr \Leftrightarrow
|
||||||
autocmd Filetype tex inoremap <localleader>n \neg
|
autocmd Filetype tex inoremap <localleader>n \neg
|
||||||
autocmd Filetype tex inoremap <localleader>N \mathbb{N}
|
autocmd Filetype tex inoremap <localleader>N \mathbb{N}
|
||||||
autocmd Filetype tex inoremap <localleader>R \Rightarrow
|
autocmd Filetype tex inoremap <localleader>R \Rightarrow
|
||||||
autocmd Filetype tex inoremap <localleader>st such that
|
autocmd Filetype tex inoremap <localleader>st such that
|
||||||
autocmd Filetype tex inoremap <localleader>t \times
|
autocmd Filetype tex inoremap <localleader>t \times
|
||||||
autocmd Filetype tex inoremap <localleader>T $T$
|
autocmd Filetype tex inoremap <localleader>T $T$
|
||||||
autocmd Filetype tex inoremap <localleader>v \vee
|
autocmd Filetype tex inoremap <localleader>v \vee
|
||||||
autocmd Filetype tex inoremap <localleader>w \wedge
|
autocmd Filetype tex inoremap <localleader>w \wedge
|
||||||
autocmd Filetype tex inoremap <localleader>x $x$-axis
|
autocmd Filetype tex inoremap <localleader>x $x$-axis
|
||||||
autocmd Filetype tex inoremap <localleader>y $y$-axis
|
autocmd Filetype tex inoremap <localleader>y $y$-axis
|
||||||
autocmd Filetype tex inoremap <localleader>Z \mathbb{Z}
|
autocmd Filetype tex inoremap <localleader>Z \mathbb{Z}
|
||||||
" }}} Local Mappings "
|
" }}} Local Mappings "
|
||||||
|
|||||||
@@ -49,5 +49,5 @@ alias rx="redshift -x"
|
|||||||
usnp_dir="~/.vim/plugged/vim-snippets/UltiSnips"
|
usnp_dir="~/.vim/plugged/vim-snippets/UltiSnips"
|
||||||
alias snp="d $usnp_dir"
|
alias snp="d $usnp_dir"
|
||||||
vsnp() { vi ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
|
vsnp() { vi ~/.vim/plugged/vim-snippets/UltiSnips/"$1".snippets ; }
|
||||||
alias tmsp="vi $usnp_dir/texmath.snippets"
|
alias tm="vi $usnp_dir/texmath.snippets"
|
||||||
# }}} #
|
# }}} #
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ gunc() { git update-index --assume-unchanged $1 ; }
|
|||||||
gpla() {
|
gpla() {
|
||||||
cmds="lc snp 9r sch"
|
cmds="lc snp 9r sch"
|
||||||
for cmd in $cmds; do
|
for cmd in $cmds; do
|
||||||
eval $cmd && gst && gpl && gclear
|
eval $cmd && gst && gpl && gstp && gclear
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
# Functions }}}
|
# Functions }}}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ if [ "$(whoami)" == "kevin" ]; then
|
|||||||
|
|
||||||
alias mt="ok ~/Documents/School/calc-textbook.pdf"
|
alias mt="ok ~/Documents/School/calc-textbook.pdf"
|
||||||
alias clc="gcalccmd"
|
alias clc="gcalccmd"
|
||||||
alias 36t="ok ~/Documents/School/236-textbook.pdf"
|
alias 6t="ok ~/Documents/School/236-textbook.pdf"
|
||||||
fi
|
fi
|
||||||
# Both PC/Laptop }}}
|
# Both PC/Laptop }}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user