From 6fd2f629c3dd0bb60dc75f76ad8bfb6f3de2d650 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 6 Sep 2017 09:10:02 +0100 Subject: [vim] Automatically create directories (if necessary) --- vim/.vim/after/ftplugin/tex/mappings.vim | 1 + vim/.vimrc | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'vim') diff --git a/vim/.vim/after/ftplugin/tex/mappings.vim b/vim/.vim/after/ftplugin/tex/mappings.vim index 9da769b..a631d88 100644 --- a/vim/.vim/after/ftplugin/tex/mappings.vim +++ b/vim/.vim/after/ftplugin/tex/mappings.vim @@ -47,3 +47,4 @@ nnoremap o :VimtexView nnoremap k :VimtexStop:VimtexClean nnoremap t :VimtexTocToggle nnoremap h :split header.sty +nnoremap d :!latexdiff-git main_old.tex main.tex > diff.tex diff --git a/vim/.vimrc b/vim/.vimrc index 1a798f3..42e06c9 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -14,6 +14,7 @@ Plug 'LnL7/vim-nix' Plug 'SirVer/ultisnips' Plug 'airblade/vim-gitgutter' Plug 'altercation/vim-colors-solarized' +Plug 'arcticicestudio/nord-vim' Plug 'beloglazov/vim-online-thesaurus' Plug 'christoomey/vim-tmux-navigator' Plug 'critiqjo/lldb.nvim' @@ -25,6 +26,7 @@ Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf.vim' Plug 'junegunn/goyo.vim' Plug 'junegunn/gv.vim' +Plug 'junegunn/heytmux' Plug 'junegunn/seoul256.vim' Plug 'junegunn/vim-easy-align' Plug 'junegunn/vim-peekaboo' @@ -249,6 +251,7 @@ let g:tex_flavor='latex' "" Vim options set complete+=k +set cursorline set smartindent set expandtab set tabstop=4 @@ -338,4 +341,8 @@ augroup vimrc au FileType gnuplot setlocal commentstring=#%s au FileType freefem comp freefem au FileType dirvish setlocal relativenumber + au BufWritePre * + \ if !isdirectory(expand(':p:h')) | + \ call mkdir(expand(':p:h'), 'p') | + \ endif augroup END -- cgit v1.2.3