-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
83 lines (69 loc) · 1.99 KB
/
.vimrc
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
syntax on
filetype plugin indent on
set fileformat=unix
set encoding=UTF-8
set tabstop=4
set softtabstop=4
set shiftwidth=4
set pumheight=10
set autoindent
set smartindent
set smarttab
set nowrap
set nu! rnu!
set scrolloff=8
set showcmd
set noerrorbells visualbell t_vb=
set clipboard=unnamed
set ignorecase
set smartcase
set incsearch
set hlsearch
set cursorline
" Make double-<Esc> clear search highlights
nnoremap <silent> <Esc><Esc> <Esc>:nohlsearch<CR><Esc>
" update textwidth for latex files
autocmd bufreadpre *.tex setlocal textwidth=115
autocmd bufreadpre *.tex setlocal wrap
set clipboard=unnamedplus
so ~/.vim/plugins.vim
so ~/.vim/plugin-config.vim
set mouse=a
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
set ttimeout
set ttimeoutlen=1
set ttyfast
" For vim-tex
let g:tex_flavor='latex'
let g:vimtex_view_method='zathura'
" let g:vimtex_view_general_options = '-reuse-instance @pdf'
" let g:vimtex_view_general_options_latexmk = '-reuse-instance'
let g:vimtex_quickfix_mode=0
let maplocalleader = ","
" For UltiSnips
let g:UltiSnipsExpandTrigger = '<tab>'
let g:UltiSnipsJumpForwardTrigger = '<tab>'
let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
" For CoC
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm() : "\<CR>"
inoremap <buffer> <tab> <c-r>=(UltiSnips#CanExpandSnippet() ? UltiSnips#ExpandSnippet() : coc#pum#visible() ? coc#pum#next(1) : "\<Tab>")<cr>
" inoremap <expr> <Tab> coc#pum#visible() ? coc#pum#next(1) : "\<Tab>"
inoremap <expr> <S-Tab> coc#pum#visible() ? coc#pum#prev(1) : "\<S-Tab>"
:nmap <c-s> :w<CR>
:imap <c-s> <Esc>:w<CR>a
nnoremap <C-n> :NERDTreeToggle<CR>
let NERDTreeShowHidden=1
autocmd VimEnter * NERDTree
let g:NERDCeateDefaultMappings = 0
let g:NERDSpaceDelims = 1
:nmap <C-_> <PLug>NERDCommenterInvert
:vmap <C-_> <Plug>NERDCommenterInvert
let mapleader=","
" map <Leader>v :rightb vert term ++close<cr>
" map <Leader>h :bel term ++close<cr>
set termguicolors
set background=dark
colorscheme gruvbox8_hard