Removed ruby expandtab stuff

This commit is contained in:
Talia 2018-01-08 10:50:30 +01:00
parent 5ad0ba7fa9
commit 21a466fbd4

5
vimrc
View file

@ -345,10 +345,6 @@ nnoremap [p :let [content, type]=
\call setreg(v:register, content, "V")<CR>[p \call setreg(v:register, content, "V")<CR>[p
\:call setreg(v:register, content, type)<CR> \:call setreg(v:register, content, type)<CR>
" Tabs vs. Spaces
nnoremap <C-tab> :setl expandtab!<CR>:set expandtab?<CR>
" TODO: custom function to retab only indentation
" Empty Lines " Empty Lines
nnoremap <ENTER> :call <SID>Enter(0)<CR> nnoremap <ENTER> :call <SID>Enter(0)<CR>
nnoremap <S-ENTER> :call <SID>Enter(1)<CR> nnoremap <S-ENTER> :call <SID>Enter(1)<CR>
@ -567,7 +563,6 @@ function! s:init_ruby_file()
nnoremap <buffer> <leader>ic oclass <C-o>m'<enter>end<esc>`'a nnoremap <buffer> <leader>ic oclass <C-o>m'<enter>end<esc>`'a
nnoremap <buffer> <leader>id odef <C-o>m'()<enter>end<esc>`'a nnoremap <buffer> <leader>id odef <C-o>m'()<enter>end<esc>`'a
set expandtab
nnoremap <buffer> <F5> :w<CR>:!ruby %<CR> nnoremap <buffer> <F5> :w<CR>:!ruby %<CR>
nnoremap <buffer> <F6> :w<CR>:!ruby -wc %<CR> nnoremap <buffer> <F6> :w<CR>:!ruby -wc %<CR>
nnoremap <buffer> <leader>~ :call <SID>RubyComment(0)<CR> nnoremap <buffer> <leader>~ :call <SID>RubyComment(0)<CR>