summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMineralwaterXu <[email protected]>2020-09-20 22:56:35 +0800
committerMineralwaterXu <[email protected]>2020-09-20 22:56:35 +0800
commit46b4e5ec5dca373dee0cd394f4da29dba6717e1d (patch)
tree53d9ad7a359bc5bf17b961666b932d5ec5568fdb
parentdb6ffe9360b8b8c2fcc6e8c5d7ad5aee9166ad50 (diff)
modified nvim config
-rw-r--r--init.vim37
1 files changed, 37 insertions, 0 deletions
diff --git a/init.vim b/init.vim
index e9a195a..3f85faf 100644
--- a/init.vim
+++ b/init.vim
@@ -135,6 +135,15 @@ Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for':
Plug 'dhruvasagar/vim-table-mode', { 'on': 'TableModeToggle', 'for': ['text', 'markdown', 'vim-plug'] }
Plug 'mzlogin/vim-markdown-toc', { 'for': ['gitignore', 'markdown', 'vim-plug'] }
+" LaTeX
+Plug 'lervag/vimtex'
+
+" FZF
+Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
+Plug 'junegunn/fzf.vim'
+
+" Undo Tree
+Plug 'mbbill/undotree'
call plug#end()
@@ -228,6 +237,34 @@ noremap <LEADER>tm :TableModeToggle<CR>
let g:vmt_cycle_list_item_markers = 1
let g:vmt_fence_text = 'TOC'
let g:vmt_fence_closing_text = '/TOC'
+
+
+
+
+" ===
+" === vimtex
+" ===
+let g:tex_flavor = 'latex'
+autocmd TextChanged,TextChangedI <buffer> silent write
+
+
+
+" ===
+" === Undotree
+" ===
+noremap U :UndotreeToggle<CR>
+let g:undotree_DiffAutoOpen = 1
+let g:undotree_SetFocusWhenToggle = 1
+let g:undotree_ShortIndicators = 1
+let g:undotree_WindowLayout = 2
+let g:undotree_DiffpanelHeight = 8
+let g:undotree_SplitWidth = 24
+function g:Undotree_CustomMap()
+ nmap <buffer> k <plug>UndotreeNextState
+ nmap <buffer> j <plug>UndotreePreviousState
+ nmap <buffer> K 5<plug>UndotreeNextState
+ nmap <buffer> J 5<plug>UndotreePreviousState
+endfunc
" ===================== End of Plugin Settings =====================