diff options
| author | snailed <luca@snaile.de> | 2022-08-15 12:10:32 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-15 12:10:32 +0000 |
| commit | f9b5666a5768408dbb75df0cca242cae4505c9fb (patch) | |
| tree | c77dacb89caa2adcfaa9d0cc23d96ac90af3240f /.config/nvim/init.vim | |
| parent | 606905268fb71a1c6f3b23ddcaab38886b2f2296 (diff) | |
| download | eibhear-f9b5666a5768408dbb75df0cca242cae4505c9fb.tar.gz eibhear-f9b5666a5768408dbb75df0cca242cae4505c9fb.tar.zst eibhear-f9b5666a5768408dbb75df0cca242cae4505c9fb.zip | |
Better passing of filenames to shell scripts (#1161)
Doing things the way it's intended. This also makes it easier to copy the autocmd to a lua based configuration.
Diffstat (limited to '.config/nvim/init.vim')
| -rw-r--r-- | .config/nvim/init.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 913c478..c6258b3 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -85,10 +85,10 @@ set noshowcmd nnoremap S :%s//g<Left><Left> " Compile document, be it groff/LaTeX/markdown/etc. - map <leader>c :w! \| !compiler "<c-r>%"<CR> + map <leader>c :w! \| !compiler %:p<CR> " Open corresponding .pdf/.html or preview - map <leader>p :!opout <c-r>%<CR><CR> + map <leader>p :!opout %:p<CR> " Runs a script that cleans out tex build files whenever I close out of a .tex file. autocmd VimLeave *.tex !texclear % |
