add vim shortcut to toggle folds
This commit is contained in:
parent
2b2f476804
commit
d75f09890e
@ -1,5 +1,10 @@
|
|||||||
# https://wiki.archlinux.org/title/Xorg/Keyboard_configuration
|
# https://wiki.archlinux.org/title/Xorg/Keyboard_configuration
|
||||||
setxkbmap -layout us,in -variant ,mal -option grp:win_space_toggle
|
setxkbmap -layout us,in -variant ,mal -option grp:win_space_toggle
|
||||||
|
|
||||||
|
# Useful for checking spelling of words
|
||||||
|
word() {
|
||||||
|
grep "$1" /etc/dictionaries-common/words
|
||||||
|
}
|
||||||
|
|
||||||
# z-eyes
|
# z-eyes
|
||||||
~/z-eyes.sh &
|
~/z-eyes.sh &
|
||||||
|
@ -173,6 +173,10 @@ hc keybind XF86MonBrightnessDown spawn xbacklight -dec 1%
|
|||||||
#hc keybind XF86AudioPrev spawn playerctl previous
|
#hc keybind XF86AudioPrev spawn playerctl previous
|
||||||
#hc keybind XF86AudioNext spawn playerctl next
|
#hc keybind XF86AudioNext spawn playerctl next
|
||||||
|
|
||||||
|
# Original volume keys don't work. Use what we got!
|
||||||
|
hc keybind XF86AudioPrev spawn amixer -D pulse sset Master 5%-
|
||||||
|
hc keybind XF86AudioPlay spawn amixer -D pulse sset Master 5%+
|
||||||
|
|
||||||
# Lock screen
|
# Lock screen
|
||||||
hc keybind Control-Shift-l spawn bash -c 'i3lock -c 000000 && sleep 5s && exec systemctl suspend'
|
hc keybind Control-Shift-l spawn bash -c 'i3lock -c 000000 && sleep 5s && exec systemctl suspend'
|
||||||
hc keybind Mod4-l spawn i3lock -c 444444
|
hc keybind Mod4-l spawn i3lock -c 444444
|
||||||
|
@ -71,6 +71,10 @@ c.content.notifications.enabled = False
|
|||||||
## Don't start playing videos automatically. Data is expensive.
|
## Don't start playing videos automatically. Data is expensive.
|
||||||
c.content.autoplay = False
|
c.content.autoplay = False
|
||||||
|
|
||||||
|
## Auto-complete
|
||||||
|
c.completion.open_categories = ["quickmarks", "bookmarks", "history", "filesystem"]
|
||||||
|
c.completion.show = "auto"
|
||||||
|
|
||||||
## Per-domain settings
|
## Per-domain settings
|
||||||
with config.pattern("*://.youtube.com") as youtube:
|
with config.pattern("*://.youtube.com") as youtube:
|
||||||
youtube.content.cookies.accept = "never"
|
youtube.content.cookies.accept = "never"
|
||||||
|
22
vim/.vimrc
22
vim/.vimrc
@ -44,6 +44,28 @@ autocmd! TabLeave * let g:last_tab_backup = g:last_tab | let g:last_tab = tabpag
|
|||||||
autocmd! TabClosed * let g:last_tab = g:last_tab_backup
|
autocmd! TabClosed * let g:last_tab = g:last_tab_backup
|
||||||
nmap <silent> gl :exe "tabn " . g:last_tab<cr>
|
nmap <silent> gl :exe "tabn " . g:last_tab<cr>
|
||||||
|
|
||||||
|
" Toggle fold tree under cursor
|
||||||
|
nnoremap <Tab> zA
|
||||||
|
|
||||||
|
|
||||||
|
" " Default values for registers
|
||||||
|
" "" c with gcc
|
||||||
|
" let @c = ':w %
:!gcc % -o a.out;./a.out
'
|
||||||
|
"
|
||||||
|
" "" sml with mlton
|
||||||
|
" let @n = ':w %
:!tmux run-shell -b -t 1 "mlton -output a.out %; ./a.out"
'
|
||||||
|
"
|
||||||
|
" "" python with python3
|
||||||
|
" "let @p = ':w %
:!python3 %
'
|
||||||
|
"
|
||||||
|
" "" latex with pdflatex
|
||||||
|
" let @x = ':w %
:!pdflatex %
'
|
||||||
|
"
|
||||||
|
" "" Add code block in markdown
|
||||||
|
" let @e = 'o```Ypko'
|
||||||
|
"
|
||||||
|
" "" run sml with smlnj
|
||||||
|
" let @s = ':w %
:!rlwrap sml %
'
|
||||||
|
|
||||||
|
|
||||||
" https://stackoverflow.com/questions/18296192/vim-compile-and-run-shortcut
|
" https://stackoverflow.com/questions/18296192/vim-compile-and-run-shortcut
|
||||||
|
@ -29,6 +29,9 @@ map [normal] <PageUp> scroll full-up
|
|||||||
map [normal] <Left> navigate previous
|
map [normal] <Left> navigate previous
|
||||||
map [normal] <Right> navigate next
|
map [normal] <Right> navigate next
|
||||||
|
|
||||||
|
# Copy path of current file to clipboard
|
||||||
|
map [normal] <C-o> exec "bash -c \"echo $FILE | xclip -i -sel clip\""
|
||||||
|
|
||||||
# Don't make it that easy to quit zathura
|
# Don't make it that easy to quit zathura
|
||||||
unmap q
|
unmap q
|
||||||
unmap [index] q # I guess default mode is normal mode
|
unmap [index] q # I guess default mode is normal mode
|
||||||
|
Loading…
Reference in New Issue
Block a user