mileszs / ack.vim

Vim plugin for the Perl module / CLI script 'ack'
Other
3.08k stars 396 forks source link

Can't use keyboard shortcuts in quickfix window #36

Closed foxyblocks closed 10 years ago

foxyblocks commented 12 years ago

I'm trying to use the "o" keyboard shortcut to open a file from the quickfix window but I get:

Cannot make changes, 'modifiable' is off

It seems to be trying to do "insert newline below" so it's failing. This is normal VIM behavior isn't it? What am I missing?

bsans commented 12 years ago

In MacVim 7.3, the "o" shortcut does work for me in the quickfix window

lucaspiller commented 12 years ago

I'm also getting this. I've tried removing all plugins except this, and removing everything from my vimrc but with no luck. Any ideas?

$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Nov 18 2011 10:50:19)
MacOS X (unix) version
Included patches: 1-322
Compiled by luca@maiz
Huge version without GUI.  Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent 
-clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments 
+conceal +cryptv -cscope +cursorbind +cursorshape +dialog_con +diff +digraphs 
-dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path 
+find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv 
+insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent 
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape 
+mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse 
+mouse_xterm +multi_byte +multi_lang -mzscheme -netbeans_intg +path_extra -perl
 +persistent_undo +postscript +printer +profile -python -python3 +quickfix 
+reltime +rightleft +ruby +scrollbind +signs +smartindent -sniff +startuptime 
+statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white 
-tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands 
+vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore 
+wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard 
-xterm_save 
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/local/Cellar/vim/7.3.322/share/vim"
Compilation: /usr/bin/llvm-gcc -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X_UNIX -no-cpp-precomp  -O3 -march=core2 -w -pipe -D_FORTIFY_SOURCE=1      
Linking: /usr/bin/llvm-gcc   -L.     -L/usr/local/lib -o vim       -lm  -lncurses -liconv -framework Cocoa        -lruby 
wogong commented 12 years ago

The same error for me.

shaun-floss commented 12 years ago

Any updates on this issue? Running into the same problem myself.

sent-hil commented 11 years ago

Same error, any updates? ping @mileszs

mileszs commented 11 years ago

o is explicitly remapped to carriage return here: https://github.com/mileszs/ack.vim/blob/master/plugin/ack.vim#L71 So it's not exactly normal Vim behavior. I can't reproduce this error at the moment, but I'm awaiting the arrival of a new MBP; I suspect the reason I don't see it is that my version of Vim is behind. Though my MacVim seems on par, I'm on Snow Leopard. Yes, still.

Feel free to dig in yourselves.

sent-hil commented 11 years ago

Turns out the error was Vundle was installing the old plugin, switched it to pull directly from github and it works great now. Thanks @mileszs.

mileszs commented 11 years ago

Sorry about the script on vim.org. I'm going to have to sheepishly explain to Bram that I cannot remember password, and hope he'll take the time to enter a new one for me.

On Tue, Jan 1, 2013 at 4:09 PM, sent hil notifications@github.com wrote:

Turns out the error was Vundle was installing the old plugin, switched it to pull directly from github and it works great now. Thanks @mileszshttps://github.com/mileszs .

— Reply to this email directly or view it on GitHubhttps://github.com/mileszs/ack.vim/issues/36#issuecomment-11793043.

EragonJ commented 11 years ago

@mileszs yes, this happens for users who use Vundle to install ack.vim ( points to vim.org ), that would be friendly if you can add a reminder on README.md ! nice job ;)

shaun-floss commented 11 years ago

Yup, installing the latest version of ack.vim straight from github worked for me. Thanks guys! If you're using Vundle and already were using the github version, you can do: BundleInstall! (notice the bang at the end) and it should update to the most recent version.