1,703 reputation
112
bio website ingo-karkat.de
location Germany
age 38
visits member for 1 year, 11 months
seen Apr 17 at 7:40

Greetings! I'm a professional software developer and geek born in the home computer age, living in Germany, who has a lovely daughter with my Japanese wife.


Mar
28
comment Replace string with another string in vi editor
That's very basic vi / Vim functionality, covered by most tutorials on the web. Also, learn how to look up commands and navigate the built-in :help; it is comprehensive and offers many tips. You won't learn Vim as fast as other editors, but if you commit to continuous learning, it'll prove a very powerful and efficient editor.
Mar
7
comment vim how to keep cursor position while copying text
Duplicate of stackoverflow.com/questions/22226025/…; please don't post the same question to multiple sites in parallel!
Feb
11
comment What does the search flag 'z' do in VIM?
The z#.2 doesn't work because it addresses 1/2 above / below, and that seems to be rounded down to 1.
Dec
14
comment VIM: folding bullet points
That sounds like an issue that you should submit to the plugin's author, not here.
Dec
4
comment Vim paste string with non-ASCII characters
Duplicate of superuser.com/questions/683727/…; please don't post in parallel to multiple Stack Exchange sites!
Nov
28
comment How can I go forward in a file? What is the oposite of ctrl+O
:help CTRL-O; you just need to know the command's mode and the spelling of keys!
Nov
8
comment How can I enable mouse in Vim?
Can you reposition the cursor? Select / copy comes from the terminal, that has nothing to do with Vim.
Nov
8
comment How can I enable mouse in Vim?
At least mention the terminal you're using, and whether other mouse-based applications work in there.
Nov
8
comment Adjust pane size in vim
With vertical splits (-O), that would be :vertical resize 20, as I've written. Mouse with :set mouse=a, but it depends on the terminal.
Nov
8
comment Adjust pane size in vim
What about plain :resize 20? And the normal mode commands? Unless you have a tiny build, these all should work.
Nov
8
comment Adjust pane size in vim
What's your Vim version? :version??
Oct
30
comment Changing gVim behaviour on Red Hat
The order is different: .gvimrc comes last, but :set nocp should be set first, because it influences many other things. Your rename was the exact right step!
Oct
8
comment Line numbering in Vim
Work on your search skills. This functionality exists since the early versions of vi, i.e. for decades. There surely is some mentioning on teh Internets.
Oct
3
comment How to prevent users from renaming files while providing write permissions on Linux
Duplicate of superuser.com/questions/653739/…; please don't post on multiple sites simultaneously!
Sep
21
comment VIM substitute occurrences of pattern after a particular word in a line
Read :help /\@<= (I can't explain it better), but don't feel bad when you don't get it first. It's called positive lookbehind, and is quite advanced.
Sep
16
comment Sudoedit Vim force write (update) without quit
Great answer, especially the comprehensive alternatives!
Sep
12
comment vim search numbers containing specific number of digits
For someone struggling with the basic regexp syntax, look-behind/ahead is pretty advanced. I probably cannot describe it better than the built-in :help /\@<! and :help /\@!. Don't worry if you don't immediately understand everything; as I said, this is pretty advanced.
Aug
7
comment vim regex to search for lines containing string1 AND string2
I think it just uses man 7 regex.
Aug
5
comment How can I create my own spelling file for vim?
You're right; it's best to avoid such characters; I've edited my answer.
Jun
28
comment How can I see moved lines in a file comparison with vimdiff / diff?
Alternatively, you could patch the Vim source code itself; getting at the diff information would be easier than in Vimscript. Such a patch (maybe using different colors rather than signs) could even be accepted into mainline Vim!