diff options
author | Julian T <julian@jtle.dk> | 2021-11-03 10:18:37 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-11-03 10:18:37 +0100 |
commit | 346603222165172e364df1ab0f23604c44bb388f (patch) | |
tree | c368d4145a712de39b3f94b38f375f1ee0d08b0d /vim-core/.config/nvim/init.vim | |
parent | dd8e151ec5bb1914bb2a3a0af4fadce4279788b2 (diff) |
Vim config changes, some related to LaTeX
Diffstat (limited to 'vim-core/.config/nvim/init.vim')
-rw-r--r-- | vim-core/.config/nvim/init.vim | 10 |
1 files changed, 8 insertions, 2 deletions
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 <expr> k (v:count > 1 ? "m'" . v:count : '' ) . 'k' " Leader stuff - let mapleader="\<Space>" + let mapleader=" " + nnoremap <SPACE> <Nop> " Enforcing filetypes{{{ autocmd BufRead,BufNewFile *.ino set filetype=c |