-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
168 lines (138 loc) · 4.26 KB
/
Copy pathinit.vim
File metadata and controls
168 lines (138 loc) · 4.26 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
"fakesection Plugins Loading
if has('win32') || has('win64')
let g:plugged_home = '~/AppData/Local/nvim/plugged'
else
let g:plugged_home = '~/.vim/plugged'
endif
" Plugins List
call plug#begin(g:plugged_home)
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-commentary'
" UI related
Plug 'chriskempson/base16-vim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'joshdick/onedark.vim'
"Plug 'iCyMind/NeoSolarized'
Plug 'altercation/vim-colors-solarized'
" Session management
Plug 'tpope/vim-obsession'
" Better Visual Guide
Plug 'Yggdroot/indentLine'
" syntax check
Plug 'w0rp/ale'
" Snippets
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
" Formatter
Plug 'Chiel92/vim-autoformat'
" --------- adding the following three plugins for Latex ---------
Plug 'vim-latex/vim-latex'
Plug 'lervag/vimtex'
Plug 'Konfekt/FastFold'
Plug 'matze/vim-tex-fold'
" Common plugins
Plug 'preservim/nerdcommenter'
Plug 'preservim/nerdtree'
Plug 'ctrlpvim/ctrlp.vim'
call plug#end()
filetype plugin indent on
"fakesection Configurations Part
" UI configuration
syntax on
syntax enable
" colorscheme
let base16colorspace=256
"colorscheme base16-gruvbox-dark-hard
colorscheme onedark
set background=dark
"colorscheme solarized
" True Color Support if it's avaiable in terminal
if has("termguicolors")
set termguicolors
endif
" if has("gui_running")
" set guicursor=n-v-c-sm:block,i-ci-ve:block,r-cr-o:blocks
" endif
set number
set relativenumber
set hidden
set mouse=a
set noshowmode
set noshowmatch
set nolazyredraw
" Turn off backup
set nobackup
set noswapfile
set nowritebackup
" Search configuration
set ignorecase " ignore case when searching
set smartcase " turn on smartcase
" Tab and Indent configuration
set expandtab
set tabstop=2
set shiftwidth=2
" Line wrapping
set wrap linebreak
" vim-autoformat
noremap <F3> :Autoformat<CR>
" Ale
let g:ale_lint_on_enter = 0
let g:ale_lint_on_text_changed = 'never'
let g:ale_echo_msg_error_str = 'E'
let g:ale_echo_msg_warning_str = 'W'
let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
let g:ale_linters = {'python': ['flake8']}
" Airline
let g:airline_left_sep = ''
let g:airline_right_sep = ''
let g:airline#extensions#ale#enabled = 1
let airline#extensions#ale#error_symbol = 'E:'
let airline#extensions#ale#warning_symbol = 'W:'
" Vimtex
let g:tex_flavor = 'latex'
let g:vimtex_syntax_conceal = {
\ 'accents': 0,
\ 'cites': 0,
\ 'fancy': 0,
\ 'greek': 0,
\ 'math_bounds': 0,
\ 'math_delimiters': 0,
\ 'math_fracs': 0,
\ 'math_super_sub': 0,
\ 'math_symbols': 0,
\ 'sections': 0,
\ 'styles': 0,
\}
set conceallevel=0 " Disable all concealing done by vimtex
let g:vimtex_fold_manual = 1
let g:vimtex_compiler_progname = 'nvr'
" Settings for Latex-Suite (vim-latex)
let g:tex_flavor='latex'
let g:Tex_DefaultTargetFormat='pdf'
let g:Tex_CompileRule_pdf='latexmk -pdf -synctex=1 -interaction=nonstopmode $*'
" from https://github.com/lervag/vimtex/issues/75
let g:latex_viewer='SumatraPDF -reuse-instance -inverse-search '.
\ '"gvim --servername '.v:servername.' --remote-send \"^<C-\^>^<C-n^>'.
\ ':drop \%f^<CR^>:\%l^<CR^>:normal\! zzzv^<CR^>'.
\ ':call remote_foreground('''.v:servername.''')^<CR^>\""'
" Settings for sumatraPDF
let g:vimtex_view_general_viewer = 'SumatraPDF'
let g:vimtex_view_general_options
\ = '-reuse-instance -forward-search @tex @line @pdf'
"let g:vimtex_view_general_options_latexmk = '-reuse-instance'
"fakesection Mappings
map <C-n> :NERDTreeToggle<CR>
let mapleader = " "
" Open neovim dotfile
nmap <leader>e. :e ~\AppData\Local\nvim\init.vim<CR>
" Exit terminal-mode
tnoremap <Esc> <C-\><C-n>