diff options
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | aliases | 2 | ||||
m--------- | vim/bundle/startify | 0 | ||||
-rw-r--r-- | vimrc | 23 |
4 files changed, 27 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules index e7168e6..5aee141 100644 --- a/.gitmodules +++ b/.gitmodules @@ -46,3 +46,6 @@ [submodule "vim/bundle/signify"] path = vim/bundle/signify url = git://github.com/mhinz/vim-signify +[submodule "vim/bundle/startify"] + path = vim/bundle/startify + url = git://github.com/mhinz/vim-startify @@ -33,7 +33,7 @@ alias misc='tmux a -t misc' alias wgetff='wget --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070404 Firefox/2.0.0.3"' alias pm="find lib -type f | sort" alias bootstrap_cpanm="wget -O- -q http://xrl.us/cpanm | perl - App::cpanminus" -alias v="vim -c 'call feedkeys(\"t\")'" +alias v="vim -c 'call feedkeys(\"et\")'" alias wifi="sudo systemctl restart netctl-auto@wlan0" alias prove="forkprove" alias ack="ag" diff --git a/vim/bundle/startify b/vim/bundle/startify new file mode 160000 +Subproject cd0fc8c0451ab9c04c779d22f40f9df671d4668 @@ -698,4 +698,27 @@ let g:signify_vcs_list = [ 'git', 'svn' ] let g:signify_disable_by_default = 1 nmap <silent>dv :SignifyToggle<CR> " }}} +" startify {{{ +let g:startify_files_number = 4 +let g:startify_change_to_vcs_root = 1 +let g:startify_custom_indices = [ + \'!', '@', '#', '$', '%', '^', '&', '*', '(', ')' + \] +let fortune = system('fortune -n200 -s ~/.fortune | grep -v -E "^$"') +let g:startify_custom_footer = [''] + map(split(fortune, '\n'), '" ".v:val') +let g:startify_skiplist = ['^/usr/share/vim', '/.git/'] +for file in [ '.gitignore', expand('~/.gitignore') ] + if filereadable(file) + for line in readfile(file) + let line = substitute(line, '#.*', '', '') + if line != '' + let line = substitute(line, '\.', '\\.', 'g') + let line = substitute(line, '*', '.*', 'g') + let line = substitute(line, '?', '.?', 'g') + call add(g:startify_skiplist, '/' . line . '$') + endif + endfor + endif +endfor +" }}} " }}} |