From: Daniel Liu Date: Wed, 31 Mar 2021 04:57:37 +0000 (-0400) Subject: misc changes - vim cursor X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=d5357941de0effbbea612fde4f31b2c9a0bfc716;p=dotfiles.git misc changes - vim cursor --- diff --git a/.bashrc b/.bashrc index e08cc97..5c12176 100644 --- a/.bashrc +++ b/.bashrc @@ -44,6 +44,8 @@ alias darkmpv='mpv --vf=sub,lavfi="negate"' alias nmaplocal='nmap -sn 192.168.1.0/24' alias refreshusb='udevadm control --reload-rules' alias vpnup='nmcli connection up pinovpn' +# connect to wifi +# nmcli device wifi connect WIFI_NAME password PASSWORD source fzfutil diff --git a/.vim/mysnippets/tex.snippets b/.vim/mysnippets/tex.snippets index 33cef93..6d68b16 100644 --- a/.vim/mysnippets/tex.snippets +++ b/.vim/mysnippets/tex.snippets @@ -113,6 +113,10 @@ snippet naturals "Set of Naturals" w \mathbb{N} endsnippet +snippet matrix "Set of Matricies" w +\mathbb{M}_{$1}($2)$0 +endsnippet + # OTHERS snippet implies "Implies" w @@ -179,10 +183,30 @@ snippet cis "Cis" w \mathrm{cis}($1) endsnippet +snippet ... "elpises" iA +\ldots +endsnippet + +# text snippet span "Span" w \text{span}($0) endsnippet +snippet col "Col" w +\text{Col}($0) +endsnippet + +snippet row "Row" w +\text{Row}($0) +endsnippet + +snippet rank "Rank" w +\text{Rank}($0) +endsnippet + +snippet nullity "Nullity" w +\text{Nullity}($0) +endsnippet snippet eea "Extended Euclidian Algorithm" w \begin{center} diff --git a/.vim/mysnippets/vhdl.snippets b/.vim/mysnippets/vhdl.snippets new file mode 100644 index 0000000..843b408 --- /dev/null +++ b/.vim/mysnippets/vhdl.snippets @@ -0,0 +1,8 @@ + +snippet entity "Entity" w +Entity $1 is port +( + $0 +) +end Entity; +endsnippet diff --git a/.vimrc b/.vimrc index e68fc91..62c1fb4 100644 --- a/.vimrc +++ b/.vimrc @@ -18,6 +18,11 @@ set expandtab set nrformats+=alpha "inc/dec alpha set hidden +" cursors depending on mode +let &t_EI = "\[2 q" "normal mode +let &t_SI = "\[6 q" "insert mode +let &t_SR = "\[4 q" "replace mode + " spell check setlocal spell set spelllang=en_us diff --git a/Scripts/dmenu/Staskell b/Scripts/dmenu/Staskell index d982d0b..edc6037 100755 --- a/Scripts/dmenu/Staskell +++ b/Scripts/dmenu/Staskell @@ -3,18 +3,9 @@ # This is a simple launcher script for Taskell boards_path="$HOME/.config/taskell/boards/" - -#also look into autocomplete and pressing esc to quit this script -# todo: check to see if name is taken, also append .md - ( cd "$boards_path" - board="new_board" - mode=$(printf "o\nn" | dmenu -i -p "Open board (O) or create new board (N)?") - - [ $mode = "n" ] && board=$(dmenu -p "Choose a name for the board") || \ - [ $mode = "o" ] && board=$(ls -1 | dmenu -i -p "Choose board to open") - + board=$(ls -1 | dmenu -i -p "Choose board to open") [ -z "$board" ] && exit 1 st -e taskell "$board"