From 346603222165172e364df1ab0f23604c44bb388f Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 3 Nov 2021 10:18:37 +0100 Subject: Vim config changes, some related to LaTeX --- vim-core/.config/nvim/init.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'vim-core/.config') diff --git a/vim-core/.config/nvim/init.vim b/vim-core/.config/nvim/init.vim index 9f992f8..81d69c9 100644 --- a/vim-core/.config/nvim/init.vim +++ b/vim-core/.config/nvim/init.vim @@ -15,7 +15,7 @@ filetype plugin indent on " required " More sensible splitting set splitbelow splitright - set backspace=start,eol + set backspace=start,eol,indent " Do not create the tilde files set nobackup @@ -72,6 +72,11 @@ filetype plugin indent on " required autocmd FileType go setlocal noet autocmd FileType nix setlocal shiftwidth=4 softtabstop=4 autocmd FileType vim setlocal foldmethod=marker"}}} + autocmd BufNewFile,BufRead *.tex + \ set nocursorline | + \ set nornu | + \ set number | + \ let g:loaded_matchparen=1 | " File management{{{ " Fuzzy like menu @@ -90,7 +95,8 @@ filetype plugin indent on " required nnoremap k (v:count > 1 ? "m'" . v:count : '' ) . 'k' " Leader stuff - let mapleader="\" + let mapleader=" " + nnoremap " Enforcing filetypes{{{ autocmd BufRead,BufNewFile *.ino set filetype=c -- cgit v1.2.3