diff options
author | Jesse Luehrs <doy@tozt.net> | 2017-10-20 01:38:42 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2017-10-20 03:50:24 -0400 |
commit | 68e0bd7d36fadff5919fd426629df6ee00baf22a (patch) | |
tree | 770b918604ad3a95ee600fffcd2515fbb8912e00 /vim | |
parent | 41413ffceab7fc9969c4d1fa77e2f44ac5b86a76 (diff) | |
download | conf-68e0bd7d36fadff5919fd426629df6ee00baf22a.tar.gz conf-68e0bd7d36fadff5919fd426629df6ee00baf22a.zip |
remove some vim config that i don't use anymore
Diffstat (limited to 'vim')
-rw-r--r-- | vim/after/ftplugin/perl.vim | 2 | ||||
-rw-r--r-- | vim/ftdetect/markdown.vim | 1 | ||||
-rw-r--r-- | vim/ftdetect/perl.vim | 2 | ||||
-rw-r--r-- | vim/ftdetect/taeb-log.vim | 1 | ||||
-rw-r--r-- | vim/ftdetect/tmux.vim | 1 | ||||
-rw-r--r-- | vim/ftdetect/tt.vim | 1 | ||||
-rw-r--r-- | vim/ftplugin/lua.vim | 11 | ||||
-rw-r--r-- | vim/ftplugin/markdown.vim | 1 | ||||
-rw-r--r-- | vim/ftplugin/perl.vim | 71 | ||||
-rw-r--r-- | vim/ftplugin/rust.vim | 2 | ||||
-rw-r--r-- | vim/ftplugin/scala.vim | 1 | ||||
-rw-r--r-- | vim/syntax/taeb-log.vim | 37 | ||||
-rw-r--r-- | vim/syntax/tmux.vim | 126 |
13 files changed, 1 insertions, 256 deletions
diff --git a/vim/after/ftplugin/perl.vim b/vim/after/ftplugin/perl.vim deleted file mode 100644 index 8d9585d..0000000 --- a/vim/after/ftplugin/perl.vim +++ /dev/null @@ -1,2 +0,0 @@ -" the perl ftplugin hard-sets path, so this has to go in after/ -setlocal path+=lib diff --git a/vim/ftdetect/markdown.vim b/vim/ftdetect/markdown.vim deleted file mode 100644 index a27d615..0000000 --- a/vim/ftdetect/markdown.vim +++ /dev/null @@ -1 +0,0 @@ -au BufNewFile,BufRead *.md set filetype=markdown diff --git a/vim/ftdetect/perl.vim b/vim/ftdetect/perl.vim deleted file mode 100644 index 4991270..0000000 --- a/vim/ftdetect/perl.vim +++ /dev/null @@ -1,2 +0,0 @@ -au BufNewFile,BufRead *.t set filetype=perl -au BufNewFile,BufRead *.psgi set filetype=perl diff --git a/vim/ftdetect/taeb-log.vim b/vim/ftdetect/taeb-log.vim deleted file mode 100644 index 5a2a6fd..0000000 --- a/vim/ftdetect/taeb-log.vim +++ /dev/null @@ -1 +0,0 @@ -au! BufRead,BufNewFile *{taeb,TAEB}/log{s,}/*.log* set filetype=taeb-log diff --git a/vim/ftdetect/tmux.vim b/vim/ftdetect/tmux.vim deleted file mode 100644 index 77872ec..0000000 --- a/vim/ftdetect/tmux.vim +++ /dev/null @@ -1 +0,0 @@ -au! BufRead,BufNewFile *tmux.conf set filetype=tmux diff --git a/vim/ftdetect/tt.vim b/vim/ftdetect/tt.vim deleted file mode 100644 index b576894..0000000 --- a/vim/ftdetect/tt.vim +++ /dev/null @@ -1 +0,0 @@ -au BufNewFile,BufRead *.tmpl set filetype=tt2 diff --git a/vim/ftplugin/lua.vim b/vim/ftplugin/lua.vim deleted file mode 100644 index fc0d0fc..0000000 --- a/vim/ftplugin/lua.vim +++ /dev/null @@ -1,11 +0,0 @@ -" :make does a syntax check -setlocal makeprg=luac\ -p\ % -setlocal errorformat=luac:\ %f:%l:\ %m - -" set commentstring -setlocal commentstring=--%s - -" treat require lines as include lines (for tab completion, etc) -setlocal include=\\s*require\\s* -setlocal includeexpr=substitute(v:fname,'\\.','/','g').'.lua' -exe "setlocal path=" . system("lua -e 'local fpath = \"\" for path in package.path:gmatch(\"[^;]*\") do if path:match(\"\?\.lua$\") then fpath = fpath .. path:gsub(\"\?\.lua$\", \"\") .. \",\" end end print(fpath:gsub(\",,\", \",.,\"):sub(0, -2))'") diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim deleted file mode 100644 index f30a884..0000000 --- a/vim/ftplugin/markdown.vim +++ /dev/null @@ -1 +0,0 @@ -set tw=78 diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim index 60bafd3..94f3c1d 100644 --- a/vim/ftplugin/perl.vim +++ b/vim/ftplugin/perl.vim @@ -17,10 +17,6 @@ endfunction nmap <buffer> <silent>K :call Help(0, [':'], '<SID>perldoc')<CR> vmap <buffer> <silent>K :call Help(1, [':'], '<SID>perldoc')<CR> -nmap <buffer> <silent>gf :exe v:count . 'find ' . substitute(expand('<cfile>'), '::', '/', 'g') . '.pm'<CR> -" XXX: <cfile> is wrong here, need to do something like i do for Help -"vmap <buffer> <silent>gf :exe v:count . 'find ' . substitute(expand('<cfile>'), '::', '/', 'g') . '.pm'<CR> - function! s:unpostfix() let postop_pattern = '\<\(if\|unless\|while\|until\|for\)\>' let indent = repeat(' ', &sw) @@ -42,71 +38,4 @@ function! s:unpostfix() " call setline('.', line) exe 's/\(\s*\)\(.*\) ' . postop_pattern . ' \(.*\);/\1\3 (\4) {\r\1' . indent . '\2;\r\1}/' endfunction - map <buffer> <silent> <Leader>i :call <SID>unpostfix()<CR> - -if 0 -" reimplement :make, since it always prints to the screen, which is annoying -function! Make() - if exists('#QuickFixCmdPre') - doau QuickFixCmdPre make - endif - - cexpr "" - - let buffer_contents = join(getbufline("", 1, '$'), "\n") - let output = system("perl -c -Ilib", buffer_contents) - let lines = split(output, "\n") - - for line in lines - let match = matchlist(line, '\(.\+\) at - line \(\d\+\)') - if !empty(match) - caddexpr expand('%') . ':' . match[2] . ':' . match[1] - endif - endfor - - if exists('#QuickFixCmdPost') - doau QuickFixCmdPost make - endif -endfunction - -function! HighlightCurrent() - exe '1wincmd w' - try - syntax clear CompileError - catch /E28/ - endtry - let qlist = getqflist() - for q in qlist - let line = substitute(getline(q['lnum']), '\', '\\\\', 'g') - exe 'syntax match CompileError /^\%' . q['lnum'] . 'l' . line . '$/' - endfor - highlight CompileError ctermbg=red guibg=red -endfunction - -let b:needs_clear = 0 -function! UpdateStatusLine() - let qlist = getqflist() - let lnum = getpos('.')[1] - for q in qlist - if lnum == q["lnum"] - let text = q["text"] - let width = &columns - 52 - if strlen(text) > width - 3 - let text = strpart(text, 0, width - 3) . '...' - endif - echo text - let b:needs_clear = 1 - return - endif - endfor - if b:needs_clear - echo "" - let b:needs_clear = 0 - endif -endfunction - -au BufEnter,BufWritePost <buffer> call Make() -au QuickFixCmdPost <buffer> call HighlightCurrent() -au CursorMoved <buffer> call UpdateStatusLine() -endif diff --git a/vim/ftplugin/rust.vim b/vim/ftplugin/rust.vim index 11a75d7..03d90d4 100644 --- a/vim/ftplugin/rust.vim +++ b/vim/ftplugin/rust.vim @@ -1,5 +1,5 @@ if filereadable("Cargo.toml") - compiler cargo + compiler cargo setlocal makeprg=cargo\ build else setlocal makeprg=rustc\ % diff --git a/vim/ftplugin/scala.vim b/vim/ftplugin/scala.vim deleted file mode 100644 index 7b8e826..0000000 --- a/vim/ftplugin/scala.vim +++ /dev/null @@ -1 +0,0 @@ -call unite#custom#profile('with_dir', 'context', {'input' : '^src/ '}) diff --git a/vim/syntax/taeb-log.vim b/vim/syntax/taeb-log.vim deleted file mode 100644 index 1dac39c..0000000 --- a/vim/syntax/taeb-log.vim +++ /dev/null @@ -1,37 +0,0 @@ -" Vim syntax file -" Language: TAEB logfiles -" Author: Jesse Luehrs <doy at tozt dot net> -" Version: 20081207 -" Copyright: Copyright (c) 2008 Jesse Luehrs -" Licence: You may redistribute this under the same terms as Vim itself - -if exists("b:current_syntax") - finish -endif - -syn keyword TAEBlevellow DEBUG INFO NOTICE - \ contained -syn keyword TAEBlevelmid WARNING - \ contained -syn keyword TAEBlevelhigh ERROR CRITICAL EMERGENCY - \ contained -syn match TAEBinfo /^.\{-}\]/ - \ contains=TAEBturn,TAEBtime,TAEBmsgtype -syn match TAEBtime /\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d/ - \ display nextgroup=TAEBmsgtype skipwhite contained -syn match TAEBturn /^<T\(-\|\d\+\)>/ - \ display nextgroup=TAEBtime skipwhite contained -syn match TAEBmsgtype /\[[^]]\{-}\]/ - \ display contains=TAEBlevel.*,TAEBchannel contained -syn match TAEBchannel /:\zs\w\+\ze\]/ - \ display contained - -hi def link TAEBturn Keyword -hi def link TAEBtime Comment -hi def link TAEBlevellow Identifier -hi def link TAEBlevelmid Todo -hi def link TAEBlevelhigh Error -hi def link TAEBchannel Special -hi def link TAEBmsgtype Type - -let b:current_syntax = "taeb-log" diff --git a/vim/syntax/tmux.vim b/vim/syntax/tmux.vim deleted file mode 100644 index e85f8ff..0000000 --- a/vim/syntax/tmux.vim +++ /dev/null @@ -1,126 +0,0 @@ -" Vim syntax file -" Language: tmux(1) configuration file -" Maintainer: Tiago Cunha <tcunha@users.sourceforge.net> -" Last Change: $Date: 2010-07-27 18:29:07 $ -" License: This file is placed in the public domain. -" -" To install this file: -" -" - Drop the file in the syntax directory into runtimepath (such as -" ~/.vim/syntax/tmux.vim). -" - Make the filetype recognisable by adding the following to filetype.vim -" (~/.vim/filetype.vim): -" -" augroup filetypedetect -" au BufNewFile,BufRead .tmux.conf*,tmux.conf* setf tmux -" augroup END -" -" - Switch on syntax highlighting by adding "syntax enable" to .vimrc. -" - -if version < 600 - syntax clear -elseif exists("b:current_syntax") - finish -endif - -setlocal iskeyword+=- -syntax case match - -syn keyword tmuxAction any current none -syn keyword tmuxBoolean off on - -syn keyword tmuxCmds - \ attach[-session] detach[-client] has[-session] kill-server - \ kill-session lsc list-clients lscm list-commands ls list-sessions - \ lockc lock-client locks lock-session new[-session] refresh[-client] - \ rename[-session] showmsgs show-messages source[-file] start[-server] - \ suspendc suspend-client switchc switch-client - \ copy-mode - \ breakp break-pane capturep capture-pane choose-client choose-session - \ choose-tree choose-window displayp display-panes findw find-window - \ joinp join-pane killp kill-pane killw kill-window lastp last-pane - \ last[-window] linkw link-window lsp list-panes lsw list-windows movep - \ move-pane movew move-window neww new-window nextl next-layout - \ next[-window] pipep pipe-pane prevl previous-layout prev[ious-window] - \ renamew rename-window resizep resize-pane respawnp respawn-pane - \ respawnw respawn-window rotatew rotate-window selectl select-layout - \ selectp select-pane selectw select-window splitw split-window swapp - \ swap-pane swapw swap-window unlinkw unlink-window - \ bind[-key] lsk list-keys send[-keys] send-prefix unbind[-key] - \ set[-option] setw set-window-option show[-options] showw - \ show-window-options - \ setenv set-environment showenv show-environment - \ command-prompt confirm[-before] display[-message] - \ choose-buffer clearhist clear-history deleteb delete-buffer lsb - \ list-buffers loadb load-buffer pasteb paste-buffer saveb save-buffer - \ setb set-buffer showb show-buffer - \ clock-mode if[-shell] lock[-server] run[-shell] server-info info - \ choose-list wait-for - -syn keyword tmuxOptsSet - \ buffer-limit escape-time exit-unattached exit-unattached quiet - \ set-clipboard - \ base-index bell-action bell-on-alert default-command default-path - \ default-shell default-terminal destroy-unattached detach-on-destroy - \ display-panes-active-colour display-panes-colour display-panes-time - \ display-time history-limit - \ lock-after-time lock-command lock-server - \ message-command-attr message-attr message-command-bg message-bg - \ message-command-fg message-fg message-limit - \ mouse-resize-pane mouse-select-pane mouse-select-window mouse-utf8 - \ pane-active-border-bg pane-border-bg pane-active-border-fg - \ pane-border-fg prefix prefix2 - \ renumber-windows repeat-time set-remain-on-exit set-titles - \ set-titles-string status status-attr status-bg status-fg - \ status-interval status-justify status-keys status-left - \ status-left-attr status-left-bg status-left-fg status-left-length - \ status-position status-right status-right-attr status-right-bg - \ status-right-fg status-right-length status-utf8 terminal-overrides - \ update-environment visual-activity visual-bell visual-content - \ visual-silence word-separators - -syn keyword tmuxOptsSetw - \ aggressive-resize alternate-screen automatic-rename - \ c0-change-interval c0-change-trigger clock-mode-colour - \ clock-mode-style force-height force-width layout-history-limit - \ main-pane-height main-pane-width mode-attr mode-bg mode-fg move-keys - \ mode-mouse monitor-activity monitor-content monitor-silence - \ other-pane-height other-pane-width pane-base-index remain-on-exit - \ synchronize-panes utf8 window-status-bell-attr window-status-bell-bg - \ window-status-bell-fg window-status-content-attr - \ window-status-content-bg window-status-content-fg - \ window-status-activity-attr window-status-activity-bg - \ window-status-activity-fg window-status-attr - \ window-status-current-attr window-status-attr window-status-current-bg - \ window-status-bg window-status-current-fg window-status-fg - \ window-status-current-format window-status-format - \ window-status-separator xterm-keys wrap-search - -syn keyword tmuxTodo FIXME NOTE TODO XXX contained - -syn match tmuxKey /\(C-\|M-\|\^\)\+\S\+/ display -syn match tmuxNumber /\d\+/ display -syn match tmuxOptions /\s-\a\+/ display -syn match tmuxVariable /\w\+=/ display -syn match tmuxVariableExpansion /\${\=\w\+}\=/ display - -syn region tmuxComment start=/#/ end=/$/ contains=tmuxTodo display oneline -syn region tmuxString start=/"/ end=/"/ display oneline -syn region tmuxString start=/'/ end=/'/ display oneline - -hi def link tmuxAction Boolean -hi def link tmuxBoolean Boolean -hi def link tmuxCmds Keyword -hi def link tmuxComment Comment -hi def link tmuxKey Special -hi def link tmuxNumber Number -hi def link tmuxOptions Identifier -hi def link tmuxOptsSet Function -hi def link tmuxOptsSetw Function -hi def link tmuxString String -hi def link tmuxTodo Todo -hi def link tmuxVariable Constant -hi def link tmuxVariableExpansion Constant - -let b:current_syntax = "tmux" |