aboutsummaryrefslogtreecommitdiff
path: root/files/.vim/after
diff options
context:
space:
mode:
authorAnton Bobov <bobov_a@sibsac.ru>2011-10-13 11:17:19 +0600
committerAnton Bobov <bobov_a@sibsac.ru>2011-10-13 11:17:19 +0600
commitda709cd9e90c3ab644bb92700f0ed40d965b80d3 (patch)
tree144e5470327f72b8489141cd7595b652c6c32616 /files/.vim/after
Initial commit.
Diffstat (limited to 'files/.vim/after')
-rwxr-xr-xfiles/.vim/after/ftplugin/gitcommit.vim4
-rwxr-xr-xfiles/.vim/after/ftplugin/mail.vim52
-rwxr-xr-xfiles/.vim/after/ftplugin/python.vim3
-rwxr-xr-xfiles/.vim/after/ftplugin/sh.vim1
-rwxr-xr-xfiles/.vim/after/ftplugin/svn.vim3
-rwxr-xr-xfiles/.vim/after/plugin/snipMate.vim23
-rwxr-xr-xfiles/.vim/after/syntax/help.vim24
7 files changed, 110 insertions, 0 deletions
diff --git a/files/.vim/after/ftplugin/gitcommit.vim b/files/.vim/after/ftplugin/gitcommit.vim
new file mode 100755
index 0000000..b984b96
--- /dev/null
+++ b/files/.vim/after/ftplugin/gitcommit.vim
@@ -0,0 +1,4 @@
+set spell
+set textwidth=72
+
+hi link gitcommitSummary Special
diff --git a/files/.vim/after/ftplugin/mail.vim b/files/.vim/after/ftplugin/mail.vim
new file mode 100755
index 0000000..ee2bde9
--- /dev/null
+++ b/files/.vim/after/ftplugin/mail.vim
@@ -0,0 +1,52 @@
+set spell
+set expandtab
+set nonumber
+set imsearch=1
+set iminsert=1
+set colorcolumn=+1
+
+" par options
+"
+" e[expel]
+"
+" If expel is 1, superfluous lines are withheld from the output .
+" Defaults to 0 .
+"
+" g[guess]
+"
+" If guess is 1, then when par is choosing line breaks, whenever
+" it encounters a curious word followed by a capitalized word, it
+" takes one of two special actions. If the two words are separated
+" by a single space in the input, they will be merged into one
+" word with an embedded non-breaking space. If the two words are
+" separated by more than one space, or by a line break, par will
+" insure that they are separated by two spaces, or by a line
+" break, in the output. Defaults to 0.
+"
+" q[quote]
+"
+" If quote is 1, then before each segment is scanned for bodiless
+" lines, par supplies vacant lines between different quotation
+" nesting levels as follows: For each pair of adjacent lines in
+" the segment, (scanned from the top down) which have different
+" quoteprefixes, one of two actions is taken. If invis is 0, and
+" either line consists entirely of quote characters and spaces
+" (or is empty), that line is truncated to the longest common
+" prefix of the two lines (both are truncated if both qualify).
+" Otherwise, a line consisting of the longest common prefix of
+" the two lines is inserted between them. quote also affects the
+" default value of prefix. Defaults to 0. (See also the p and i
+" options.)
+"
+vmap <F4> :!par 72qeg<CR>gv:s/\v\s*$//<CR>:nohl<CR>
+
+function! <SID>DeleteTrailingWhitespace()
+ if ! &binary
+ let l:l = line('.')
+ let l:c = col('.')
+ silent! :%s/[\r \t]\+$//
+ call histdel('search', -1)
+ call cursor(l:l, l:c)
+ endif
+endfunction
+autocmd BufWritePre,FileWritePre * call <SID>DeleteTrailingWhitespace()
diff --git a/files/.vim/after/ftplugin/python.vim b/files/.vim/after/ftplugin/python.vim
new file mode 100755
index 0000000..80da192
--- /dev/null
+++ b/files/.vim/after/ftplugin/python.vim
@@ -0,0 +1,3 @@
+set fileformat=unix
+set nocopyindent
+set expandtab
diff --git a/files/.vim/after/ftplugin/sh.vim b/files/.vim/after/ftplugin/sh.vim
new file mode 100755
index 0000000..445ad6a
--- /dev/null
+++ b/files/.vim/after/ftplugin/sh.vim
@@ -0,0 +1 @@
+set fileformat=unix
diff --git a/files/.vim/after/ftplugin/svn.vim b/files/.vim/after/ftplugin/svn.vim
new file mode 100755
index 0000000..3c4b1e3
--- /dev/null
+++ b/files/.vim/after/ftplugin/svn.vim
@@ -0,0 +1,3 @@
+set spell
+set textwidth=72
+set expandtab
diff --git a/files/.vim/after/plugin/snipMate.vim b/files/.vim/after/plugin/snipMate.vim
new file mode 100755
index 0000000..d2989cf
--- /dev/null
+++ b/files/.vim/after/plugin/snipMate.vim
@@ -0,0 +1,23 @@
+" These are the mappings for snipMate.vim. Putting it here ensures that it
+" will be mapped after other plugins such as supertab.vim.
+if exists('s:did_snips_mappings') || &cp || version < 700
+ finish
+endif
+let s:did_snips_mappings = 1
+
+ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
+snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
+snor <bs> b<bs>
+snor ' b<bs>'
+snor <right> <esc>a
+snor <left> <esc>bi
+
+" By default load snippets in snippets_dir
+if empty(snippets_dir)
+ finish
+endif
+
+call GetSnippets(snippets_dir, '_') " Get global snippets
+
+au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif
+" vim:noet:sw=4:ts=4:ft=vim
diff --git a/files/.vim/after/syntax/help.vim b/files/.vim/after/syntax/help.vim
new file mode 100755
index 0000000..5215867
--- /dev/null
+++ b/files/.vim/after/syntax/help.vim
@@ -0,0 +1,24 @@
+" Help extensions for luarefvim
+" This is somewhat based on CRefVim
+" Maintainer: Luis Carvalho <lexcarvalho@gmail.com>
+" Last Change: May, 26, 2005
+" Version: 0.1
+
+" add three syntax classes: bold, emph (italic) and code -- similarly to html
+syn match helpIgnoreBold "#[a-zA-Z0-9&()\`\'\"\-\+\*=\[\]\{\}\.,;: ]\+#" contains=helpMatchBold
+syn match helpMatchBold "[a-zA-Z0-9&()\`\'\"\-\+\*=\[\]\{\}\.,;: ]\+" contained
+syn match helpIgnoreEmph "@[a-zA-Z0-9&()\`\'\"\-\+\*=\[\]\{\}\.,;: ]\+@" contains=helpMatchEmph
+syn match helpMatchEmph "[a-zA-Z0-9&()\`\'\"\-\+\*=\[\]\{\}\.,;: ]\+" contained
+" this match is the same as in CRefVim's help.vim (that is, uses $$):
+" the idea is to keep some degree of portability.
+syn match helpIgnoreCode "\$[a-zA-Z0-9@\\\*/\._=()\-+%<>&\^|!~\?:,\[\];{}#\`\'\" ]\+\$" contains=helpMatchCode
+syn match helpMatchCode "[a-zA-Z0-9@\\\*/\._=()\-+%<>&\^|!~\?:,\[\];{}#\`\'\" ]\+" contained
+
+" syn high links
+hi def link helpIgnoreBold Ignore
+hi def link helpIgnoreEmph Ignore
+hi def link helpIgnoreCode Ignore
+hi def link helpMatchBold Function
+hi def link helpMatchEmph Special
+hi def link helpMatchCode Comment
+