0
votes
0answers
28 views

How can you view source and keep Vim commands enabled in Vimium?

When I view source using Vimium, it disables the Vim commands. Ideally would like to keep the commands active so that I can search the source code using regex and avoid having to switch back to the ...
0
votes
1answer
62 views

Binding caps lock key to another unique key

I've been mapping my caps lock key on windows machines to various keys (I have tried both Backspace, which I have never gotten used to due to deeply ingrained habit, and Esc, which will take time to ...
0
votes
2answers
46 views

In Vim what command will put the cursor at the last character in a file, not the last line?

I realize that G will move the cursor to the last line in file, but is there a command that will move to the last character? I know I can type G$ to do this, but I thought there might be a single ...
1
vote
1answer
348 views

How to bind up arrow in ~/.inputrc (readline) for vim insert mode?

When in Readline apps with vim mode enabled in ~/.inputrc (set editing-mode vi) is there a way to bind the <Up> arrow key in vi-insert mode? To display previous history item, for example. It ...
1
vote
0answers
259 views

What are the missing features in Sublime Text 2 that are available in vim? [closed]

I'm a Sublime Text 2 user who tried switching to vim because everyone swears by it. In the first few hours I realized I need to install a lot of plugins what essentially end up emulating GUI in the ...
2
votes
1answer
391 views

Vim style cursor movement for Notepad++

I was just wondering if there was a way to get "vim" style cursor movement (i.e. 'hkjl' movement). After spending much time with vim, I have gotten used to not having to lift my hands off the keyboard ...
2
votes
2answers
368 views

Remap CapsLock(tap) to ESC and CapsLock(hold) to CTRL in OS X Lion

For vim purposes, I'd like to remap CapsLock to CTRL when used in combination with other keys and ESC when used in isolation. None of the existing solutions give both functionality - only one or the ...
1
vote
1answer
169 views

How can you switch the j and k keys in vim?

Is there any way to map the k key to 'down' and the j key to 'up'? This seems much more intuitive to me, since the right arrow will also move the cursor down, if it's at the end of the line. Why was ...
1
vote
1answer
711 views

Can I use the `<cmd>` key in terminal Vim at all?

Following on from my other recent question: How do I map <cmd>-<shift>-f to run Ack plugin in Vim? Is is possible to use the <cmd> key in Vim at all? If Vim doesn't recognise the ...
4
votes
1answer
499 views

How do I map <cmd>-<shift>-f to run Ack plugin in Vim?

I'm new to vim and I'm trying to map a key combo for running the Ack plugin found here: https://github.com/mileszs/ack.vim I want to map cmd-shift-f to run the Ack command :Ack. I've added the ...
3
votes
1answer
602 views

mac iTerm2 unbind command + / Find Cursor shortkey [duplicate]

Possible Duplicate: Is it possible to remove a built-in shortcut from an application in Mac OS X? I'm looking for some way to unbind command + / key by default binded to the View -> Find ...
4
votes
1answer
529 views

Looking for non-conflicting cross-platform keybinding consistency

I use Mac OS X and Arch Linux and occasionally log into FreeBSD and Debian servers by ssh. My favoured tools are zsh, ssh, tmux, git, vim and irssi. I use iTerm2 on Mac OS X and unicode-rxvt on Arch ...
1
vote
2answers
521 views

Shortcut for redo in vim

In vim, u = undo r = replace Is there one key shortcut for redo ? ctrl + r is a two key stroke (in my thinking), and I often hit the wrong combination (I just recently switch to Mac) Or is it ...
2
votes
2answers
395 views

