JakeWharton / rebaseandsqua.sh

Utility and website which makes it easy to rebase and squash your branches.
rebaseandsqua.sh
56 stars 3 forks source link

Some `vim` configs don't play nice. #1

Open JakeWharton opened 11 years ago

JakeWharton commented 11 years ago
$ git config core.editor

$ env | grep EDITOR
EDITOR=vim

$ curl ...
<trim>
Vim: Warning: Input is not from a terminal
Vim: Error reading input, exiting...
Vim: preserving files...
Vim: Finished.
error: There was a problem with the editor 'vim'.
Please supply the message using either -m or -F option.
matt-oakes commented 10 years ago

Do you have example of a configuration which does work?

funchal commented 7 years ago

this affects me :(

Vim: Warning: Input is not from a terminal
Vim: Error reading input, exiting...
Vim: preserving files...
Vim: Finished.
error: There was a problem with the editor 'editor'.
Please supply the message using either -m or -F option.

This is my full .vimrc:

set guifont=Andale\ Mono\ 10 "
filetype on       " enable file type detection
syntax on         " syntax highlighting
set nocompatible  " use Vim defaults (much better!)
set bs=2          " allow backspacing over everything in insert mode
set ruler         " show the cursor position all the time
set number        " line numbering cpoptions
set nowrap        " no line wrapping
set showcmd       " show commands
set showmode      " show current mode
highlight SpaceSpecial guibg=AntiqueWhite
syntax match SpaceSpecial "\t"
syntax match SpaceSpecial "\s\+$"
set tabstop=4     " tab width
set shiftwidth=4  " tab width
set expandtab     " spaces instead of tabs
set smartindent   " smart code indentation
set smarttab      " smart tabs
set hlsearch      " search highlighting
set statusline=%<%F%h%m%r%=\[%B\]\ %l,%c%V\ %P
set mousemodel=popup_setpos "
let spell_executable = "aspell" "
let spell_options = "--encoding=utf-8"
let spell_language_list = "francais,english"
let g:miniBufExplVSplit=20 " vertical split
let g:miniBufExplMapCTabSwitchBufs=1 " tab switch
let g:miniBufExplUseSingleClick=1 " single click
au FileType make setlocal noexpandtab
set autowrite
map <F5> <ins><F5><esc>
map! <F5> <esc>:make<cr>:cw<cr>:cc<cr><ins>