Permalink
Browse files

Killed vim-markdown, it didn't work for large md files

  • Loading branch information...
1 parent af63af2 commit 2826e4d46f514e13e45c91ff4296bdfcc22e802f @bmatheny committed Jun 16, 2012
Showing with 56 additions and 11 deletions.
  1. +3 −3 .gitmodules
  2. +1 −0 .vim/bundle/lusty
  3. +0 −1 .vim/bundle/vim-markdown
  4. +23 −0 .vim/plugin/nerdtreequit.vim
  5. +17 −4 .vimrc
  6. +2 −3 .zshplugins/aliases.zsh
  7. +10 −0 .zshplugins/fasd.zsh
View
@@ -7,9 +7,6 @@
[submodule ".vim/bundle/vim-rails"]
path = .vim/bundle/vim-rails
url = https://github.com/tpope/vim-rails.git
-[submodule ".vim/bundle/vim-markdown"]
- path = .vim/bundle/vim-markdown
- url = https://github.com/plasticboy/vim-markdown.git
[submodule ".vim/bundle/vim-cuccumber"]
path = .vim/bundle/vim-cuccumber
url = https://github.com/tpope/vim-cucumber.git
@@ -40,3 +37,6 @@
[submodule ".vim/bundle/vim-powerline"]
path = .vim/bundle/vim-powerline
url = https://github.com/Lokaltog/vim-powerline
+[submodule ".vim/bundle/lusty"]
+ path = .vim/bundle/lusty
+ url = https://github.com/sjbach/lusty.git
Submodule lusty added at c48ab2
Submodule vim-markdown deleted from 70ca17
@@ -0,0 +1,23 @@
+function! NERDTreeQuit()
+ redir => buffersoutput
+ silent buffers
+ redir END
+" 1BufNo 2Mods. 3File 4LineNo
+ let pattern = '^\s*\(\d\+\)\(.....\) "\(.*\)"\s\+line \(\d\+\)$'
+ let windowfound = 0
+
+ for bline in split(buffersoutput, "\n")
+ let m = matchlist(bline, pattern)
+
+ if (len(m) > 0)
+ if (m[2] =~ '..a..')
+ let windowfound = 1
+ endif
+ endif
+ endfor
+
+ if (!windowfound)
+ quitall
+ endif
+endfunction
+autocmd WinEnter * call NERDTreeQuit()
View
21 .vimrc
@@ -34,10 +34,10 @@ set wildignore=*.o,*.lo,*.la,#*#,.*.rej,*.rej,.*~,*~,.#*,*.class,*.swp,*.jar,*.g
" Visuals
" ****************************************************************************
" Show visually what is being done
-set showcmd
+set showcmd
" Highlight our search
-set hlsearch
+set hlsearch
" Show matching brace
set showmatch
@@ -72,6 +72,11 @@ set formatoptions=tcro
autocmd BufNewFile *.pl 0r ~/src/templates/skeleton.pl
"autocmd BufNewFile *.php 0r ~/src/templates/skeleton.php
+" Open NERDTree by default
+autocmd VimEnter * NERDTree
+autocmd BufEnter * NERDTreeMirror
+autocmd VimEnter * wincmd w
+
" Set file types for uncommon extensions
au BufRead,BufNewFile *.sc setfiletype scheme
au BufRead,BufnewFile *.ejs setfiletype erb
@@ -81,6 +86,7 @@ au BufRead,BufNewFile *.thor setfiletype ruby
" Language Specific Options
au FileType c set cindent
+au FileType zsh set si et sw=2 st=2 tw=120
au FileType scala set si et sw=2 st=2 tw=100
au FileType javascript set ai cindent tw=3000
au FileType perl set cindent
@@ -167,6 +173,8 @@ colorscheme solarized
syn sync fromstart
let g:Powerline_colorscheme='skwp'
+let g:Powerline_symbols='fancy'
+let laststatus=2
syntax on
filetype plugin indent on
@@ -175,6 +183,11 @@ filetype plugin indent on
set grepprg=~/bin/ack\ --column\ --nocolor\ --nogroup
set grepformat=%f:%l:%c:%m
+" Lusty options
+set hidden
+
" Stuff for tabs
-map ,t gt<CR>
-map ,T gT<CR>
+map <Leader>T gt<CR>
+
+" , is easier to type than \
+let mapleader=","
View
@@ -2,10 +2,9 @@ alias l='ls --color'
alias lsize='ls --color=always -sh'
alias more='less'
-alias vim="vim -o $@"
+#alias vim="vim -o $@"
alias vi=vim
-alias v=vim
-alias vtree="vim +NERDTree $@"
+alias v="f -t -e vim"
alias diff=colordiff
alias tmux='tmux -2'
View
@@ -0,0 +1,10 @@
+if [[ -f $HOME/.fasd ]]; then
+ eval "$(fasd --init auto)"
+ # jump to recently used items
+ alias a='fasd -a' # any
+ alias s='fasd -s' # show / search / select
+ alias d='fasd -d' # directory
+ alias f='fasd -f' # file
+ alias z='fasd_cd -d' # cd, same functionality as j in autojump
+ alias v='f -e vim' # quick opening files with vim
+fi

0 comments on commit 2826e4d

Please sign in to comment.