-
Getting Fast File Finder Functionality Out of Vim
Problem: All of these other editors have handy functionality to quickly find a file Solution: ctrlp.vim is a plugin that allows you to do that. The plugin’s page has full instructions, but the most important detail after work done in yesterday’s post to declutter my vim windows: After pressing Ctrl-P, use <c-t> or <c-v>, <c-x>…
-
Avoiding Scattered Vim Windows in MacVim
Problem: I open too many windows in vim, which get buried in the clutter on my Mac OS X desktop. Solution: Open files in MacVim in an existing window using a tab mvim –remote-tab new_file_to_open.rb Open files in MacVim in an existing window using a split mvim –remote-send “:split `pwd`/new_file_to_open.rb<CR>” I packaged this in a zsh…
-
Java code to test if a string is a valid java identifier.
public class IdentifierTest { /** * @param args the command line arguments */ public static void main(String[] args) { for(String arg : args) { boolean start = true; boolean validIdentifier = true; arg.toCharArray() // commenter pointed out my error //for(byte b : arg.getBytes()) { for(char b : arg.toCharArray()) { if(start) { validIdentifier = validIdentifier &&…