Coder Social home page Coder Social logo

Fast close about ack.vim HOT 7 CLOSED

mileszs avatar mileszs commented on July 17, 2024
Fast close

from ack.vim.

Comments (7)

mileszs avatar mileszs commented on July 17, 2024

ack.vim uses Vim's quickfix window (http://vimdoc.sourceforge.net/htmldoc/quickfix.html). You could map a key to close the quickfix window via the command :ccl . For instance:

map :-) :ccl<ENTER>

I do not plan to build such a command into ack.vim, as I'd rather not usurp default quickfix window behavior for users who may not want such a thing, and I don't want to clobber a key that might be assigned to something that someone already uses.

Does that make sense?

from ack.vim.

bitboxer avatar bitboxer commented on July 17, 2024

It makes sense not to map a key to that, but in Ack.vim I can press escape and in NERDTree I can press q to close the window. That's not a complete binding, that key is only available when navigating in that window.

from ack.vim.

mileszs avatar mileszs commented on July 17, 2024

Interesting. Perhaps I'll look into it at some point. I'm no vim-script expert, unfortunately. You're welcome to have at it yourself, as well. ;-)

from ack.vim.

bitboxer avatar bitboxer commented on July 17, 2024

I updated the ack.vim and sent you a pull request. Hope you like it. Pressing q in the Ack buffer will close the window

from ack.vim.

mileszs avatar mileszs commented on July 17, 2024

Damn! I go to lunch, and the feature is finished before I get back! It looks like it was pretty simple, too. (Not to diminish your efforts, which I greatly appreciate.) Thanks!

from ack.vim.

bitboxer avatar bitboxer commented on July 17, 2024

Yeah, one of the good things that come out of timezones :) . I will cook my dinner now.

With that method you can also add #3

from ack.vim.

hafeyang avatar hafeyang commented on July 17, 2024
" Ecs to close quickfix window
nnoremap <silent> <ESC> :ccl<CR>

from ack.vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.