-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.vim
113 lines (83 loc) · 2.29 KB
/
init.vim
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
" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')
" Theme plugins
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'arcticicestudio/nord-vim'
" navigation plugins
Plug 'preservim/nerdtree'
Plug 'christoomey/vim-tmux-navigator'
Plug 'markstory/vim-zoomwin'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'folke/which-key.nvim'
Plug 'plasticboy/vim-markdown'
Plug 'godlygeek/tabular'
" Dev plugins
Plug 'tpope/vim-surround'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'preservim/nerdcommenter'
Plug 'will133/vim-dirdiff'
Plug 'ekalinin/Dockerfile.vim'
" Plant Uml
Plug 'aklt/plantuml-syntax'
Plug 'tyru/open-browser.vim'
Plug 'weirongxu/plantuml-previewer.vim'
" presentation
Plug 'sotte/presenting.vim'
Plug 'junegunn/goyo.vim'
Plug 'ernstwi/vim-secret'
Plug 'chrisbra/Recover.vim'
Plug 'christoomey/vim-system-copy'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
" List ends here. Plugins become visible to Vim after this call.
call plug#end()
let g:airline_powerline_fonts=1
let g:airline#extensions#tabline#left_alt_sep = '>'
let g:airline#extensions#tabline#left_sep = '>'
map <silent> <F6> :NERDTreeToggle<CR>
set splitright
set splitbelow
" Split navigation
nnoremap <C-J> <C-W><C-J>
nnoremap <C-H> <C-W><C-H>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <silent> <C-Left> :vertical resize +3<CR>
nnoremap <silent> <C-Right> :vertical resize -3<CR>
nnoremap <silent> <C-Up> :resize +3<CR>
nnoremap <silent> <C-Down> :resize -3<CR>
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set cole=3
set nowrap
set belloff=all
colorscheme nord
set number
set list
set spell
set listchars=space:·
set updatetime=100
" vim-markdown
let g:vim_markdown_autowrite = 1
let g:vim_markdown_edit_url_in = 'tab'
let g:vim_markdown_folding_disabled = 1
noremap Q !!$SHELL<CR>
" Set space as Leader key
nnoremap <SPACE> <Nop>
let mapleader=" "
" telescope
nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
lua << EOF
require("which-key").setup {
}
EOF
" folding
set foldmethod=expr
set foldexpr=nvim_treesitter#foldexpr()