Speed up VIM cursor moving through j/k [closed] - vim

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
On my friend new Mac, he scrolls from line #1 to line #100 using k in around 4 seconds.
On my Mac, it takes 10 seconds. Neither of us know what causes his MacVim scrolls that fast.
Any way that I can improve the speed of scrolling on my MacVim? I already enabled ttyfast and lazyredraw

The problem might be the difference in your keyboard settings instead of Vim. Try changing the Key Repeat setting in OS X' keyboard settings and see what happens. On my MacBook this setting affects the cursor movement speed when holding h, j, k or l.
As mentioned in comments some software such as KeyRemap4Macbook can override the system settings.
Also consider using commands ^U, ^D and G instead of hjkl when navigating around longer files.

Related

Linux terminal has odd gap between words and cursor [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 1 year ago.
Improve this question
I'm trying to work in my terminal (I'm using the standard what I believe is a debian terminal on a chromebook) and for a while now I have had a really annoying gap between the words im typing and the actual typing cursor, the space also seems to gradually increase as I type more. I've decided to just deal with it for a while now after multiple google searches led me only to dead ends and I can no longer recall what actually caused this problem in the first place, but it's starting to frustrate me.
If anyone else gets this issue a simple change in font gets rid of the extra space.

How to delete columns in vi file? [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 6 years ago.
The community reviewed whether to reopen this question 1 year ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I have a vi file containing hundreds of lines with the following format
029.inp.log: SCF Done: E(RHF) = -844.790844670 A.U. after 26 cycles
I want to delete all of the columns (separated by spaces/tabs. got messed up when I pasted it here) other than the first (029.inp.log:) and the fifth (-844.790844670). Can anyone help me?
Press ctrl+v for block selection. use h, j, k, l keys to navigate and press key d to delete the selected block. The graphical editor like kate also having capability of the block selection.
If you are not confined to vi, shell command is a good choice for this task.
cat your_filename | cut -f 1,5 > result_filename
About rectangle selection in vim, you must guarantee that the field in all lines with the same width.
Perhaps vim command
:%!cut -f1,5 is OK too, but I can not give it a try now.

Linux terminal: Keyboard shortcut for moving across tabs [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
Is there any way to move across the different tabs in linux(CentOS) terminal like Ctrl + Tab for moving across different tabs in web browsers.
I have tried Alt + 1 , Alt +2 etc... for moving along the ordered tabs. But it will not work more than nine tabs.
Is there any other keyboard shortcut to move across the tabs ?
If you're using Mac, you can do Cmd + left/right arrow
If you're using Linux, you can do Ctrl + page up/page down or left/right arrow
Please let me know if you have any questions!

Moving to previous region in *nix Screen [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
I have been a fan of Screen for quite some time now, and I often like to have three separate "regions" (what is created with "Ctrl-a + S" or "Ctrl-a + |"). Now when I am in a region and I want to go back one, I have been performing "Ctrl-a + Tab" twice to simply move back a region. After extensive searching online and analyzing a cheat sheet here, I have yet to find the opposite to the "Ctrl-a-Tab" command. Can someone throw me a bone?
There is no keybinding for this behavior available by default, but you can create one by adding the following line to your .screenrc:
bind Q focus up
where Q is a character of your choice; pressing CTRL-A Q will then move back one region.

Setting clipboard options from the vim console [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
I'm trying to use vim on a remote Ubuntu server and I'm noticing that the start up for vim is too slow unless I use the -X flag or have set clipboard=exclude:.* in my .vimrc.
When I use either options, vim starts up fast but the problem is I can't copy from vim to the system clipboard. I've tried numerous times to do :set clipboard=unnamed and the like from the console but it won't register anything because it seems to only connect to the x server if that line is in .vimrc.
How can I start vim with the -X option but start the x server afterwards (only if I need to copy stuff)? Or how can I change clipboard settings from within the console?
If you have to start Vim with -X, I don't think there's a way to later enable clipboard support. You either have to find and fix the root cause for the slowness of connecting to X, or work around this with external tools, e.g.
:3,5w !xsel --clipboard
or
:3,5w !xclip -in -selection clipboard

Resources