这里有新的vimmer。我正在尝试启动并运行vim-ipython,但我无法将命令发送到ipython控制台。我已经尝试将所有缓冲区设置为可修改,vim-ipython中的每个提示等。我找不到任何有此问题的主题。我怀疑它可能与我搞砸的一些撤消设置有关,但我找不到可能是罪魁祸首的任何东西。包括我的.vimrc供您阅读。
尝试向iPython qtconsole发送简单命令(“a = 1”)时出现vim错误:
In[6]: In[]: %run -i '/Users/jsb/test.py'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<string>", line 444, in f_with_update
File "<string>", line 395, in update_subchannel_msgs
vim.error: cannot save undo information
Error detected while processing :
E21: Cannot make changes, 'modifiable' is off
.vimrm个人资料:
"pathogen
runtime bundle/vim-pathogen/autoload/pathogen.vim
execute pathogen#infect()
syntax on
filetype plugin indent on
"use pathogen to easily modify runtime path to include all plugins under
call pathogen#helptags()
call pathogen#incubate()
colorscheme morning
set clipboard+=unnamed
set grepprg=grep\ -nH\ $* "grepping abiity, whatever this means
" hides buffers instead of closing them, so don't need to save before moving to other file
"set hidden
"set nowrap " don't wrap lines
set tabstop=2 " a tab is four spaces
"set backspace=indent,eol,start
" allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting
set number " always show line numbers
set shiftwidth=2 " number of spaces to use for autoindenting
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set showmatch " set show matching parenthesis
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase,
" case-sensitive otherwise
set smarttab " insert tabs on the start of a line according to
" shiftwidth, not tabstop
set hlsearch " highlight search terms
set incsearch " show search matches as you type
set history=1000 " remember more commands and search history
"set undolevels=1000 " use many muchos levels of undo
"set wildignore=*.swp,*.bak,*.pyc,*.class
set title " change the terminal's title
set visualbell " don't beep
set noerrorbells " don't beep
"set updatetime=1000
"set nobackup "all backing up will be gitted thank you very much
"set noswapfile "no recovery after crashing. just save you shit duder
" stuff for tex
" REQUIRED. This makes vim invoke Latex-Suite when you open a tex file.
filetype plugin on
" IMPORTANT: win32 users will need to have 'shellslash' set so that latex
" can be called correctly.
"set shellslash
" IMPORTANT: grep will sometimes skip displaying the file name if you
" search in a singe file. This will confuse Latex-Suite. Set your grep
" program to always generate a file-name.
set grepprg=grep\ -nH\ $*
" OPTIONAL: This enables automatic indentation as you type.
filetype indent on
" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
" 'plaintex' instead of 'tex', which results in vim-latex not being loaded.
" The following changes the default filetype back to 'tex':
let g:tex_flavor='latex'
let g:livepreview_previewer = 'open -a Skim'
let g:Tex_TreatMacViewerAsUNIX = 1
let g:Tex_ExecuteUNIXViewerInForeground = 1
let g:Tex_ViewRule_ps = 'open -a Skim'
let g:Tex_ViewRule_pdf = 'open -a /Applications/Skim.app'
let g:Tex_ViewRule_dvi = 'open -a /Applications/texniscope.app'
autocmd FileType tex call Tex_SetTeXCompilerTarget('View','pdf')
vim包: nerdtree rainbow_parentheses VIM-colorschemes VIM-opython VIM乳胶 VIM病原体 VIM-明智
答案 0 :(得分:0)
查看错误,您可以通过以下命令修改它
:set modifiable