Use of hash (#) on OS X with UK MacBook Pro

I have MacVim on a UK MacBook Pro. I can use the hash on TextMate by typing alt 3 but in vim this does not work. Do you know how I can type a hash using VIM on a UK MacBook Pro? The problem is ...
1
vote
2answers
444 views

Ctrl+W s not splitting windows in Vim

I am trying to use Ctrl+w s to split a window in Vim. However it is not working in my case. I opened a file using vim filename. Then I pressed Ctrl+w s. But as soon as I press just Ctrl+w it clears ...
1
vote
1answer
90 views

Vim: Make f (t,F,T) continue on line breaks

I just found out about f and its siblings (t,F,T) and naturally I am intrigued (they seem slightly more efficient than using / - especially with commands like d). But they do not follow line breaks. ...
0
votes
1answer
273 views

Map escape+s to save file in vim

I want a shortcut to save the current file in Vim. I want to map escape+s to :w. I tried :map <esc-s> :w but it doesnt work.
0
votes
2answers
297 views

MacVim-like keyboard shortcuts in gVim

MacVim has some nifty features like Cmd + S to save Cmd + Z to undo, and so on, is there a port like this for gVim.
2
votes
1answer
183 views

How do I get Unifying Keyboard to swap caps lock and control key on Mac OS-X?

I recently bought the Logitech K320 keyboard. However, when I tried to swap my caps lock key and control key via system preferences, it wouldn't take. Has anyone got this to work?
7
votes
5answers
577 views

Using Vim key bindings in Onenote

I found ViEmu, which allows you to use Vim key bindings in Visual Studio and certain Office applications. Does anyone know of similar software for using Vim key bindings in Microsoft Onenote? Free or ...
2
votes
1answer
408 views

How to toggle showing line numbers in vim using a single key press?

I have the following entries which allow me to turn the line numbers on/off with simple key presses nmap <F11> :se nonu<CR> nmap <F12> :se nu<CR> Is it possible to instead ...
2
votes
2answers
525 views

VIM: How do you get the last ex command you used?

I find that sometimes I write a really long ex mode command that do lots of stuff. They are sort of "mini-scripts" that I write in the text editor then I start ex mode and copy them into the ex line ...
2
votes
4answers
481 views

Vim equivalent to Emacs C-i?

Does Vim have a command equivalent to Emacs' Ctrl-I? Emacs has an extremely useful shortcut "C-I" which fixes indentation of the current line (or selected lines.) For example, suppose you write this ...
2
votes
3answers
735 views

In linux, how do I map “caps lock” to “escape” while in Vim, but *not* in other applications?

Inspired by this question. I would like to remap Caps Lock to escape, but only when I am in vim. I would like to keep Caps Lock untouched while not in vim.
4
votes
1answer
316 views

How do I increment strings in Vim?

I can increment integers in Vim using <Ctrl>-a. The docs seem to say that if I set nrformats to "octal,hex,alpha" (which I am trying to do with :set nrformats="octal,hex,alpha") then ...
1
vote
1answer
1k views

How to change key mappings in Cygwin's Vim

I'm using Vim under Debian, Win Vista and WinXP (the latter two with Cygwin). To handle tabs more easily, I mapped <C-Left> and <C-Right> to :tab(prev|next). This mapping works like a ...
5
votes
5answers
706 views

How do I delete the next line in vim?

In emacs, whenever I want to delete a few lines of text, I just use C-k until all the text is gone. However, in vim it seems a bit more complex. I know I can do d$ to delete until the end of the ...
7
votes
3answers
1k views

Vim visual mode, stay selected

I love vim's visual mode. However when I select some text then do something to it the text is then unselected. For example lets say that I select a block of code and indent it the code is then ...
17
votes
10answers
1k views

Moving (efficiently) vertically in Vim

When I want to reach to a certain part of a word in Vim (horizontally) I simply press w, b, f or t (something). Is there a good way of doing this vertically? For instance, I want to get to a certain ...
1
vote
4answers
510 views

Gvim shortcut for { }

What is shortcut the moved between { and } in gvim editor ? how to achieve this ?
7
votes
7answers
6k views

Vim: execute the script I'm working on in a split screen

I'm working on a small python script, which needs frequent execution in order to debug and further develop. Can I split the vim screen and execute my script on one part with a keystroke?