-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
executable file
·58 lines (44 loc) · 1.33 KB
/
Copy pathinit.vim
File metadata and controls
executable file
·58 lines (44 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
set number
" Pathogen
execute pathogen#infect()
syntax on
filetype plugin indent on
call plug#begin()
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'ryanoasis/vim-devicons'
Plug 'morhetz/gruvbox'
Plug 'scrooloose/nerdtree'
Plug 'mhinz/vim-startify'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'tpope/vim-fugitive'
" LaTeX plugins
Plug 'lervag/vimtex'
Plug 'tpope/vim-surround'
Plug 'vim-scripts/IndentConsistencyCop'
call plug#end()
" Press i to enter insert mode, and ii to exit insert mode.
:inoremap ii <Esc>
:inoremap jk <Esc>
:inoremap kj <Esc>
:vnoremap jk <Esc>
:vnoremap kj <Esc>
" Nerdtree
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>
" Gruvbox
colorscheme gruvbox
" Airline
let g:airline_theme='luna'
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:devicons_enable = 1
" LaTeX plugin configurations
let g:vimtex_view_method = 'zathura' " Use Zathura as the PDF viewer
let g:vimtex_quickfix_mode = 0 " Disable quickfix mode for errors
" Auto-close pairs for LaTeX files
autocmd FileType tex inoremap <buffer> " " ""<left>
autocmd FileType tex inoremap <buffer> ' ' ''<left>
autocmd FileType tex inoremap <buffer> ( ()<left>
autocmd FileType tex inoremap <buffer> [ []<left>
autocmd FileType tex inoremap <buffer> { {}<left>