diff options
author | xengineering <me@xengineering.eu> | 2023-03-10 18:28:43 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-03-10 18:28:43 +0100 |
commit | fd6b7dc2a386bed37b4fad53901fdfbae568aeed (patch) | |
tree | 56b2e718f5efc1e3db41def1926253a7a4705471 | |
parent | f367ac20052383e52dfdf6bbc076029aed7272e8 (diff) | |
download | dotfiles-fd6b7dc2a386bed37b4fad53901fdfbae568aeed.tar dotfiles-fd6b7dc2a386bed37b4fad53901fdfbae568aeed.tar.zst dotfiles-fd6b7dc2a386bed37b4fad53901fdfbae568aeed.zip |
Fix neovim config
-rw-r--r--[l---------] | nvim/init.vim | 51 |
1 files changed, 50 insertions, 1 deletions
diff --git a/nvim/init.vim b/nvim/init.vim index 71b3819..c09d67e 120000..100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -1 +1,50 @@ -../../.vimrc
\ No newline at end of file + +" 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 <F7> :tabp <LF> +map <F8> :tabn <LF> + +" convert *.bin file to ascii or reverse (make sure to open with `vim -b`!) +map <F5> :%!xxd -r <LF> +map <F6> :%!xxd <LF> + + +" macros +" see ':help key-notation' to view documentation + +" LaTeX enumeration (o rdered list) +let @o="A\<Enter>\<Enter>\\begin{enumerate}\<Enter>\<Enter>\\end{enumerate}\<Up>\<Tab>\\item " +" LaTeX itemize (u nordered list) +let @u="A\<Enter>\<Enter>\\begin{itemize}\<Enter>\<Enter>\\end{itemize}\<Up>\<Tab>\\item " +" LaTeX equation +let @e="A\<Enter>\<Enter>\\begin{equation}\<Enter>\<Enter>\\end{equation}\<Up>\<Tab>" +" LaTeX image +let @i="A\<Enter>\<Enter>\\begin{figure}[H]\<Enter>\<Tab>\\centering\<Enter>\\includegraphics[width=1.0\\textwidth]{}\<Enter>\<Esc>:left\<Enter>i\\end{figure}\<Esc>\<Up>A\<Left>" + |