Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: codebeige/dotfiles
base: a353f03056
...
head fork: codebeige/dotfiles
compare: c3d250730b
  • 2 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
Commits on Feb 22, 2013
@codebeige Markdown folding 905e8de
Commits on Feb 23, 2013
@codebeige Folding c3d2507
View
3  .gitmodules
@@ -127,3 +127,6 @@
[submodule "vim/bundle/ruby-minitest"]
path = vim/bundle/ruby-minitest
url = https://github.com/sunaku/vim-ruby-minitest.git
+[submodule "vim/bundle/markdown-folding"]
+ path = vim/bundle/markdown-folding
+ url = https://github.com/nelstrom/vim-markdown-folding.git
View
15 vim/after/ftplugin/coffee.vim
@@ -0,0 +1,15 @@
+function! CoffeeScriptFolds()
+ if getline(v:lnum) =~ '->\s*$'
+ return ">" . indent(v:lnum) / 2
+ endif
+ return "="
+endfunction
+
+function! CoffeeScriptFoldText()
+ let foldsize = v:foldend - v:foldstart
+ return getline(v:foldstart) . " [" . foldsize . " lines] "
+endfunction
+
+setlocal foldmethod=expr
+setlocal foldexpr=CoffeeScriptFolds()
+setlocal foldtext=CoffeeScriptFoldText()
1  vim/bundle/markdown-folding
@@ -0,0 +1 @@
+Subproject commit c04f207b6c4da48df89727d2082268d718b9958a
View
8 vimrc
@@ -1,7 +1,7 @@
" Make it a real vim
set nocompatible
-" Load bundles
+""" Load bundles
silent! call pathogen#infect()
silent! call pathogen#helptags()
@@ -166,9 +166,9 @@ autocmd User Rails/spec/**/*_spec.rb UltiSnipsAddFiletypes rspec.rails.ruby
autocmd User Rake map <leader>r :Rake<cr>
" CoffeScript
-autocmd BufNewFile,BufReadPost *.coffee setl foldmethod=indent nofoldenable
autocmd BufNewFile,BufReadPost *.coffee setl shiftwidth=2 expandtab
autocmd BufNewFile,BufReadPost *_spec.js.coffee UltiSnipsAddFiletypes mocha.coffee
+autocmd BufNewFile,BufReadPost *.coffee normal zR
" Smartinput
call smartinput#map_to_trigger('i', '#', '#', '#')
@@ -189,7 +189,7 @@ autocmd BufNewFile,BufReadPost *.mkd,*.md,*.markdown,*.mdown,*.html,*.xhtml map
" RagTag
let g:ragtag_global_maps = 1
-"" Scripts & commands
+""" Scripts & commands
" processing
let processing_doc_path="/Applications/Processing.app/Contents/Resources/Java/modes/java/reference"
@@ -228,3 +228,5 @@ autocmd User Rails/*.js.coffee nmap <buffer> <leader>ka :!open http://localhost:
" disable automatic linebreaks
autocmd FileType vim set textwidth=0
+
+" vim: set fdm=expr fde=getline(v\:lnum)=~'"""'?'>1'\:'=':

No commit comments for this range

Something went wrong with that request. Please try again.