-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.vim
More file actions
40 lines (30 loc) · 1.16 KB
/
base.vim
File metadata and controls
40 lines (30 loc) · 1.16 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
" Start screen and session manager
Plug 'mhinz/vim-startify'
" Comment
Plug 'scrooloose/nerdcommenter'
function! s:commentConfig()
" Add spaces after comment delimiters by default
let g:NERDSpaceDelims = 1
" Use compact syntax for prettified multi-line comments
let g:NERDCompactSexyComs = 1
" Allow commenting and inverting empty lines (useful when commenting a region)
let g:NERDCommentEmptyLines = 1
" Enable trimming of trailing whitespace when uncommenting
let g:NERDTrimTrailingWhitespace = 1
" Enable NERDCommenterToggle to check all selected lines is commented or not
let g:NERDToggleCheckAllLines = 1
endfunction
call s:commentConfig()
function! s:startifyConfig()
let g:startify_change_to_dir = 0
let g:startify_change_to_vcs_root = 0
noremap ;ss :SSave
noremap ;sl :SLoad
noremap ;sc :SClose<cr>
endfunction
call s:startifyConfig()
" the time treesitter is installed by the :PlugUpdate command of Vim-Plug the :TSUpdate command is not yet available
" Restart and run TSUpdate command manually
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
" lua helper function
Plug 'nvim-lua/plenary.nvim'