This file contains 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
#!/bin/sh | |
shellbrowser='elinks' | |
tmux_current_window=`tmux display-message -p "#W"` | |
tmux_current_pane=`tmux display-message -p "#P"` | |
# Check if in the right tmux window | |
if [ $tmux_current_window != 'news' ];then | |
elinks $1 | |
exit 0 |
This file contains 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
" format SQL using sqlformat.org | |
function! SQLFormat() " {{{ | |
'<,'>python << EOF | |
import vim | |
import urllib2, urllib, json | |
sql = ' '.join(vim.current.range) | |
params = {'sql': sql, | |
'n_indents': 4, | |
'keyword_case': 'upper', | |
'reindent': 1} |
NewerOlder