diff --git a/nvim.configlink/init.vim b/nvim.configlink/init.vim index 499ffb1..d08f9c2 100644 --- a/nvim.configlink/init.vim +++ b/nvim.configlink/init.vim @@ -91,9 +91,6 @@ command Vimrc edit ~/.config/nvim/init.vim " Edit .vimrc (this file) " Map the leader key map -" Jump to the next occurence of <> and replace it with insert mode -nnoremap /<>:nohc2l - "This unsets the `last search pattern` register by hitting return nnoremap :noh @@ -112,6 +109,12 @@ nnoremap fs :write " Open file in this directory nnoremap ff :Files +" Change directory to this file +nnoremap fd :lcd %:p:h + +" Back up directory +nnoremap fu :lcd .. + " Open a recent file nnoremap fr :History @@ -202,6 +205,8 @@ xmap (coc-range-select) " LaTeX Hotkeys autocmd FileType tex inoremap ;bf \textbf{}i +" Jump to the next occurence of <> and replace it with insert mode +autocmd FileType tex nnoremap /<>:nohc2l " Autocompile LaTeX on save autocmd BufWritePost *.tex silent! execute "!pdflatex -output-directory=%:p:h % >/dev/null 2>&1" | redraw!