-abbreviate tto <tt></tt><ESC>F<i
+abbreviate tto <em></em><ESC>F<i
-if exists("g:loaded_mein_buftabline") | finish | endif
-let g:loaded_mein_buftabline = 1
+if exists('*<SID>BufTabLine') | finish | endif
-function! BufTabline()
+function! s:BufTabline()
redir => bufsRaw
silent buffers
redir END
return join(bufs, " ")
endfunction
+function! BufTabline()
+ return s:BufTabline()
+endfunction
+
set showtabline=2
set tabline=%!BufTabline()
-if exists("g:loaded_mein_chnglstnav") | finish | endif
-let g:loaded_mein_chnglstnav = 1
+if exists('*<SID>Chng') | finish | endif
function! s:Chng(...)
if a:0 == 0 | return | endif
" 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
+if exists('*<SID>Ctags') | finish | endif
-function! s:ctags(lang, onlyCmd, verbose)
+function! s:Ctags(lang, onlyCmd, verbose)
let dst = tagfiles()
if len(dst) == 0
echohl WarningMsg | echomsg "No tagfiles" | echohl None
if a:verbose != v:true | redraw! | endif
endfunction
-command! -nargs=1 Ctags silent call s:ctags(<f-args>, v:false, v:false)
-command! -nargs=1 Ctagsv silent call s:ctags(<f-args>, v:true, v:false)
-command! -nargs=1 Ctagscmd call s:ctags(<f-args>, v:true, v:true)
+command! -nargs=1 Ctags silent call s:Ctags(<f-args>, v:false, v:false)
+command! -nargs=1 Ctagsv silent call s:Ctags(<f-args>, v:true, v:false)
+command! -nargs=1 Ctagscmd call s:Ctags(<f-args>, v:true, v:true)
" Also there is :Brsplit command behaving similarly, but it splits other
" types of brackets: "{}", "[]".
-if exists("g:loaded_defsplit") | finish | endif
-let g:loaded_defsplit = 1
if !exists("g:defsplit_shift") | let g:defsplit_shift = " " | endif
+if exists('*<SID>Defsplit') | finish | endif
function! s:bracket_find(brs_allowable, line, offset)
let possible = []
return min(possible)
endfunction
-function! s:defsplit(brs_allowable, single_line_comma, ...)
+function! s:Defsplit(brs_allowable, single_line_comma, ...)
if a:0 == 0 | let skip = 0 | else | let skip = str2nr(a:1) | endif
let shift = g:defsplit_shift
let line = getline(".")
normal "_dd
endfunction
-command! -nargs=? Defsplit call s:defsplit(["("], v:false, <f-args>)
-command! -nargs=? Brsplit call s:defsplit(["(", "[", "{"], v:false, <f-args>)
-command! -nargs=? Defsplits call s:defsplit(["("], v:true, <f-args>)
-command! -nargs=? Brsplits call s:defsplit(["(", "[", "{"], v:true, <f-args>)
+command! -nargs=? Defsplit call s:Defsplit(["("], v:false, <f-args>)
+command! -nargs=? Brsplit call s:Defsplit(["(", "[", "{"], v:false, <f-args>)
+command! -nargs=? Defsplits call s:Defsplit(["("], v:true, <f-args>)
+command! -nargs=? Brsplits call s:Defsplit(["(", "[", "{"], v:true, <f-args>)
command! Undefsplit normal ^v%$J:keepp s/^\(.*\)\([([{]\) \(.*[^,]\),\?\([)\]}]\)\(.*\)$/\1\2\3\4\5<CR>:keepp s/, \?\([)\]}]\+\)$/\1/e<CR>:<CR>
-if exists("g:loaded_mein_exted") | finish | endif
-let g:loaded_mein_exted = 1
+if exists('*<SID>exted') | finish | endif
function! s:exted(ext)
execute "edit %<." . a:ext
" 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
+if exists('*<SID>gotoline') | finish | endif
function! s:gotoline()
let file = bufname("%")
-if exists("g:loaded_mein_ggrep") | finish | endif
-let g:loaded_mein_ggrep = 1
+if exists('*<SID>Vmg') | finish | endif
function! s:Vmg(pattern)
silent execute 'Ggrep "' . a:pattern . '"'
-if exists("g:loaded_mein_grep") | finish | endif
-let g:loaded_mein_grep = 1
+if exists('*<SID>Vim') | finish | endif
function! s:Vim(pattern)
let ignorecase_bak=&ignorecase
-if exists("g:loaded_mein_lsp") | finish | endif
-let g:loaded_mein_lsp = 1
+if exists('*<SID>on_lsp_buffer_enabled') | finish | endif
+
let g:lsp_auto_enable = 1
let g:lsp_diagnostics_echo_cursor = 1
-if exists("g:loaded_mein_whereami") | finish | endif
-let g:loaded_mein_whereami = 1
+if exists('*<SID>pwdLoad') | finish | endif
function! s:pwdLoad()
let g:mein_pwdL=trim(system("pwd -L"))
autocmd VimEnter * call s:pwdLoad()
-function! WhereAmI(fmt)
+function! s:WhereAmI(fmt)
let fullpath = expand("%:p")
if fullpath[:len(g:mein_pwdP)-1] ==# g:mein_pwdP
let fullpath = g:mein_pwdL . fullpath[len(g:mein_pwdP):]
echomsg where
endfunction
-nmap <leader>w :call WhereAmI("gnu")<CR>
-nmap <leader>W :call WhereAmI("lldb")<CR>
+nmap <leader>w :call <SID>WhereAmI("gnu")<CR>
+nmap <leader>W :call <SID>WhereAmI("lldb")<CR>
" Maintainer: Sergey Matveev <stargrave@stargrave.org>
" License: GNU General Public License version 3 of the License or later
-if exists("g:loaded_zshfe") | finish | endif
-let g:loaded_zshfe = 1
+if exists('*<SID>zshfe') | finish | endif
if !exists("g:zshfe_path") | let g:zshfe_path=expand("~/.vim/plugin/zshfe.zsh") | endif
function! s:zshfe(query, opencmd)