is there any image processor with vim like keybinding? [closed] - vim

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
years ago, i see a report that there is an image processor just using vim like keybinding
i am a vim user and i like this style
so i want to use it
if there is,tell me the name or give me a link
if there is not,i want to make it myself,but could someone show me a simple demo by using vim keybinding

On Windows, you can use AutoHotkey to remap the application's native key events to your own Vim-style bindings. For example, when I have Excel open, I can navigate around cells using my standard directional letter keys, by remapping them to behave like arrow keys; then when I need to edit a cell, I press i, as with Vim (i is remapped to F2).
You can remap complex key combinations to simpler ones for a Vim-like feel. For example, if your image processor of choice deletes something with Ctrl+d and Undo is Ctrl+z, you can remap this so that delete is just x or d or both, and remap undo to just u.

Not that I know of. If you want a demo of keybinding that has been implemented in a non-vim environment, take a look at vimperator plugin for Firefox. It brings vim-like keybinding to Firefox.

On what platform? For X there's feh or xzgv, for the Linux console there's fbi.
This may help

vimperator is great
when in any text field, or the url bar, type C-t and your in "TEXTAREA" mode! which is like command mode in vi inside the textfield or textarea. awesome!
only thing to get used to is using C-t instead of escape (or C-[)
expect to hit the wrong one a few times

Related

Text selection not works on Ubuntu terminal with SHIFT+ARROW (Left or right) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
Recently I installed Ubuntu and I've some troubles with typing text on terminal, the problems not occurs on the text editors. I can't select the text to right or left using shift+arrow. When I try it, like shift+left, D letter is typed on the line, and C is typed using shortcut with arrow right. Resuming, I've two issues:
Select text with shift+arrow not working;
Select all text with shift+home or shift+end
I installed KDE on Ubuntu. Please, anyone can help me?
The standard Terminal does not use the same shortcuts (or even the same cursor behavior) as you might expect in a browser or text editor window. The shift key by itself does not select text that way. shift+home will scroll to the top, shift+end to the bottom, and using it with pg up/pg down will scroll up/down one screen. The arrow keys are mapped to A/B/C/D.
As you can see on this list, most of the commands are for moving around and managing processes. I usually just select text with the mouse, then copy with ctrl+shift+c and paste with ctrl+shift+v. As discussed on Ask Ubuntu, there appears to be no easy way to select arbitrary text without the mouse.
Alternative terminal programs may offer more options.
Update While this is not a standard shortcut, you can go into Terminal's Edit > Preferences > Shortcuts, find the Edit section, click the Select All row in the Shortcut Key column, then enter a new shortcut like ctrl+shift+a. This new shortcut will then let you then copy all of the terminal text.

How to use vim help.txt in linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
When I was trying to use vim help.txt file I found I was unable to open the .txt files included in it. Its instruction at the beginning of the file says:
Jump to a subject: Position the cursor on a tag (e.g. |bars|) and hit CTRL-].
But it doesn't work and it shrinks the size of the words on my terminal. I want to know how to open the related files and also how to get my terminal window back to normal.
Thanks in advance!
Thank you all for your kind help! I was using Gnome-terminal. Actually Ctrl+Shift+] is needed. Just as copy and paste are completed by Ctrl+Shift+c and Ctrl+Shift+v in the terminal.
As for the size of the words, it can be adjusted by view tab on top selecting Zoom in or Zoom out. The reason I was stuck was that, I can zoom in by Ctrl+- but I cannot zoom out by Ctrl++, and similarly, it should be Ctrl+Shift++.
(By + I mean pressing together. '+' means the actual key.)
Also worth mentioning, as #Kent pointed out, the settings can be adjusted through edit tab.
The problem is that in some keyboard layouts the ] key is the same as the + or the -, but with different modifiers. So when you type Ctrl-] your terminal emulator program thinks you are typing Ctrl-+, then uses it on its own, to change the size of the font, or something like that.
The solution is to map another key to this function. I'm using F12 because it is handy and seldom used for anything else. Just add this to your .vimrc:
nmap <F12> :exe "tjump" expand("<cword>")<CR>
imap <F12> <C-O><F12>
Well, technically, the Ctrl-] is equivalent to :tag, not :tjump, but I find that more convenient when using tags.

