Permalink
Browse files

cleanup

  • Loading branch information...
1 parent 3b50a3c commit f64fb7587007559a9bfcdd5e350ffa293cb8e374 @sleistner committed Feb 12, 2012
Showing with 1 addition and 26 deletions.
  1. +1 −26 linked/vimrc
View
@@ -125,11 +125,8 @@ set smartcase
" Tags
let g:Tlist_Ctags_Cmd="ctags --exclude='*.js'"
-" /ack
-
" ======== mappings ========================== === == =
-"map <leader>a :Ack<space>
map <leader>b :BufExplorer<CR>
map <leader>c :copen<CR>
map <leader>r :Rename<space>
@@ -151,21 +148,12 @@ map <leader>v :!ruby -c %:.<CR>
" Move complete block one line down or up with <M-Down> and <M-Up> keys
vmap <silent> <C-M-Up> :m'<-2<CR>gv
vmap <silent> <C-M-Down> :m'>+1<CR>gv
-"nmap <C-M-Up> ddkp
-"nmap <C-M-Down> ddp
" Make p in Visual mode replace the selected text with the "" register.
vnoremap p <Esc>:let current_reg = @"<CR>gvs<C-R>=current_reg<CR><Esc>
inoremap <silent> <Bar> <Bar><Esc>:call <SID>align()<CR>a
-if exists(":Tabularize")
- nmap <Leader>a= :Tabularize /=<CR>
- vmap <Leader>a= :Tabularize /=<CR>
- nmap <Leader>a: :Tabularize /:\zs<CR>
- vmap <Leader>a: :Tabularize /:\zs<CR>
-endif
-
function! s:align()
let p = '^\s*|\s.*\s|\s*$'
if exists(':Tabularize') && getline('.') =~# '^\s*|' && (getline(line('.')-1) =~# p || getline(line('.')+1) =~# p)
@@ -211,17 +199,4 @@ iabbr <%# <%= %><Esc>hhi
set statusline=[%n]\ %<%.99f\ %h%w%m%r%y%{exists('g:loaded_rvm')?rvm#statusline():''}%=%-16(\ %l,%c-%v\ %)%P
-nnoremap <Leader>H :call<SID>LongLineHLToggle()<cr>
-hi OverLength ctermbg=none cterm=none
-match OverLength /\%>80v/
-fun! s:LongLineHLToggle()
- if !exists('w:longlinehl')
- let w:longlinehl = matchadd('ErrorMsg', '.\%>120v', 0)
- echo "Long lines highlighted"
- else
- call matchdelete(w:longlinehl)
- unl w:longlinehl
- echo "Long lines unhighlighted"
- endif
-endfunction
-
+au BufRead,BufNewFile *.rabl setf ruby

0 comments on commit f64fb75

Please sign in to comment.