Add LaTeX vim bindings, change i3 config
parent
f19135c26a
commit
4cf17c80e7
Binary file not shown.
Binary file not shown.
Binary file not shown.
11
.i3/config
11
.i3/config
|
@ -56,10 +56,10 @@ exec --no-startup-id volumeicon
|
||||||
|
|
||||||
# Start Applications
|
# Start Applications
|
||||||
bindsym $mod+Ctrl+b exec st -e 'bmenu'
|
bindsym $mod+Ctrl+b exec st -e 'bmenu'
|
||||||
bindsym $mod+F2 exec qutebrowser
|
bindsym $mod+F2 exec brave
|
||||||
bindsym $mod+F3 exec st -e ranger
|
bindsym $mod+F3 exec st -e vifmrun
|
||||||
bindsym $mod+Shift+F3 exec gksu pcmanfm
|
bindsym $mod+Shift+F3 exec gksu pcmanfm
|
||||||
bindsym $mod+F5 exec st -e 'mocp'
|
bindsym $mod+F5 exec artha
|
||||||
bindsym $mod+t exec --no-startup-id pkill compton
|
bindsym $mod+t exec --no-startup-id pkill compton
|
||||||
bindsym $mod+Ctrl+t exec --no-startup-id compton -b
|
bindsym $mod+Ctrl+t exec --no-startup-id compton -b
|
||||||
bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'"
|
bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'"
|
||||||
|
@ -307,14 +307,13 @@ bindsym $mod+9 exec --no-startup-id blurlock
|
||||||
# Autostart applications
|
# Autostart applications
|
||||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||||
exec --no-startup-id nitrogen --restore; sleep 1; compton -b
|
exec --no-startup-id nitrogen --restore; sleep 1; compton -b
|
||||||
exec --no-startup-id manjaro-hello
|
#exec --no-startup-id manjaro-hello
|
||||||
exec --no-startup-id nm-applet
|
exec --no-startup-id nm-applet
|
||||||
exec --no-startup-id xfce4-power-manager
|
exec --no-startup-id xfce4-power-manager
|
||||||
exec --no-startup-id pamac-tray
|
exec --no-startup-id pamac-tray
|
||||||
exec --no-startup-id clipit
|
exec --no-startup-id clipit
|
||||||
# exec --no-startup-id blueman
|
# exec --no-startup-id blueman
|
||||||
# exec_always --no-startup-id sbxkb
|
# exec_always --no-startup-id sbxkb
|
||||||
exec --no-startup-id start_conky_maia
|
|
||||||
# exec --no-startup-id start_conky_green
|
# exec --no-startup-id start_conky_green
|
||||||
#exec --no-startup-id xautolock -time 120 -locker blurlock
|
#exec --no-startup-id xautolock -time 120 -locker blurlock
|
||||||
exec_always --no-startup-id ff-theme-util
|
exec_always --no-startup-id ff-theme-util
|
||||||
|
@ -488,3 +487,5 @@ mode "$mode_gaps_outer" {
|
||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exec "setxkbmap -option caps:escape"
|
||||||
|
|
20
.vimrc
20
.vimrc
|
@ -1,7 +1,8 @@
|
||||||
".vimrc Marvin Johanning @ marvinjohanning.de
|
".vimrc Marvin Johanning @ marvinjohanning.de
|
||||||
|
|
||||||
set nocompatible
|
set nocompatible
|
||||||
filetype off
|
filetype off
|
||||||
|
set swapfile
|
||||||
|
set dir=~/tmp
|
||||||
|
|
||||||
" set the runtime path to include Vundle and initialize
|
" set the runtime path to include Vundle and initialize
|
||||||
set rtp+=~/.vim/bundle/Vundle.vim
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
|
@ -22,8 +23,9 @@ Plugin 'christoomey/vim-system-copy'
|
||||||
Plugin 'terryma/vim-smooth-scroll' "Smooth scrolling
|
Plugin 'terryma/vim-smooth-scroll' "Smooth scrolling
|
||||||
Plugin 'mhartington/oceanic-next' "Theme OceanicNext
|
Plugin 'mhartington/oceanic-next' "Theme OceanicNext
|
||||||
Plugin 'jacoborus/tender.vim' "Theme Tender
|
Plugin 'jacoborus/tender.vim' "Theme Tender
|
||||||
Plugin 'thoughtbot/vim-rspec' "RSpec Plugin
|
" Plugin 'thoughtbot/vim-rspec' "RSpec Plugin
|
||||||
Plugin 'MikeCoder/markdown-preview.vim' "Markdown preview
|
Plugin 'MikeCoder/markdown-preview.vim' "Markdown preview
|
||||||
|
Plugin 'lervag/vimtex' " LaTeX
|
||||||
|
|
||||||
" All of your Plugins must be added before the following line
|
" All of your Plugins must be added before the following line
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
|
@ -54,7 +56,7 @@ nnoremap <C-z> <ESC>u
|
||||||
"leader plus ( will create () and put user inside
|
"leader plus ( will create () and put user inside
|
||||||
nnoremap <leader>" viw<ESC>a"<ESC>bi"<ESC>lel
|
nnoremap <leader>" viw<ESC>a"<ESC>bi"<ESC>lel
|
||||||
nnoremap <leader>' viw<ESC>a'<ESC>bi'<ESC>ll
|
nnoremap <leader>' viw<ESC>a'<ESC>bi'<ESC>ll
|
||||||
nnoremap <Space><Space> <kDivide><+++><CR>ciw
|
nnoremap <Space><Space> <kDivide><+++><CR>ca<
|
||||||
"- will delete the line and paste it on the line below
|
"- will delete the line and paste it on the line below
|
||||||
nnoremap - 0y$Do<ESC>p$i<ESC>
|
nnoremap - 0y$Do<ESC>p$i<ESC>
|
||||||
"Open .vimrc (ev) and source it (sv)
|
"Open .vimrc (ev) and source it (sv)
|
||||||
|
@ -66,10 +68,14 @@ noremap <silent> <c-d> :call smooth_scroll#down(&scroll, 0, 2)<CR>
|
||||||
noremap <silent> <c-b> :call smooth_scroll#up(&scroll*2, 0, 4)<CR>
|
noremap <silent> <c-b> :call smooth_scroll#up(&scroll*2, 0, 4)<CR>
|
||||||
noremap <silent> <c-f> :call smooth_scroll#down(&scroll*2, 0, 4)<CR>
|
noremap <silent> <c-f> :call smooth_scroll#down(&scroll*2, 0, 4)<CR>
|
||||||
"RSpec mappings
|
"RSpec mappings
|
||||||
map <Leader>t :call RunCurrentSpecFile()<CR>
|
"map <Leader>t :call RunCurrentSpecFile()<CR>
|
||||||
map <Leader>s :call RunNearestSpec()<CR>
|
"map <Leader>s :call RunNearestSpec()<CR>
|
||||||
map <Leader>l :call RunLastSpec()<CR>
|
"map <Leader>l :call RunLastSpec()<CR>
|
||||||
map <Leader>a :call RunAllSpecs()<CR>
|
"map <Leader>a :call RunAllSpecs()<CR>
|
||||||
|
|
||||||
|
"For creating German-style quotation for LaTeX's babel package
|
||||||
|
nnoremap <leader>q i"`<+++>"'<ESC>
|
||||||
|
let g:vimtex_view_general_viewer = 'zathura' " Setting Zathura as the default viewer for LaTeX
|
||||||
|
|
||||||
"Colour stuff
|
"Colour stuff
|
||||||
syntax on
|
syntax on
|
||||||
|
|
2
.zshrc
2
.zshrc
|
@ -26,6 +26,7 @@ alias download_mail="mbsync -a"
|
||||||
#
|
#
|
||||||
alias l="ls -sh"
|
alias l="ls -sh"
|
||||||
alias la="ls -ash"
|
alias la="ls -ash"
|
||||||
|
alias vifm="vifmrun"
|
||||||
|
|
||||||
#Variable exports
|
#Variable exports
|
||||||
export RTV_BROWSER=w3m
|
export RTV_BROWSER=w3m
|
||||||
|
@ -61,6 +62,7 @@ source ~/.cache/wal/colors-tty.sh
|
||||||
|
|
||||||
#Path changes
|
#Path changes
|
||||||
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
|
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
|
||||||
|
PATH="/usr/local/inferno/Linux/386/bin:$PATH"
|
||||||
|
|
||||||
#Searching through history with dmenu
|
#Searching through history with dmenu
|
||||||
alias history='cat $HISTFILE | sed -e "s/^:[ \t]*[0-9]*:[0-9]*;//g" | dmenu "$@" -l 7 -p "Command:" | ${SHELL:-"/bin/zsh"}'
|
alias history='cat $HISTFILE | sed -e "s/^:[ \t]*[0-9]*:[0-9]*;//g" | dmenu "$@" -l 7 -p "Command:" | ${SHELL:-"/bin/zsh"}'
|
||||||
|
|
Loading…
Reference in New Issue