How does one enable system paste in vim using zsh shell in Ubuntu? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I've recently changed shell from bash to zsh and I'm having a problem in vim, in that my system paste no longer works. Before changing shell, I was able to paste from my system clipboard using =+p but now for some reason, unknown to me, the - and + keys are now bound to go up a line and down a line respectively, stopping paste from working.
I'm also using oh-my-zsh plugin manager for zsh and my operating system is Ubuntu Linux.
I can post my .zshrc and .vimrc on request, although there are no recent changes to my .vimrc.
I'm not sure what is causing the + and - key mappings and I would like to know how to re-enable system paste functionality?
Any help would be greatly appreciated.
A "safer" way to paste from the system clipboard is to use the OS-wide paste-combo shiftinsert. It's equivalent for copying is ctrlinsert. It works on pretty much every platform and doesn't care how you've set up your clipboard. I'm not sure if it plays nicely with Gvim though, atleast it doesn't on Windows.
Adding to that, you may want to toggle paste mode when doing a paste so it doesn't try to interpret and align whatever you're pasting. Toggle it insert mode by pressing F3:
set pastetoggle=<F3>
This does however not answer your question as to why the behaviour has changed, but it might be nice to know anyway.

How do you scroll up/down on the console of a Linux VM [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I recognize that Up/Down will give you the command history. But, how do you look at past output by scrolling up and down?
I have used Shift+Page Up/Page Down, Alt+Shift+Up/Down and Page Up/Page Down but none of these seem to work.
It is a Redhat Linux box.
SHIFT+Page Up and SHIFT+Page Down. If it doesn't work try this and then it should:
Go the terminal program, and make sure
Edit/Profile Preferences/Scrolling/Scrollback/Unlimited
is checked.
The exact location of this option might be somewhere different though, I see that you are using Redhat.
Shift+Fn+ UP or DOWN on a Macbook will allow you to scroll.
Alternative: you can use the less command.
Type in console:
"your_command" | less
This will allow you to scroll with the up and down arrow keys.
Basically your output has been piped with the less command.
ALTERNATIVE FOR LINE-BY-LINE SCROLLING
Ctrl + Shift + Up Arrow or Down Arrow
Unlike Shift + Page Up or Page Down, which scrolls the entire page, this will help with a smoother line-by-line scrolling, which is exactly what I was looking for.
SHIFT + Page Up and SHIFT + Page Down are the correct keys to operate on the linux (virtual) console, but vmware console doesn't have those terminal settings. The virtual console has fixed scroll back size, it sounds like it's limited to video memory size according to this Linux virtual console Scrolling behavior documentation.
Another alternative, that might be already installed on your system is to use GNU screen :
# This starts screen which adds basic window management in terminals
screen
# This starts the copy mode you can use to scroll
<CTRL-A> [
# Now use the arrows to scroll
# To exit copy mode, do
<ESC>
See man screen for much more useful options (multiple windows, ...)...
Shift Pageup/End works for me.
It seems as though this is not easily possible: The Arch Linux Wiki lists no way to do this on the console (while easily possible on the virtual terminal).
You could use tmux scrolling:
Ctrl-b then [ then you can use your normal navigation keys to scroll around (eg. Up Arrow or PgDn). Press q to quit scroll mode.
Alternatively you can press Ctrl-b PgUp to go directly into copy mode and scroll one page up (which is what it sounds like you will want most of the time)
VM Ubuntu on a Mac...fn + shift + up/down arrows
I ran into the same problem with VMWare workstation with Ubuntu guest, turns out VmWare doesn't support scrolling back up from the server view. What I did was to install x GUI, then run xterm from there. For some reason it runs the same, but lets you scroll the normal ways. Hope this helps future readers in VmWare virtual boxes.
In some VPS hostings (like linode) you have to click Ctrl+A and then ESC. Exit with double ESC too.
Fn + Up/Down can scroll Terminal in Mac OS X 10.11
Press the Shift key when scrolling the mouse up/down works for me when loggin in Ubuntu using Terminal ssh in Yosemite.
PERSISTENT, longterm solution
Add this line to your ~/.screenrc
termcapinfo xterm* ti#:te#
Now you can create a screen, and scroll it up/down with your mouse;
Like you normally do.
For some commands, such as mtr + (plus) and - (minus) work to scroll up and down.

Vim movement on other programs [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I'm learning Vim and with it came the urge to use 'hjkl' and friends on every other program, including mouse operated programs like browsers.
How can I use these keyboard shortcuts, or something similar?
I'm using Linux.
Off the top of my head...
Vimperator for Firefox.
Awesome, WMII, Xmonad or ion3 window manager.
Evince supports hjkl.
vifm filemanager
there are vi keybindings for readline, which enables them for many terminal apps
xzgv image viewer
Gmail and several of the other Google apps natively support Vi-like motions.
Also, you might want to try Vimperator and, most definitely, Nethack!
Give scrotwm a try. It's a tiling window manager with vim-like bindings by default, written by coders who use vim!
And vimperator for Firefox makes my life much, much easier.
For Bourne-like shells (ksh, bash, ...) try set -o vi to make your command line use vi keys.
File manager with vi movement key-bindings and much more: ranger.
If you use Eclipse, then viPlugin is the best vi-like editor for it.
I always stick the following two lines in my /etc/inputrc (or ~/.inputrc if I don't have root access):
set editing-mode vi
set keymap vi
Zathura is a nice and small pdf reader and with built-in vim-like commands.
It feels like you opened your pdf document in vim. (e.g.: the ':' button brings up the same prompt.)
Others:
ViEmu: plugin for Visual Studio, Word, Outlook, and SQL Server
Komodo Edit: developer's editor
AbiWord: word processor
Editra: developer's editor
VimPlugin: plug Vim into Eclipse. I couldn't get it working under Windows or Mac OS X.
Eclim: another Vim plugin for Eclipse.
Viper: Old vi emulator for Emacs
Evil: Recent Vim emulator for Emacs
IdeaVim: Vim emulator for the IntelliJ family of editors, RubyMine, PyCharm, etc.
Okular, the PDF reader of KDE 4 supports HJKL.
Viper works, but if you're used to Vim, it is lacking a lot of keybindings that will end up messing you up. Theres also jvi for Netbeans, which I find more complete than the Eclipse plugins. Kate also recently added Vi-emulation mode
I also consider xmonad, to be superior to Awesome, Ion etc.
Vimium for Google Chrome.
Check out:
dwb — a web browser
ranger — a terminal-based file manager
Zathura — a PDF viewer
Vimium — a vim keybindings extension for Chrome(ium)
Evil — the (in)famous Emacs plugin that turns Emacs into Vim, if you ever feel the need to do that
i3, xmonad, dwm — tiling window managers that are controlled from the keyboard
Lightweight (30k zpi) FimFx for Firefox - does less than Vimperator, but for a good reason.
For xpdf, add these to your ~/.xpdfrc:
bind h any scrollLeft(35)
bind l any scrollRight(35)
bind k any scrollUpPrevPage(35)
bind j any scrollDownNextPage(35)
bind ctrl-f any scrollDownNextPage(320)
bind ctrl-b any scrollUpPrevPage(320)
bind ctrl-d any scrollDownNextPage(160)
bind ctrl-u any scrollUpPrevPage(160)
bind g any gotoPage(1)
bind G any gotoLastPage
bind / any find
You can use xmodmap to make win+hjkl to work as arrow keys.
Make a file named Xmodmap. Add the following content:
keycode 133 = Mode_switch
keysym j = j J Down
keysym l = l L Right
keysym h = h H Left
keysym k = k K Up
Load it using xmodmap Xmodmap
Note: Run xev to find out keycode for win key. 133 is just an example.
Qutebrowser hasn't been mentioned, which is much better than the plugins.
I used Ion as a window manager on Linux for a while. It uses keybindings similar to Vim to move between windows, if I recall correctly. It won't make your apps support hjkl movement, but the window manager is a place to start.
Apart from the already mentioned, you could also bind those keys to left... nd so on (with ahk). I've also noticed that several web apps use that movement keys (gmail, greader, ....)
Try keynav, for controlling the mouse pointer using your keyboard.
http://www.semicomplete.com/projects/keynav/
VisVim for Visual Studio
CubicleVim for outlook
If you use mpd for listening to music, then I strongly recommend PIM
Google Reader respects jk keybindings. I'm sure there are more that they support - feel free to edit my answer.
Mutt - mail client - can be configured to move hjkl, i configure some more vim keys. take some time to configure as it's a bit different from other mail clients. Mutt is not Muttator, is a terminal GUI application.
cVim for chrome is awesome. I am currently using it.
https://github.com/1995eaton/chromium-vim
Shortcut Manager extension for chrome.
You can use something like this to configure basic vim movement keys:
// ==UserScript==
// #ShortcutManager
// #name Scroll up by 25 pixels
// #key k
// #include *
// #exclude https://*mail.google.com/*
// #execute ScrollUp(["25"])
// ==/UserScript==
Other useful snippets:
// #key g
// #execute ScrollToTop([])
// #key Shift+g
// #execute ScrollToBottom([])
How to get Vim keybindings in Adobe Reader on SuperUser
(my answer to that question is an AutoHotKey script that will even get you proper search functionality with /, n, and N, but admittedly I haven't verified a port to Linux or Mac yet)

Resources