reformat in vim for a nice column layout

If you’re on some kind of UNIX (Linux, etc), you can cheat and filter it through the column(1) command. :%!column -t The above will parse on delimiters inside string literals which is wrong, so you will likely need pre-processing steps and specifying the delimiter for this file for example: %!sed ‘s/”,”/\&/’ | column -t -s … Read more

Tips for using Vim as a Java IDE? [closed]

Some tips: Make sure you use vim (vi improved). Linux and some versions of UNIX symlink vi to vim. You can get code completion with eclim Or you can get vi functionality within Eclipse with viPlugin Syntax highlighting is great with vim Vim has good support for writing little macros like running ant/maven builds Have … Read more

Paste in insert mode?

While in insert mode hit CTRL-R {register} Examples: CTRL-R * will insert in the contents of the clipboard CTRL-R ” (the unnamed register) inserts the last delete or yank. To find this in vim’s help type :h i_ctrl-r

What’s the relative order with which Windows search for executable files in PATH?

See the command search sequence on Microsoft Docs The PATH and PATHEXT environmental variables each provide an element of the search sequence: PATH is the ordered list of directories “where” to look, and PATHEXT is the ordered list of file extensions (“what“) to look for (in case the extension isn’t explicitly provided on the command … Read more

How do I run a C program from VIM?

:!gcc -o somename % && ./somename When using :!, % will be substituted by the name of the currently opened file. When your project becomes larger, you can also write a makefile and compile the current project with :make, if there are any errors, vim will jump to them automatically.

Why does using from __future__ import print_function breaks Python2-style print? [closed]

First of all, from __future__ import print_function needs to be the first line of code in your script (aside from some exceptions mentioned below). Second of all, as other answers have said, you have to use print as a function now. That’s the whole point of from __future__ import print_function; to bring the print function … Read more

tech