0
votes
1answer
31 views

Get hotkey to type a random number as if I typed it on a keyboard on Windows?

In many cases I need to not just generate a list of random integers (which is easy), but to type random integers into various software. For example, to skip a random number of lines (1 to 100) in ...
0
votes
2answers
71 views

VIM Hotkey Creation

I'm pretty new to VIM and linux in general. So doing this on my own is well beyond my skill level now. I'm familiar with vimrc file but that is it... Let's say I have one terminal open idling. ...
0
votes
2answers
55 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 a 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 ...
2
votes
0answers
117 views

Vim noremap still causes old mappings to be active

This is my .vimrc set mouse=a set ttymouse=xterm2 set number set smartindent set tabstop=4 set shiftwidth=4 set expandtab inoremap { {}<Left> inoremap {<CR> {<CR>}<Esc>O ...
1
vote
2answers
1k 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
665 views

Get OS X Terminal.app to accept Ctrl-+ for Vim

I am trying to bind Ctrl-+ and Ctrl-- in Vim to resize the current window. However, Terminal does not seem to pass anything when I press Ctrl-+. Ctrl-- does work. I checked in Vim itself using Ctrl-V ...
3
votes
4answers
350 views

Indenting an X number of lines in vim

I've been coding in Java for a job recently and I've noticed that I'll write some code and then determine that I need to wrap the code in a try/catch block. I've just been moving to the beginning of ...
0
votes
1answer
567 views

unmapping in Vim

I am in the habit of using both querty and dvorak keyboard mappings on my computer, and would like to make a function in vim, that remaps h to d, j to h, k to t, and l to n. I would also like a ...
0
votes
1answer
235 views

Vim Make and Run

What would be the best way to make a hotkey that makes a project and then runs the generated binary?
3
votes
2answers
541 views

Vim: go to beginning or end of the visual area

I want to do some tricky mappings that wraps currently selected visual area with some code. In order to do that I need to make sure that I am at the beginning of the current visual area. Is there any ...
3
votes
3answers
1k views

Vim Hotkeys For Specific File

Is it possible to set hotkey for specific file types in vim. For example, if I am editing a .java file, I'd like vim to run javac .java when I press 5. Is this possible?