summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-11-03 10:18:37 +0100
committerJulian T <julian@jtle.dk>2021-11-03 10:18:37 +0100
commit346603222165172e364df1ab0f23604c44bb388f (patch)
treec368d4145a712de39b3f94b38f375f1ee0d08b0d
parentdd8e151ec5bb1914bb2a3a0af4fadce4279788b2 (diff)
Vim config changes, some related to LaTeX
-rw-r--r--vim-core/.config/nvim/init.vim10
-rw-r--r--vim-extra/.config/nvim/extra.vim3
2 files changed, 11 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
diff --git a/vim-extra/.config/nvim/extra.vim b/vim-extra/.config/nvim/extra.vim
index e0af79b..dad55f4 100644
--- a/vim-extra/.config/nvim/extra.vim
+++ b/vim-extra/.config/nvim/extra.vim
@@ -107,3 +107,6 @@
" \ },
" \ }
" \ }}}}
+
+" Latex
+ let g:vimtex_quickfix_open_on_warning = 0