From 060010ed8eb1882fecfe46e124b564b6b9d9eab5 Mon Sep 17 00:00:00 2001 From: tjk918 Date: Fri, 8 Oct 2021 18:04:37 -0500 Subject: colors and tex changes --- nvim/init.vim | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'nvim/init.vim') diff --git a/nvim/init.vim b/nvim/init.vim index 73fea05..de93236 100755 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -28,8 +28,13 @@ set termguicolors " Enable GUI colors for the terminal to get truecolor set wildmode=longest,list,full " Enable file auto-complete syntax on " Enable syntax highlighting +" Filetype options +autocmd BufRead,BufNewFile *.tex set filetype=tex +au Filetype tex let b:autopairs_enabled = 0 +au Filetype tex setlocal indentexpr= + " VimWiki options -let g:vimwiki_list = [{'path': '~/docs/school/docs/wiki/', 'path_html': '~/docs/school/docs/wiki/site/'}] +let g:vimwiki_list = [{'path': '~/docs/school/arc/docs/wiki/', 'path_html': '~/docs/school/arc/docs/wiki/site/'}] " Keybindings " Set leader-key to comma @@ -48,14 +53,14 @@ nmap 0 nmap nmap nmap $ - " Faster split navigation (alt-hjlk, as opposed to ctrl-w + hjlk) -"map h -"map j -"map k -"map l + " Faster split navigation (leader-wasd, as opposed to ctrl-w + hjlk) +map a h +map s j +map w k +map d l " Streamlined tab navigation with chromium inspired keybindings -nmap gt -nmap gT +nmap gt +nmap t :tabnew nmap :tabnew " Copy, paste, and cut with standard bindings map "+y @@ -104,11 +109,13 @@ endfunction autocmd BufWritePre * call DelWS() " Disables automatic commenting on newline: - autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o +autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o + " Perform dot commands over visual blocks: - vnoremap . :normal . +vnoremap . :normal . + " Save file as sudo on files that require root permission - cnoremap w!! execute 'silent! write !doas tee % >/dev/null' edit! +cnoremap w!! execute 'silent! write !doas tee % >/dev/null' edit! " Plugin options " closetag -- cgit v1.2.3