Vim: How to insert in visual block mode?
How can you insert when you are in visual block mode (by pressing ctrl-V) in Vim? 4 Answers 4
How can you insert when you are in visual block mode (by pressing ctrl-V) in Vim? 4 Answers 4
I am using gVim 7.2 on Windows 7. I can set the gui font as Consolas 10 (font size) from the menu. I am trying to set this in .vimrc file like below: set guifont=Consolas\ 10 But it doesn’t work. Does anyone know how to set this? 9 Answers 9
In my Vimscript program, I need to open an additional Vim buffer that is not immediately associated with a file, but which the user can save to a file of her/his choosing, just like the initial buffer called [No Name]. How can I do this? 3 Answers 3
Say I have a super long line in the VIM editor (say around 300+ characters). How would I break that up into multiple lines so that the word boundaries roughly break at 80 characters? Example: This is a really long line This is a really long line This is a really long line This is … Read more
If you are editing a file in VIM and then you need to open an existing buffer (e.g. from your buffer list: :buffers) how can you open it in a vertical split? I know that you already can open it with a normal split like: :sbuffer N Wehere N is the buffer number you want, … Read more
Does anyone know how to properly save/reuse macros recorded inside of a vim editor? 6 Answers 6
I would like to *.pyc files not to be shown in NERDTree vim plugin. How to achieve that? 2 Answers 2
Often when developing I am confronted with a nested object that I’d like to delete from code in the middle of a line like this: htmlDoc.WriteLine(“<b><h3>” + this.cbAllSyncs.SelectedItem.ToString() + “</h3></b>”); The part that I’d like to delete is: this.cbAllSyncs.SelectedItem.ToString() I know I can count the number of words and periods and enter 7dw to delete … Read more
How can I jump to the next character X in vim? I frequently use, e.g., dt: or ct: to delete/change everything up until a colon (or some other character). Is there any short key combo to simply move my cursor position to that character? 4 Answers 4
I am using Vim for windows installed in Unix mode. Thanks to this site I now use the gf command to go to a file under the cursor. I’m looking for a command to either: return to the previous file (similar to Ctrl+T for ctags), or remap gf to automatically launch the new file in … Read more