--- /dev/null
+" The denite settings are largely stolen from spacevim
+let s:denite_options = {
+ \ 'default' : {
+ \ 'winheight' : 15,
+ \ 'mode' : 'insert',
+ \ 'start_filter' : 1,
+ \ 'quit' : 1,
+ \ 'highlight_matched_char' : 'MoreMsg',
+ \ 'highlight_matched_range' : 'MoreMsg',
+ \ 'direction': 'rightbelow',
+ \ }}
+
+augroup spacevim_layer_denite
+ autocmd!
+ autocmd FileType denite call s:denite_my_settings()
+augroup END
+
+function! s:denite_my_settings() abort
+ nnoremap <silent><buffer><expr> i
+ \ denite#do_map('open_filter_buffer')
+ nnoremap <silent><buffer><expr> '
+ \ denite#do_map('toggle_select').'j'
+ nnoremap <silent><buffer><expr> q
+ \ denite#do_map('quit')
+ nnoremap <silent><buffer><expr> <C-t>
+ \ denite#do_map('do_action', 'tabopen')
+ nnoremap <silent><buffer><expr> <C-v>
+ \ denite#do_map('do_action', 'vsplit')
+ nnoremap <silent><buffer><expr> <C-s>
+ \ denite#do_map('do_action', 'split')
+ nnoremap <silent><buffer><expr> <CR>
+ \ denite#do_map('do_action')
+ nnoremap <silent><buffer><expr> p
+ \ denite#do_map('do_action', 'preview')
+ nnoremap <silent><buffer><Tab> j
+ nnoremap <silent><buffer><S-Tab> k
+endfunction
+
+" FIND and GREP COMMANDS
+if executable('rg')
+ " Ripgrep command on grep source
+ call denite#custom#var('grep', 'command', ['rg'])
+ call denite#custom#var('grep', 'default_opts',
+ \ ['--vimgrep', '--no-heading'])
+ call denite#custom#var('grep', 'recursive_opts', [])
+ call denite#custom#var('grep', 'pattern_opt', ['--regexp'])
+ call denite#custom#var('grep', 'separator', ['--'])
+ call denite#custom#var('grep', 'final_opts', [])
+endif
+
+let s:insert_mode_mappings = [
+ \ ['jk', '<denite:enter_mode:normal>', 'noremap'],
+ \ ['<Tab>', '<denite:move_to_next_line>', 'noremap'],
+ \ ['<C-j>', '<denite:move_to_next_line>', 'noremap'],
+ \ ['<S-tab>', '<denite:move_to_previous_line>', 'noremap'],
+ \ ['<C-k>', '<denite:move_to_previous_line>', 'noremap'],
+ \ ['<C-t>', '<denite:do_action:tabopen>', 'noremap'],
+ \ ['<C-v>', '<denite:do_action:vsplit>', 'noremap'],
+ \ ['<C-s>', '<denite:do_action:split>', 'noremap'],
+ \ ['<Esc>', '<denite:enter_mode:normal>', 'noremap'],
+ \ ['<C-N>', '<denite:assign_next_matched_text>', 'noremap'],
+ \ ['<C-P>', '<denite:assign_previous_matched_text>', 'noremap'],
+ \ ['<Up>', '<denite:assign_previous_text>', 'noremap'],
+ \ ['<Down>', '<denite:assign_next_text>', 'noremap'],
+ \ ['<C-Y>', '<denite:redraw>', 'noremap'],
+ \ ]
+
+let s:normal_mode_mappings = [
+ \ ["'", '<denite:toggle_select_down>', 'noremap'],
+ \ ['<C-n>', '<denite:jump_to_next_source>', 'noremap'],
+ \ ['<C-p>', '<denite:jump_to_previous_source>', 'noremap'],
+ \ ['<Tab>', '<denite:move_to_next_line>', 'noremap'],
+ \ ['<C-j>', '<denite:move_to_next_line>', 'noremap'],
+ \ ['<S-tab>', '<denite:move_to_previous_line>', 'noremap'],
+ \ ['<C-k>', '<denite:move_to_previous_line>', 'noremap'],
+ \ ['gg', '<denite:move_to_first_line>', 'noremap'],
+ \ ['<C-t>', '<denite:do_action:tabopen>', 'noremap'],
+ \ ['<C-v>', '<denite:do_action:vsplit>', 'noremap'],
+ \ ['<C-s>', '<denite:do_action:split>', 'noremap'],
+ \ ['q', '<denite:quit>', 'noremap'],
+ \ ['r', '<denite:redraw>', 'noremap'],
+ \ ]
+
+
+if has('nvim-0.5')
+ set foldexpr=nvim_treesitter#foldexpr()
+
+lua <<EOF
+ require'nvim-treesitter.configs'.setup {
+ -- one of "all", "maintained" (parsers with maintainers), or a list of languages
+ ensure_installed = "maintained",
+ -- List of parsers to ignore installing
+ ignore_install = {},
+ -- Modules and its options go here
+ highlight = { enable = true },
+ indent = { enable = true },
+ textobjects = { enable = true },
+ incremental_selection = {
+ enable = true,
+ keymaps = {
+ init_selection = "gnn",
+ node_incremental = "grn",
+ scope_incremental = "grc",
+ node_decremental = "grm",
+ },
+ },
+ refactor = {
+ highlight_definitions = { enable = true },
+ smart_rename = {
+ enable = true,
+ keymaps = { smart_rename = "grr" },
+ },
+ navigation = {
+ enable = true,
+ keymaps = {
+ goto_definition = "gnd",
+ list_definitions = "gnD",
+ list_definitions_toc = "gO",
+ goto_next_usage = "<a-*>",
+ goto_previous_usage = "<a-#>",
+ },
+ },
+ },
+ }
+EOF
+
+endif
--- /dev/null
+if g:lowendbox == 0
+ source ~/.vim/init-plugins-noroot-nolowendbox.vim
+endif
--- /dev/null
+let g:localvimrc_persistent = 1
+
+let g:fastfold_minlines = 0
+
+au FileType markdown call RagtagInit()
+
+let g:detectspelllang_langs = {}
+let g:detectspelllang_langs.aspell =[ 'en_US', 'de_AT']
+au FileType mail let g:VimMailSpellLangs=['de', 'en']
+
+let g:org_todo_keywords = [['TODO(t)', 'WAITING(w)', '|', 'DONE(d)'],
+ \ ['|', 'OBSOLETE(o)', 'WONT(n)'],
+ \ ['CANCELED(c)']]
+
+let g:vimwiki_list = [{'path': '~/.vimwiki/',
+ \ 'template_path': '~/.vim/vimwiki/templates',
+ \ 'template_default': 'default',
+ \ 'template_ext': '.html'}]
+let g:vimwiki_global_ext = 0
+
+" Java completion
+au FileType java setlocal omnifunc=javacomplete#Complete
+au FileType java JCEnable
+
+let g:VimMailContactsProvider=['khard']
+let g:VimMailContactsCommands={
+ \'khard':
+ \{ 'query' : "khard email --parsable --search-in-source-files",
+ \'sync': "/bin/true"}
+ \}
+
+let g:vimtex_fold_enabled = 1
+let g:vimtex_fold_levelmarker = '➜'
+
+" termdebug split windows
+let g:termdebug_wide = 1
+let termdebugger = $HOME . '/.vim/gdb.sh'
+
+let g:startify_files_number = 5
+let g:startify_session_persistence = 1
+let g:startify_lists = [
+ \ { 'type': 'dir', 'header': [' Recent files'] },
+ \ { 'type': 'sessions', 'header': [' Saved sessions'] },
+ \ ]
+
+if has('nvim')
+ let verstr = matchstr(execute('version'), 'NVIM v\zs[^\n]*')
+ let g:startify_custom_header = [
+ \ '',
+ \ ' ╻ ╻ ╻ ┏┳┓',
+ \ ' NEO ┃┏┛ ┃ ┃┃┃',
+ \ ' ┗┛ ╹ ╹ ╹ ' . verstr,
+ \ '',
+ \ ]
+else
+ let verstr = matchstr(execute('version'), 'IMproved \zs[^\n ]*')
+ let g:startify_custom_header = [
+ \ '',
+ \ ' ╻ ╻ ╻ ┏┳┓',
+ \ ' ┃┏┛ ┃ ┃┃┃',
+ \ ' ┗┛ ╹ ╹ ╹ ' . verstr,
+ \ '',
+ \ ]
+endif
+
+
+if $USER != "root"
+ source ~/.vim/init-plugins-noroot.vim
+endif
au CursorHold,BufWinEnter * AutoOrigamiFoldColumn
augroup END
+
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Some plugin-specific settings
-let g:localvimrc_persistent = 1
-
-let g:fastfold_minlines = 0
-
-au FileType markdown call RagtagInit()
-
-let g:detectspelllang_langs = {}
-let g:detectspelllang_langs.aspell =[ 'en_US', 'de_AT']
-au FileType mail let g:VimMailSpellLangs=['de', 'en']
-
-let g:org_todo_keywords = [['TODO(t)', 'WAITING(w)', '|', 'DONE(d)'],
- \ ['|', 'OBSOLETE(o)', 'WONT(n)'],
- \ ['CANCELED(c)']]
-
-let g:vimwiki_list = [{'path': '~/.vimwiki/',
- \ 'template_path': '~/.vim/vimwiki/templates',
- \ 'template_default': 'default',
- \ 'template_ext': '.html'}]
-let g:vimwiki_global_ext = 0
-
-" Java completion
-au FileType java setlocal omnifunc=javacomplete#Complete
-au FileType java JCEnable
-
-let g:VimMailContactsProvider=['khard']
-let g:VimMailContactsCommands={
- \'khard':
- \{ 'query' : "khard email --parsable --search-in-source-files",
- \'sync': "/bin/true"}
- \}
-
-let g:vimtex_fold_enabled = 1
-let g:vimtex_fold_levelmarker = '➜'
-
-" termdebug split windows
-let g:termdebug_wide = 1
-let termdebugger = $HOME . '/.vim/gdb.sh'
-
-let g:startify_files_number = 5
-let g:startify_session_persistence = 1
-let g:startify_lists = [
- \ { 'type': 'dir', 'header': [' Recent files'] },
- \ { 'type': 'sessions', 'header': [' Saved sessions'] },
- \ ]
-
-if has('nvim')
- let verstr = matchstr(execute('version'), 'NVIM v\zs[^\n]*')
- let g:startify_custom_header = [
- \ '',
- \ ' ╻ ╻ ╻ ┏┳┓',
- \ ' NEO ┃┏┛ ┃ ┃┃┃',
- \ ' ┗┛ ╹ ╹ ╹ ' . verstr,
- \ '',
- \ ]
-else
- let verstr = matchstr(execute('version'), 'IMproved \zs[^\n ]*')
- let g:startify_custom_header = [
- \ '',
- \ ' ╻ ╻ ╻ ┏┳┓',
- \ ' ┃┏┛ ┃ ┃┃┃',
- \ ' ┗┛ ╹ ╹ ╹ ' . verstr,
- \ '',
- \ ]
-endif
-
-
-if $USER != "root" && g:lowendbox == 0
-
- " The denite settings are largely stolen from spacevim
- let s:denite_options = {
- \ 'default' : {
- \ 'winheight' : 15,
- \ 'mode' : 'insert',
- \ 'start_filter' : 1,
- \ 'quit' : 1,
- \ 'highlight_matched_char' : 'MoreMsg',
- \ 'highlight_matched_range' : 'MoreMsg',
- \ 'direction': 'rightbelow',
- \ }}
-
- augroup spacevim_layer_denite
- autocmd!
- autocmd FileType denite call s:denite_my_settings()
- augroup END
-
- function! s:denite_my_settings() abort
- nnoremap <silent><buffer><expr> i
- \ denite#do_map('open_filter_buffer')
- nnoremap <silent><buffer><expr> '
- \ denite#do_map('toggle_select').'j'
- nnoremap <silent><buffer><expr> q
- \ denite#do_map('quit')
- nnoremap <silent><buffer><expr> <C-t>
- \ denite#do_map('do_action', 'tabopen')
- nnoremap <silent><buffer><expr> <C-v>
- \ denite#do_map('do_action', 'vsplit')
- nnoremap <silent><buffer><expr> <C-s>
- \ denite#do_map('do_action', 'split')
- nnoremap <silent><buffer><expr> <CR>
- \ denite#do_map('do_action')
- nnoremap <silent><buffer><expr> p
- \ denite#do_map('do_action', 'preview')
- nnoremap <silent><buffer><Tab> j
- nnoremap <silent><buffer><S-Tab> k
- endfunction
-
- " FIND and GREP COMMANDS
- if executable('rg')
- " Ripgrep command on grep source
- call denite#custom#var('grep', 'command', ['rg'])
- call denite#custom#var('grep', 'default_opts',
- \ ['--vimgrep', '--no-heading'])
- call denite#custom#var('grep', 'recursive_opts', [])
- call denite#custom#var('grep', 'pattern_opt', ['--regexp'])
- call denite#custom#var('grep', 'separator', ['--'])
- call denite#custom#var('grep', 'final_opts', [])
- endif
-
- let s:insert_mode_mappings = [
- \ ['jk', '<denite:enter_mode:normal>', 'noremap'],
- \ ['<Tab>', '<denite:move_to_next_line>', 'noremap'],
- \ ['<C-j>', '<denite:move_to_next_line>', 'noremap'],
- \ ['<S-tab>', '<denite:move_to_previous_line>', 'noremap'],
- \ ['<C-k>', '<denite:move_to_previous_line>', 'noremap'],
- \ ['<C-t>', '<denite:do_action:tabopen>', 'noremap'],
- \ ['<C-v>', '<denite:do_action:vsplit>', 'noremap'],
- \ ['<C-s>', '<denite:do_action:split>', 'noremap'],
- \ ['<Esc>', '<denite:enter_mode:normal>', 'noremap'],
- \ ['<C-N>', '<denite:assign_next_matched_text>', 'noremap'],
- \ ['<C-P>', '<denite:assign_previous_matched_text>', 'noremap'],
- \ ['<Up>', '<denite:assign_previous_text>', 'noremap'],
- \ ['<Down>', '<denite:assign_next_text>', 'noremap'],
- \ ['<C-Y>', '<denite:redraw>', 'noremap'],
- \ ]
-
- let s:normal_mode_mappings = [
- \ ["'", '<denite:toggle_select_down>', 'noremap'],
- \ ['<C-n>', '<denite:jump_to_next_source>', 'noremap'],
- \ ['<C-p>', '<denite:jump_to_previous_source>', 'noremap'],
- \ ['<Tab>', '<denite:move_to_next_line>', 'noremap'],
- \ ['<C-j>', '<denite:move_to_next_line>', 'noremap'],
- \ ['<S-tab>', '<denite:move_to_previous_line>', 'noremap'],
- \ ['<C-k>', '<denite:move_to_previous_line>', 'noremap'],
- \ ['gg', '<denite:move_to_first_line>', 'noremap'],
- \ ['<C-t>', '<denite:do_action:tabopen>', 'noremap'],
- \ ['<C-v>', '<denite:do_action:vsplit>', 'noremap'],
- \ ['<C-s>', '<denite:do_action:split>', 'noremap'],
- \ ['q', '<denite:quit>', 'noremap'],
- \ ['r', '<denite:redraw>', 'noremap'],
- \ ]
-
- if has('nvim-0.5')
- set foldexpr=nvim_treesitter#foldexpr()
-lua <<EOF
- require'nvim-treesitter.configs'.setup {
- -- one of "all", "maintained" (parsers with maintainers), or a list of languages
- ensure_installed = "maintained",
- -- List of parsers to ignore installing
- ignore_install = { },
- -- Modules and its options go here
- highlight = {
- enable = true,
- disabled = {}
- },
- indent = {
- enable = true
- },
- incremental_selection = {
- enable = true,
- keymaps = {
- init_selection = "gnn",
- node_incremental = "grn",
- scope_incremental = "grc",
- node_decremental = "grm",
- },
- },
- textobjects = {
- enable = true
- },
- refactor = {
- highlight_definitions = {
- enable = true
- },
- smart_rename = {
- enable = true,
- keymaps = {
- smart_rename = "grr",
- },
- },
- navigation = {
- enable = true,
- keymaps = {
- goto_definition = "gnd",
- list_definitions = "gnD",
- list_definitions_toc = "gO",
- goto_next_usage = "<a-*>",
- goto_previous_usage = "<a-#>",
- },
- },
- },
- }
-EOF
- endif
-endif
-
-
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+source ~/.vim/init-plugins.vim
runtime keymaps.vim
--- /dev/null
+if has('nvim')
+ Plug 'Shougo/deoplete.nvim', {'do': ':UpdateRemotePlugins'}
+ Plug 'Shougo/denite.nvim', { 'do': ':UpdateRemotePlugins' }
+else
+ Plug 'Shougo/deoplete.nvim'
+ Plug 'Shougo/denite.nvim'
+
+ Plug 'roxma/nvim-yarp'
+ Plug 'roxma/vim-hug-neovim-rpc'
+endif
+
+" java extension to deoplete
+Plug 'artur-shaik/vim-javacomplete2', {'for': 'java'}
+
+Plug 'neomake/neomake'
+
+Plug 'lervag/vimtex', {'for': 'tex'}
+
+Plug 'mhinz/vim-signify'
+Plug 'tpope/vim-fugitive'
+Plug 'gko/vim-coloresque'
+
+Plug 'vimwiki/vimwiki'
+Plug 'jceb/vim-orgmode', {'for': ['org']}
+
+Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'}
+Plug 'hail2u/vim-css3-syntax', {'for': ['scss', 'css']}
+
+Plug 'sjl/splice.vim', {'on': 'SpliceInit'}
+
+if has('nvim-0.5')
+ Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
+ Plug 'nvim-treesitter/nvim-treesitter-refactor', {'do': ':TSUpdate'}
+else
+ Plug 'sheerun/vim-polyglot'
+endif
--- /dev/null
+Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'}
+
+Plug 'ludovicchabant/vim-gutentags', {'for': ['c', 'cpp', 'objc']}
+"Plug 'vim-scripts/Conque-GDB', {'for': ['c', 'cpp', 'objc']}
+
+Plug 'editorconfig/editorconfig-vim'
+Plug 'embear/vim-localvimrc'
+
+Plug 'airblade/vim-rooter'
+Plug 'Xuyuanp/nerdtree-git-plugin', {'on': 'NERDTreeToggle'}
+
+Plug 'plasticboy/vim-markdown', {'for': 'markdown'}
+Plug 'lvht/tagbar-markdown', {'for': 'markdown'}
+Plug 'habamax/vim-asciidoctor', {'for': 'asciidoc'}
+
+Plug 'PProvost/vim-markdown-jekyll', {'for': 'markdown'}
+Plug 'tpope/vim-liquid', {'for': ['liquid', 'html', 'xml', 'markdown']}
+
+Plug 'tpope/vim-ragtag'
+
+Plug 'Shougo/neosnippet.vim'
+Plug 'Shougo/neosnippet-snippets'
+
+Plug 'tpope/vim-speeddating'
+Plug 'mattn/calendar-vim'
+
+" Costs a second startup time
+Plug 'dbeniamine/cheat.sh-vim', {'on': 'Cheat'}
+
+
+if g:lowendbox == 0
+ source ~/.vim/plugins-noroot-nolowendbox.vim
+endif
Plug 'flwyd/vim-conjoin'
if $USER != "root"
- Plug 'majutsushi/tagbar', {'on': 'TagbarToggle'}
-
- Plug 'ludovicchabant/vim-gutentags', {'for': ['c', 'cpp', 'objc']}
- "Plug 'vim-scripts/Conque-GDB', {'for': ['c', 'cpp', 'objc']}
-
- Plug 'editorconfig/editorconfig-vim'
- Plug 'embear/vim-localvimrc'
-
- Plug 'airblade/vim-rooter'
- Plug 'Xuyuanp/nerdtree-git-plugin', {'on': 'NERDTreeToggle'}
-
- Plug 'plasticboy/vim-markdown', {'for': 'markdown'}
- Plug 'lvht/tagbar-markdown', {'for': 'markdown'}
- Plug 'habamax/vim-asciidoctor', {'for': 'asciidoc'}
-
- Plug 'PProvost/vim-markdown-jekyll', {'for': 'markdown'}
- Plug 'tpope/vim-liquid', {'for': ['liquid', 'html', 'xml', 'markdown']}
-
- Plug 'tpope/vim-ragtag'
-
- Plug 'Shougo/neosnippet.vim'
- Plug 'Shougo/neosnippet-snippets'
-
- Plug 'tpope/vim-speeddating'
- Plug 'mattn/calendar-vim'
-
- " Costs a second startup time
- Plug 'dbeniamine/cheat.sh-vim', {'on': 'Cheat'}
-
- if g:lowendbox == 0
-
- if has('nvim')
- Plug 'Shougo/deoplete.nvim', {'do': ':UpdateRemotePlugins'}
- Plug 'Shougo/denite.nvim', { 'do': ':UpdateRemotePlugins' }
- else
- Plug 'Shougo/deoplete.nvim'
- Plug 'Shougo/denite.nvim'
-
- Plug 'roxma/nvim-yarp'
- Plug 'roxma/vim-hug-neovim-rpc'
- endif
-
- " java extension to deoplete
- Plug 'artur-shaik/vim-javacomplete2', {'for': 'java'}
-
- Plug 'neomake/neomake'
-
- Plug 'lervag/vimtex', {'for': 'tex'}
-
- Plug 'mhinz/vim-signify'
- Plug 'tpope/vim-fugitive'
- Plug 'gko/vim-coloresque'
-
- Plug 'vimwiki/vimwiki'
- Plug 'jceb/vim-orgmode', {'for': ['org']}
-
- Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'}
- Plug 'hail2u/vim-css3-syntax', {'for': ['scss', 'css']}
-
- Plug 'sjl/splice.vim', {'on': 'SpliceInit'}
-
- if has('nvim-0.5')
- Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
- Plug 'nvim-treesitter/nvim-treesitter-refactor', {'do': ':TSUpdate'}
- else
- Plug 'sheerun/vim-polyglot'
- endif
- endif
+ source ~/.vim/plugins-noroot.vim
endif
if filereadable($HOME . '/.vim/plugins-local.vim')