From 1d4cc9308fe066a29e8951b0dee496375e9ef5da Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 12 Oct 2023 19:05:42 +0200 Subject: [nvim] add libreoffice opener --- .config/nvim/config/config.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.config/nvim/config') diff --git a/.config/nvim/config/config.vim b/.config/nvim/config/config.vim index cd814c3..2c1b895 100644 --- a/.config/nvim/config/config.vim +++ b/.config/nvim/config/config.vim @@ -31,3 +31,11 @@ endif " pdf autocmd BufWinEnter *.pdf split | exe expandcmd("terminal firefox ':p'") | quit + +" libreoffice +function LOOpen() + split + exe expandcmd("terminal libreoffice %") + quit +endfunction +command! LOOpen call LOOpen() -- cgit v1.2.3