all repos — dotfiles @ 667fd84db416963317cb2d8acdc625833466a973

linux dotfiles

update vimrc and notes_scrot
Prithu Goswami prithugoswami524@gmail.com
Thu, 02 Apr 2020 13:27:34 +0530
commit

667fd84db416963317cb2d8acdc625833466a973

parent

13c7ef083067ab1196c3ee0aa5b13977771577cd

2 files changed, 3 insertions(+), 0 deletions(-)

jump to
M .vimrc.vimrc

@@ -52,6 +52,7 @@ " autocmd FileType tex nnoremap cm :w<Enter>:!pdflatex -interaction nonstopmode % 1&>/dev/null<Enter><Enter>

autocmd FileType html setlocal ts=2 sts=2 sw=2 " autocmd FileType c nnoremap cp :w<Enter>:!clear && gcc % && ./a.out<Enter> autocmd BufRead *.pdentry :Goyo +autocmd BufRead *.pdentry set nosmartindent " leader is comma let mapleader=","

@@ -81,6 +82,7 @@ " turn off search highlight

nnoremap <leader><space> :nohlsearch<CR> nnoremap <leader>ihs i\texthindi{<Esc>:r !zenity --entry --width=800<Enter>kJxA}<CR><Esc> nnoremap <leader>ih :r !zenity --entry --width=800<Enter> +nnoremap <leader>iim i![](img/){width=80%}<Esc>F) set foldenable " enable folding
M bin/scripts/notes_scrotbin/scripts/notes_scrot

@@ -13,4 +13,5 @@ n_path=$(cat $HOME/.config/nip | dmenu -l 15)

[[ -z $n_path ]] && exit 0 img_name=$(echo -n '' | dmenu -p "image name") [[ -z $img_name ]] && exit 0 +echo -n "$img_name.png" | xsel -ib scrot -s "$n_path/$img_name.png" && notify-send "saved $n_path/$img_name.png"