在Vim中写入时缓冲区中没有行

时间:2013-08-30 17:51:08

标签: vim macvim

我在其他一些插件中使用MiniBufExplorer运行MacVim。我注意到的是,当我编辑文件并尝试编写文件(:w)时偶尔会收到消息

  

- 缓冲区中没有行 -

如果我再次输入:w,则文件写入成功。它似乎随机发芽,但一旦它开始发生,它继续发生缓冲区中的每个文件,直到我关闭/重启MacVim。

修改
目前使用的插件:

  • 病原体
  • Ack
  • Command-T
  • MiniBufExpl
  • Nerdtree
  • Pep8
  • Pydoc
  • Ropevim
  • Supertab
  • Tagbar

当前.vimrc

filetype off
call pathogen#infect()
call pathogen#helptags()

set foldmethod=indent
set foldlevel=99

map <c-j> <c-w>j
map <c-k> <c-w>k
map <c-l> <c-w>l
map <c-h> <c-w>h

syntax on
filetype on
filetype plugin indent on

au FileType python set omnifunc=pythoncomplete#Complete
let g:SuperTabDefaultCompletionType = "context"

set completeopt=menuone,longest,preview

map <leader>n :NERDTreeToggle<CR>

map <leader>j :RopeGotoDefinition<CR>
map <leader>r :RopeRename<CR>

map <leader>o :TagbarToggle<CR>

nmap <leader>a <Esc>:Ack!

autocmd BufEnter *.py set ai sw=4 ts=4 sta et fo=croql

colorscheme desert

map J 15j
map K 15k

set noswapfile
set nobackup
set nowritebackup

0 个答案:

没有答案
相关问题