Customising word separators in vi
Is there a way to add underscore _ as well? :set iskeyword-=_ What is, and is not a member character to keywords depends on the language. For help on iskeyword use :help iskeyword.
Is there a way to add underscore _ as well? :set iskeyword-=_ What is, and is not a member character to keywords depends on the language. For help on iskeyword use :help iskeyword.
Calling up $EDITOR is easy. I’ve written this kind of code to call up editor: import sys, tempfile, os from subprocess import call EDITOR = os.environ.get(‘EDITOR’, ‘vim’) # that easy! initial_message=”” # if you want to set up the file somehow with tempfile.NamedTemporaryFile(suffix=”.tmp”) as tf: tf.write(initial_message) tf.flush() call([EDITOR, tf.name]) # do the parsing with `tf` … Read more
Considering the current implementation of a Scrollbar, this is not possible. (See org.eclipse.swt.widgets.ScrollBar.java) At any given moment, a given scroll bar will have a single ‘selection’ that is considered to be its value, which is constrained to be within the range of values the scroll bar represents (that is, between its minimum and maximum values). … Read more
In the end, after looking around a bit more for a ready-made editor, I settled on the OpenLibrary WMD port, located at http://github.com/openlibrary/wmd. The reasons I chose this editor Meets most of my requirements. Looks like Stack Overflow’s editor. There are a few behavioral differences (see below). Is built on top of jQuery (and doesn’t … Read more
I can’t believe nobody has mentioned this, but reading the info pages bundled with Emacs is a great way to learn about obscure features. Whenever you need a break from coding, hit M-x info and pick a random page to read. Your emacs ability will improve incredibly quickly. It is also important to realize how … Read more
Disabling/Uninstalling the ideaVim plugin seemed to fix the problem for me. The plugin description hints that you can configure it via a configuration script in ~/.ideavimrc, which there may also be options to get “normal” behavior with the plugin installed but I haven’t looked into that though because the plugin doesn’t seems all that useful … Read more
There are two great vim plugins for this. ctrlp: Written in pure VimL Works pretty much everywhere Supports custom finders for improved performance Most popular fuzzy search plugin for Vim Command-T: Written in C, VimL and Ruby Fast out of the box Requires +ruby support in Vim Recommends Vim version >= 7.3 EDIT: I use … Read more
You can use \< to match the beginning of a word and \> to match the end: %s/\<word\>/newword/g
Try adding the GIT_EDITOR environment variable before your command, like so: GIT_EDITOR=<editor of choice> git rebase <…> For example, to use nano I would type: GIT_EDITOR=nano git rebase -i abcdef1234
I don’t have Eclipse installed to check, but from some searching it looks like there are two things to do. To change the default format for new files: Window -> Preferences -> General -> Workspace -> New text file line delimiter To convert the file that’s open: File -> Convert Line Delimiters To -> Unix