-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
24 lines (18 loc) · 852 Bytes
/
Copy pathinit.vim
File metadata and controls
24 lines (18 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
set termguicolors
source /usr/share/doc/fzf/examples/fzf.vim
source /usr/share/doc/fzf/examples/plugin/fzf.vim
source ~/.config/nvim/lua_init.lua
autocmd FileType markdown,text setlocal spell
augroup numbertoggle
: autocmd!
: autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != "i" | set rnu | endif
: autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif
:augroup END
" Bindings
nnoremap <Space> <NOP>
let mapleader =" " " Set leader to spacebar
" map <leader>g :Goyo \| set spell \| set linebreak<CR>
map <leader>v : silent execute '!zathura %:r.pdf &' <cr>
map <leader>m : silent! execute "!pandoc -s -o %:r.pdf % &" <cr>
" autocmd! User GoyoLeave nested | colorscheme cool | set nospell
autocmd BufWritePost *.tex silent! execute "!pdflatex % >/dev/null 2>&1" | redraw!