From fd6b7dc2a386bed37b4fad53901fdfbae568aeed Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 10 Mar 2023 18:28:43 +0100 Subject: Fix neovim config --- nvim/init.vim | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) mode change 120000 => 100644 nvim/init.vim diff --git a/nvim/init.vim b/nvim/init.vim deleted file mode 120000 index 71b3819..0000000 --- a/nvim/init.vim +++ /dev/null @@ -1 +0,0 @@ -../../.vimrc \ No newline at end of file diff --git a/nvim/init.vim b/nvim/init.vim new file mode 100644 index 0000000..c09d67e --- /dev/null +++ b/nvim/init.vim @@ -0,0 +1,50 @@ + +" general settings + +set modeline +set modelines=5 +set mouse-=a +syntax on +set tabstop=4 +set noexpandtab +set number +set shiftwidth=4 +set autoindent +set spelllang=en,de +set colorcolumn=81 " don't touch this line to keep 80 chars. width +set encoding=utf-8 +set fileencodings=utf-8 +set listchars=tab:→\ ,nbsp:␣,trail:•,precedes:«,extends:» +set list + +filetype plugin indent on + + +" special highlighting +highlight folded ctermfg=Black +highlight folded ctermbg=LightYellow + + +" hot keys + +" switch tabs +map :tabp +map :tabn + +" convert *.bin file to ascii or reverse (make sure to open with `vim -b`!) +map :%!xxd -r +map :%!xxd + + +" macros +" see ':help key-notation' to view documentation + +" LaTeX enumeration (o rdered list) +let @o="A\\\\begin{enumerate}\\\\end{enumerate}\\\\item " +" LaTeX itemize (u nordered list) +let @u="A\\\\begin{itemize}\\\\end{itemize}\\\\item " +" LaTeX equation +let @e="A\\\\begin{equation}\\\\end{equation}\\" +" LaTeX image +let @i="A\\\\begin{figure}[H]\\\\centering\\\includegraphics[width=1.0\\textwidth]{}\\:left\i\\end{figure}\\A\" + -- cgit v1.2.3-70-g09d2