Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adam8157 committed Apr 13, 2010
1 parent db2edda commit feee285
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 15 deletions.
16 changes: 6 additions & 10 deletions .lftp/rc
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,18 @@ alias utf8 set ftp:charset UTF-8; set file:charset UTF-8
alias edit "eval -f \"get $0 -o ~/.lftp/edit.tmp.$$ && shell \\\"cp -p ~/.lftp/edit.tmp.$$ ~/.lftp/edit.tmp.$$.orig && $EDITOR ~/.lftp/edit.tmp.$$ && test ~/.lftp/edit.tmp.$$ -nt ~/.lftp/edit.tmp.$$.orig\\\" && put ~/.lftp/edit.tmp.$$ -o $0; shell rm -f ~/.lftp/edit.tmp.$$*\""

## make prompt look better
#set prompt "lftp \S\? \u\@\h:\w> "
## some may prefer colors (contributed by Matthew <[email protected]>)
set prompt "\[\e[0;30m\][\[\e[0;34m\]f\[\e[1m\]t\[\e[37m\]p\[\e[0;30m\]] \[\e[1;32m\]\u\[\e[0;33m\]\@\[\e[1;31m\]\h\[\e[0;30m\]:\[\e[1;34m\]\w\[\e[0;30m\]>\[\e[0m\] "

## if default ftp passive mode does not work, try this:
# set ftp:passive-mode off
## Terminal strings to set titlebars
set cmd:set-term-status on
set cmd:term-status/*screen* "\e_\T\e\\"
set cmd:term-status/*xterm* "\e[11;0]\e]2;\T\007\e[11]"

## Set this to follow http redirections
set xfer:max-redirections 10

## Terminal strings to set titlebars for terminals that don't
## properly specify tsl and fsl capabilities.
## Use cmd:set-term-status to enable this.
set cmd:set-term-status on
set cmd:term-status/*screen* "\e_\T\e\\"
set cmd:term-status/*xterm* "\e[11;0]\e]2;\T\007\e[11]"
## if default ftp passive mode does not work, try this:
# set ftp:passive-mode off

## If you don't like advertising lftp or servers hate it, set this:
# set ftp:anon-pass "mozilla@"
Expand Down
2 changes: 1 addition & 1 deletion .screenrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bindkey -k F2 next
autodetach on

# Make the xterm scroller work in screen
terminfo xterm*|rxvt* ti@:te@
terminfo xterm* ti@:te@

# Refresh the display when exiting programs
altscreen on
21 changes: 17 additions & 4 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,23 @@ let Tlist_Enable_Fold_Column = 0
" Mappings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

" Tab navigation
nnoremap tp :tabprevious<cr>
nnoremap tn :tabnext<cr>
nnoremap to :tabnew<cr>
nnoremap tc :tabclose<cr>
nnoremap gf <C-W>gf
" Move among windows
noremap <C-h> <C-W>h
noremap <C-l> <C-W>l
noremap <C-j> <C-W>j
noremap <C-k> <C-W>k
" Set Up and Down non-linewise
noremap <Up> gk
noremap <Down> gj
" Toggle Tlist
nnoremap <silent> <F2> :Tlist<CR> :TlistUpdate<CR>
Expand All @@ -143,7 +160,3 @@ endfunc
set foldenable
set foldmethod=manual
nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>
" Set Up and Down non-linewise
noremap <Up> gk
noremap <Down> gj

0 comments on commit feee285

Please sign in to comment.