This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Called with a command and a redirection target | |
| " (see `:help redir` for info on redirection targets) | |
| " Note that since this is executed in function context, | |
| " in order to target a global variable for redirection you must prefix it with `g:`. | |
| " EG call Redir('ls', '=>g:buffer_list') | |
| funct! Redir(command, to) | |
| exec 'redir '.a:to | |
| exec a:command | |
| redir END | |
| endfunct |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; | |
| ;; NS CHEATSHEET | |
| ;; | |
| ;; * :require makes functions available with a namespace prefix | |
| ;; and optionally can refer functions to the current ns. | |
| ;; | |
| ;; * :import refers Java classes to the current namespace. | |
| ;; | |
| ;; * :refer-clojure affects availability of built-in (clojure.core) | |
| ;; functions. |
NewerOlder