commit 82bb6671e876f7dc4b77a3dc6abf01f1bb622ebb
parent b020eafaa061dcce07e0191036cf5e94b43db768
Author: Jake Bauer <jbauer@paritybit.ca>
Date: Sun, 25 Oct 2020 22:29:05 -0400
Add spawn alias to init.vim and fix source command
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -30,7 +30,7 @@ runtime macros/matchit.vim " Match HTML tags
" General Settings {{{
filetype plugin indent on
-map <leader>s :source ~/.vim/vimrc<CR>
+map <leader>s :source ~/.config/nvim/init.vim<CR>
set history=100
nnoremap <F9> :make
noremap <silent> <C-S> :call SpellCheckToggle()<CR>
@@ -44,6 +44,10 @@ au FocusGained,BufEnter * :checktime
" Currently not working in neovim: https://github.com/neovim/neovim/issues/8217
cmap w!! w !sudo tee > /dev/null %
+" Spawn a new terminal in the current directory (useful for running code in a
+" new terminal window or viewing the PDF output of LaTeX.
+cmap spawn !st >/dev/null 2>&1 &
+
" Before Writing to File, Remove Trailing White Spaces
autocmd BufWritePre * :%s/\s\+$//e