From 3f107275e1eb42aec39ff00bdc5bf875b8d118cd Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Fri, 9 Feb 2018 08:37:48 +0100 Subject: [PATCH] Fixed indentation from mixed to tabs --- vimrc | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/vimrc b/vimrc index 2b863f1..2ab05c6 100644 --- a/vimrc +++ b/vimrc @@ -1,3 +1,4 @@ +" vim: set noexpandtab :miv " "!!! makes use of marker ' set nocompatible @@ -226,7 +227,7 @@ function! VisualSelection() end if (line2byte(line_start)+column_start) > (line2byte(line_end)+column_end) let [line_start, column_start, line_end, column_end] = - \ [line_end, column_end, line_start, column_start] + \ [line_end, column_end, line_start, column_start] end let lines = getline(line_start, line_end) if len(lines) == 0 @@ -281,14 +282,14 @@ function! s:hex(...) let b:prev_filetype = &filetype let &filetype = "xxd" nnoremap i i - echo "A witch turned your file into a hexadecimal toad!" + echo "A witch turned your file into a hexadecimal toad!" else nunmap i - silent exec '%!xxd -r '.join(l:args, " ") + silent exec '%!xxd -r '.join(l:args, " ") unlet b:hex let &filetype = b:prev_filetype unlet b:prev_filetype - echo "The witch turned your file back into binary data" + echo "The witch turned your file back into binary data" end endfunction command! -nargs=* Hex call hex() @@ -397,12 +398,12 @@ function! s:saveprompt() if &swapfile echo "You have swap files enabled, stop in-between-saving all the time!" end - if input("Type 'save' to save: ") ==? "save" - write + if input("Type 'save' to save: ") ==? "save" + write echo "File saved, but was it really necessary?" - else - echo "Calm the fuck down man!" - end + else + echo "Calm the fuck down man!" + end endfun noremap :call saveprompt() nnoremap :bnext @@ -661,7 +662,7 @@ au BufNewFile,BufRead *.c,*.cpp,*.h,*.hpp :nnoremap ; m'$a;`' au BufNewFile,BufRead *.rb :call init_ruby_file() function! s:init_ruby_file() - set makeprg=ruby\ -wc\ % + set makeprg=ruby\ -wc\ % setl number command! -buffer Defines lex MatchingLines("^\\s*def\\>\\s\\+\\zs.*$") | lopen command! -buffer Functions Defines " Alias @@ -725,15 +726,15 @@ function! s:init_html_file() nnoremap t ""ciw<""p>m'""p>`'l nnoremap T ""diw"_cc<""p>o""p>O - function! s:insert_tag(tag, newline) - if !a:newline - let l:text = "<".a:tag.">" - else - end + function! s:insert_tag(tag, newline) + if !a:newline + let l:text = "<".a:tag.">" + else + end put =l:text - endfunction + endfunction - nnoremap :call insert_tag(input(""), 0) + nnoremap :call insert_tag(input(""), 0) inoremap ""ciw<""p>m'""p>`'l inoremap ""diw"_cc<""p>o""p>O