From c18a32df388fbe7d8ff15c8020480c1f0fec8fc8 Mon Sep 17 00:00:00 2001 From: tiynger Date: Thu, 24 Oct 2019 15:41:33 +0200 Subject: [PATCH 1/2] changing shortcuts for latex to non indexed sections --- .config/nvim/init.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index e5ca8e6..8bbb912 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -41,9 +41,9 @@ autocmd BufRead,BufNewFile *.tex set filetype=tex autocmd VimLeave *.tex !texclear % autocmd FileType tex inoremap ,ul \begin{itemize}\end{itemize}3kA\item autocmd FileType tex inoremap ,li \item -autocmd FileType tex inoremap ,sec \section{}2kf}i -autocmd FileType tex inoremap ,ssec \subsection{}2kf}i -autocmd FileType tex inoremap ,sssec \subsubsection{}2kf}i +autocmd FileType tex inoremap ,sec \section*{}2kf}i +autocmd FileType tex inoremap ,ssec \subsection*{}2kf}i +autocmd FileType tex inoremap ,sssec \subsubsection*{}2kf}i " Compiler for languages map c :w! \| !compiler % From b1d93f83576289f668017ba75768a03ea3d6df3d Mon Sep 17 00:00:00 2001 From: tiynger Date: Sun, 27 Oct 2019 18:00:52 +0100 Subject: [PATCH 2/2] changing tablength in nvim to 4 spaces --- .config/nvim/init.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 8bbb912..e944297 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -21,6 +21,13 @@ set encoding=utf-8 set number relativenumber " Disables automatic commenting on newline: autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o +" Setting Tab-length +set tabstop=4 +set softtabstop=4 +set shiftwidth=4 +"set expandtab +"set autoindent +"set copyindent " Splits open at the bottom and right, which is non-retarded, unlike vim defaults. set splitbelow splitright