You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
VimL
44 lines
1.2 KiB
VimL
" automatically update plugin manager (vim-plug)
|
|
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
|
|
if empty(glob(data_dir . '/autoload/plug.vim'))
|
|
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
|
endif
|
|
|
|
" Disable compatibility with vi which can cause unexpected issues.
|
|
set nocompatible
|
|
|
|
" Enable type file detection. Vim will be able to try to detect the type of file in use.
|
|
filetype on
|
|
|
|
" Enable plugins and load plugin for the detected file type.
|
|
filetype plugin on
|
|
|
|
" Load an indent file for the detected file type.
|
|
filetype indent on
|
|
filetype plugin indent on
|
|
|
|
" Turn syntax highlighting on.
|
|
syntax on
|
|
syntax enable
|
|
|
|
" Add numbers to each line on the left-hand side.
|
|
set number
|
|
|
|
" Highlight cursor line underneath the cursor horizontally.
|
|
" set cursorline
|
|
|
|
" define plugins to use (vim-plug)
|
|
"call plug#begin()
|
|
|
|
"Plug 'lervag/vimtex'
|
|
|
|
"call plug#end()
|
|
|
|
" config for vimtex
|
|
" Or with a generic interface:
|
|
"let g:vimtex_view_general_viewer = 'okular'
|
|
"let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex'
|
|
|
|
"let g:vimtex_compiler_method = 'lualatex'
|