Skip to content

Commit

Permalink
1st
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryOgurtsov authored and DmitryOgurtsov committed Sep 15, 2012
1 parent f604fb1 commit 5c60a17
Show file tree
Hide file tree
Showing 242 changed files with 43,920 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .VimballRecord
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
command-t-0.8.1.vba: call delete('/Users/Home/.vim/ruby/command-t/controller.rb')|call delete('/Users/Home/.vim/ruby/command-t/extconf.rb')|call delete('/Users/Home/.vim/ruby/command-t/finder.rb')|call delete('/Users/Home/.vim/ruby/command-t/match_window.rb')|call delete('/Users/Home/.vim/ruby/command-t/prompt.rb')|call delete('/Users/Home/.vim/ruby/command-t/scanner.rb')|call delete('/Users/Home/.vim/ruby/command-t/settings.rb')|call delete('/Users/Home/.vim/ruby/command-t/stub.rb')|call delete('/Users/Home/.vim/ruby/command-t/vim/screen.rb')|call delete('/Users/Home/.vim/ruby/command-t/vim/window.rb')|call delete('/Users/Home/.vim/ruby/command-t/vim.rb')|call delete('/Users/Home/.vim/ruby/command-t/ext.c')|call delete('/Users/Home/.vim/ruby/command-t/match.c')|call delete('/Users/Home/.vim/ruby/command-t/matcher.c')|call delete('/Users/Home/.vim/ruby/command-t/ext.h')|call delete('/Users/Home/.vim/ruby/command-t/match.h')|call delete('/Users/Home/.vim/ruby/command-t/matcher.h')|call delete('/Users/Home/.vim/ruby/command-t/ruby_compat.h')|call delete('/Users/Home/.vim/ruby/command-t/depend')|call delete('/Users/Home/.vim/doc/command-t.txt')|call delete('/Users/Home/.vim/plugin/command-t.vim')
markdown-1.1.0.vba: call delete('/Users/Home/.vim/ftdetect/markdown.vim')|call delete('/Users/Home/.vim/snippets/markdown.snippets')|call delete('/Users/Home/.vim/syntax/markdown.vim')
2 changes: 2 additions & 0 deletions .netrwhist
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =0
4 changes: 4 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
To install this on your own system, paste the following into the Terminal.

git clone https://github.com/daogurtsov/VimLinux.git ~/.vim;
ln -s ~/.vim/vimrc ~/.vimrc
48 changes: 48 additions & 0 deletions after/plugin/TabularMaps.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
if !exists(':Tabularize')
finish " Tabular.vim wasn't loaded
endif

let s:save_cpo = &cpo
set cpo&vim

AddTabularPattern! assignment /[|&+*/%<>=!~-]\@<!\([<>!=]=\|=\~\)\@![|&+*/%<>=!~-]*=/l1r1
AddTabularPattern! two_spaces / /l0

AddTabularPipeline! multiple_spaces / / map(a:lines, "substitute(v:val, ' *', ' ', 'g')") | tabular#TabularizeStrings(a:lines, ' ', 'l0')

AddTabularPipeline! argument_list /(.*)/ map(a:lines, 'substitute(v:val, ''\s*\([(,)]\)\s*'', ''\1'', ''g'')')
\ | tabular#TabularizeStrings(a:lines, '[(,)]', 'l0')
\ | map(a:lines, 'substitute(v:val, ''\(\s*\),'', '',\1 '', "g")')
\ | map(a:lines, 'substitute(v:val, ''\s*)'', ")", "g")')

function! SplitCDeclarations(lines)
let rv = []
for line in a:lines
" split the line into declaractions
let split = split(line, '\s*[,;]\s*')
" separate the type from the first declaration
let type = substitute(split[0], '\%(\%([&*]\s*\)*\)\=\k\+$', '', '')
" add the ; back on every declaration
call map(split, 'v:val . ";"')
" add the first element to the return as-is, and remove it from the list
let rv += [ remove(split, 0) ]
" transform the other elements by adding the type on at the beginning
call map(split, 'type . v:val')
" and add them all to the return
let rv += split
endfor
return rv
endfunction

AddTabularPipeline! split_declarations /,.*;/ SplitCDeclarations(a:lines)

AddTabularPattern! ternary_operator /^.\{-}\zs?\|:/l1

AddTabularPattern! cpp_io /<<\|>>/l1

AddTabularPattern! pascal_assign /:=/l1

AddTabularPattern! trailing_c_comments /\/\*\|\*\/\|\/\//l1

let &cpo = s:save_cpo
unlet s:save_cpo
35 changes: 35 additions & 0 deletions after/plugin/snipMate.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
" 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('loaded_snips') || exists('s:did_snips_mappings')
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>
ino <silent> <s-tab> <c-r>=BackwardsSnippet()<cr>
snor <silent> <s-tab> <esc>i<right><c-r>=BackwardsSnippet()<cr>
ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>
" The default mappings for these are annoying & sometimes break snipMate.
" You can change them back if you want, I've put them here for convenience.
snor <bs> b<bs>
snor <right> <esc>a
snor <left> <esc>bi
snor ' b<bs>'
snor ` b<bs>`
snor % b<bs>%
snor U b<bs>U
snor ^ b<bs>^
snor \ b<bs>\
snor <c-x> b<bs><c-x>
" 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
Loading

0 comments on commit 5c60a17

Please sign in to comment.