Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (24 sloc) 833 Bytes
set t_Co=16
colorscheme solarized
set background=dark
set cursorline
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
" Visually select the text that was last edited/pasted
nmap gV `[v`]
set vb t_vb= " Turn off bell, this could be more annoying, but I'm not sure how
:noremap <leader>i :set list!<CR> " Toggle invisible chars
function! Preserve(command)
" Preparation: save last search, and cursor position.
let _s=@/
let l = line(".")
let c = col(".")
" Do the business:
execute a:command
" Clean up: restore previous search history, and cursor position
let @/=_s
call cursor(l, c)
endfunction
nmap _$ :call Preserve("%s/\\s\\+$//e")<CR>
nmap _= :call Preserve("normal gg=G")<CR>
autocmd User Rails Rnavcommand fabricator spec/fabricators -suffix=_fabricator.rb -default=model()
Something went wrong with that request. Please try again.