A basic configuration file to work with Vim and LaTeX
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
1.8 KiB

1 year ago
1 year ago
  1. # vim-config-latex
  2. A basic configuration file to work with Vim and LaTeX
  3. # Installing Vim-Plug
  4. ```
  5. curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  6. ```
  7. # Configuration
  8. ```
  9. " ------------------
  10. " __
  11. " .--.--.|__|.--------.----.----.
  12. " | | || || | _| __|
  13. " \___/ |__||__|__|__|__| |____|
  14. " ------------------
  15. "
  16. " Basic settings
  17. " --------------
  18. set nocompatible
  19. filetype plugin indent on
  20. syntax enable
  21. set number relativenumber
  22. set path+=**
  23. set wildmode=longest,list,full
  24. set encoding=UTF-8
  25. set cursorline
  26. set showmatch " matching brackets
  27. set linebreak
  28. set ignorecase " case insensitive matching
  29. set smartcase " smart case matching
  30. "set clipboard+=unnamedplus
  31. set mouse=a
  32. set tabstop=4
  33. set shiftwidth=4
  34. set softtabstop=4
  35. set spelllang=en_us
  36. set fillchars+=eob:~
  37. set showtabline=2
  38. set laststatus=2
  39. " ------------------
  40. " Basic styling
  41. " ------------------
  42. highlight Comment cterm=italic
  43. highlight CursorLine ctermbg=Black cterm=NONE
  44. highlight CursorLineNr ctermbg=Black cterm=bold ctermfg=Green
  45. highlight LineNr ctermbg=Black ctermfg=White
  46. " Plugin settings
  47. " ------------------
  48. call plug#begin()
  49. Plug 'sonph/onehalf', { 'rtp': 'vim' }
  50. Plug 'vim-airline/vim-airline'
  51. Plug 'vim-airline/vim-airline-themes'
  52. call plug#end()
  53. " Theme configuration
  54. " ------------------
  55. colorscheme archery
  56. let g:airline_theme = 'archery'
  57. set t_Co=256
  58. let g:airline_powerline_fonts=1
  59. let g:airline#extensions#tabline#left_sep = ' '
  60. let g:airline#extensions#tabline#left_alt_sep = '|'
  61. let g:airline_symbols = {}
  62. let g:airline_symbols.colnr = ' ㏇:'
  63. "LaTeX
  64. let g:vimtex_compiler_latexmk= {'options' : ['-pdf', '-shell-
  65. escape', '-verbose', '-file-line-error', '-synctex=1', '-
  66. interaction=nonstopmode',],}
  67. ```