2 if empty(glob('$HOME/.vim/autoload/plug.vim'))
3 silent !curl -fLo $HOME/.vim/autoload/plug.vim --create-dirs
4 \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
5 autocmd VimEnter * PlugInstall | PlugInstall | so $HOME/.vim/vimrc
8 call plug#begin('$HOME/.vim/plugged')
9 Plug 'vim-scripts/Modeliner', {'tag': '*'}
10 Plug 'ervandew/supertab', {'tag': '*'}
11 Plug 'preservim/nerdtree', {'tag': '*'}
12 Plug 'Xuyuanp/nerdtree-git-plugin'
13 Plug 'aperezdc/vim-template'
14 Plug 'vim-airline/vim-airline', {'tag': '*'}
15 Plug 'godlygeek/tabular', {'tag': '*'}
16 Plug 'tpope/vim-fugitive', {'tag': '*'}
17 Plug 'mhinz/vim-signify', {'tag': 'stable'}
19 Plug 'ekalinin/Dockerfile.vim'
21 Plug 'darfink/vim-plist'
22 Plug 'hail2u/vim-css3-syntax', {'tag': '*'}
23 Plug 'plasticboy/vim-markdown'
24 Plug 'pangloss/vim-javascript', {'tag': '1.2.5.1'}
25 Plug 'hdima/python-syntax', {'tag': '*'}
26 Plug 'fatih/vim-go', {'tag': '*'}
27 Plug 'nfnty/vim-nftables'
31 "if !empty(glob('$HOME/.vim/autoload/plug.vim'))
32 " let g:plug_window = 'vertical topleft new'
33 " let g:plug_pwindow = 'above 12new'
37 if !empty(glob('~/.vim/plugged/vim-template'))
38 " let g:templates_plugin_loaded = 1
39 " let g:templates_no_autocmd = 1
40 let g:username = "NoName"
41 let g:license = "GPLv3"
45 if !empty(glob('~/.vim/plugged/vim-airline'))
46 "nnoremap <tab> :bnext<CR>
47 "nnoremap <S-tab> :bprevious<CR>
48 nnoremap <leader>, :bfirst<CR>
49 nnoremap <leader>. :blast<CR>
50 nnoremap <leader>1 :b1<CR>
51 nnoremap <leader>2 :b2<CR>
52 nnoremap <leader>3 :b3<CR>
53 nnoremap <leader>4 :b4<CR>
54 nnoremap <leader>5 :b5<CR>
55 nnoremap <leader>6 :b6<CR>
56 nnoremap <leader>7 :b7<CR>
57 nnoremap <leader>8 :b8<CR>
58 nnoremap <leader>9 :b9<CR>
59 if !exists('g:airline_symbols')
60 let g:airline_symbols = {}
62 let g:airline#extensions#tabline#enabled = 1
63 let g:airline#extensions#tabline#buffer_nr_show = 1
64 let g:airline#extensions#tabline#formatter = 'unique_tail'
66 let g:airline_symbols.branch = '⎇'
72 if !empty(glob('~/.vim/plugged/vim-css3-syntax'))
75 autocmd FileType css setlocal iskeyword+=-
80 if !empty(glob('~/.vim/plugged/nerdtree'))
81 nnoremap <C-n> :NERDTreeToggle<cr>
82 let NERDTreeIgnore = [ '.pyc', '.pyo', '.DS_Store', '.localized' ]
83 let NERDTreeHighlightCursorline = 1
84 let NERDTreeShowBookmarks = 1
85 let NERDTreeShowFiles = 1
86 let NERDTreeShowHidden = 1
87 " Close vim if the only window left open is a NERDTree
88 autocmd BufEnter * if (winnr("$") == 1
89 \ && exists("b:NERDTree")
90 \ && b:NERDTree.isTabTree()) | q | endif
91 " If more than one window and previous buffer was NERDTree, go back to it.
92 " Open a NERDTree automatically when no files were specified
93 autocmd StdinReadPre * let s:std_in=1
94 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") |
96 " Open a NERDTree automatically when opening a directory
97 autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0])
98 \ && !exists('s:std_in') | execute 'NERDTree' argv()[0] |
99 \ wincmd p | enew | execute 'cd '.argv()[0] | endif
103 if !empty(glob('~/.vim/plugged/vim-signify'))
104 let g:signify_vcs_list = [ 'git', 'hg', 'svn' ]
108 if !empty(glob('~/.vim/plugged/supertab'))
109 let g:SuperTabDefaultCompletionType = "<c-n>"
113 if !empty(glob('~/.vim/plugged/vim-markdown'))
114 let g:vim_markdown_folding_disabled = 1
115 let g:vim_markdown_no_default_key_mappings = 1
116 let g:vim_markdown_math = 1
117 let g:vim_markdown_frontmatter = 1
118 let g:vim_markdown_math = 1
119 let g:vim_markdown_json_frontmatter = 1
122 " Python syntax highligh
123 if !empty(glob('~/.vim/plugged/python-syntax'))
124 let g:python_highlight_all = 1
128 if !empty(glob('~/.vim/plugged/vim-json'))
129 let g:vim_json_syntax_conceal = 0
133 if !empty(glob('~/.vim/plugged/vim-go'))
134 let g:go_highlight_functions = 1
135 let g:go_highlight_methods = 1
136 let g:go_highlight_structs = 1
137 let g:go_highlight_interfaces = 1
138 let g:go_highlight_operators = 1
139 let g:go_highlight_build_constraints = 1
140 let g:go_fmt_command = "goimports"
141 let g:go_fmt_fail_silently = 1
142 let g:go_fmt_autosave = 0
145 " vim: set et fenc=utf-8 ff=unix sts=4 sw=4 ts=4 :