+if exists("g:loaded_mein_buftabline") | finish | endif
+let g:loaded_mein_buftabline = 1
+
function! BufTabline()
redir => bufsRaw
silent buffers
+if exists("g:loaded_mein_chnglstnav") | finish | endif
+let g:loaded_mein_chnglstnav = 1
+
function! s:Chng(...)
if a:0 == 0 | return | endif
execute "normal " . a:1 . (a:1 > 0 ? "g;" : "g,")
" Create "tags" file in your project's root first.
" Then :Ctags LANG to fill it.
+if exists("g:loaded_mein_ctags") | finish | endif
+let g:loaded_mein_ctags = 1
+
function! s:ctags(lang, onlyCmd, verbose)
let dst = tagfiles()[0]
let src = "/" . join(split(dst, "/")[:-2], "/")
+if exists("g:loaded_mein_exted") | finish | endif
+let g:loaded_mein_exted = 1
+
function! s:exted(ext)
execute "edit %<." . a:ext
endfunction
+
command! -nargs=1 Ee silent call s:exted(<f-args>)
" Simplified version of http://www.vim.org/scripts/script.php?script_id=2184
" that does not replace current window
+if exists("g:loaded_mein_file_line") | finish | endif
+let g:loaded_mein_file_line = 1
+
function! s:gotoline()
let names = matchlist(bufname("%"), '\(.\{-1,}\):\%(\(\d\+\)\%(:\(\d*\):\?\)\?\)\?$')
if empty(names) | return | endif
+if exists("g:loaded_mein_ggrep") | finish | endif
+let g:loaded_mein_ggrep = 1
+
function! s:Vmg(pattern)
silent execute 'Ggrep "' . a:pattern . '"'
copen
+if exists("g:loaded_mein_grep") | finish | endif
+let g:loaded_mein_grep = 1
+
function! s:Vim(pattern)
let ignorecase_bak=&ignorecase
set noignorecase
+if exists("g:loaded_mein_lsp") | finish | endif
+let g:loaded_mein_lsp = 1
+
let g:lsp_highlight_references_enabled = 1
let g:lsp_diagnostics_echo_cursor = 1
let g:lsp_diagnostics_echo_delay = -1
+if exists("g:loaded_mein_netrw") | finish | endif
+let g:loaded_mein_netrw = 1
+
let g:netrw_banner = 0
let g:netrw_bufsettings = "noma nomod nowrap ro nobl"
+if exists("g:loaded_mein_pastemode") | finish | endif
+let g:loaded_mein_pastemode = 1
+
if &term =~ "screen.*"
let &t_ti = &t_ti . "\e[?2004h"
let &t_te = "\e[?2004l" . &t_te
- function XTermPasteBegin(ret)
+ function! XTermPasteBegin(ret)
set pastetoggle=<Esc>[201~
set paste
return a:ret
+if exists("g:loaded_mein_whereami") | finish | endif
+let g:loaded_mein_whereami = 1
+
function! WhereAmI(fmt)
let fullpath = expand("%:p")
if a:fmt == "gnu"