I have pavlov issues but no functional ones.  Vim is happy as a clam
once i fixed ctrl-pgup and ctrl-pgdn

My tmux.conf:
setw -g xterm-keys on
bind b last-window
bind  last-window
bind '"' choose-window
bind s split-window

My .vimrc bits:
syntax on
set ruler
set tabstop=8
set autoindent
set showmode
set showmatch
set tags=./tags,tags,/usr/src/sys/arch/amd64/tags
set hlsearch
set incsearch
set mouse=a
imap  
au BufNewFile,BufRead /tmp/mutt*,/tmp/cvs*,*.txt set tw=72 noai noshowmatch
au BufNewFile,BufRead /tmp/mutt*,/tmp/cvs*,*.txt setlocal spell
spelllang=en_us
au BufNewFile,BufRead /tmp/mutt*,/tmp/cvs*,*.txt syntax off

nn <F7> :setlocal spell! spell?<CR>

" Convert to hex and back; does not save changes
"nn <F5> :%!xxd -g 1<CR>
"nn <F6> :%!xxd -g 1 -r<CR>
source /usr/local/share/vim/vim72/ftplugin/man.vim

" ctrl up and ctrl down in tmux
if &term == "screen"
        set t_kN=[6;*~
        set t_kP=[5;*~
endif

For completions sake .Xdefaults:
xterm*termName:         xterm-color
xterm*loginShell:       true
xterm*background:       black
xterm*boldFont:         vtbold
xterm*border:           pink
xterm*cursorColor:      yellow
#xterm*font:             -misc-*-*-*-*-*-13-*-*-*-*-*-*-*
#xterm*font:             -terminus-*-*-*-*-*-13-*-*-*-*-*-*-*
xterm*font:             -*-terminus-*-*-*-*-12-*-*-*-*-*-*-*
xterm*foreground:       white
xterm*internalBorder:   2
xterm*jumpScroll:       on
xterm*mouse:            yellow
xterm*reverse*Wrap:     on
xterm.ReverseWrap:      on
xterm*saveLines:        2000
xterm*scrollBar:        off
xterm*titlebar:         on
xterm*visualBell:       off
xterm.ActiveIcon:       on
xterm.AllowIconInput:   on
xterm.AutoRaise:        on
xterm.Background:       black
xterm.Border:           blue
xterm.BorderWidth:      3
xterm.Cursor:           green
xterm.Foreground:       white
xterm.InternalBorder:   2
xterm.TextUnderIcon:    on


On Sun, Jul 12, 2009 at 11:20:40PM +0200, frantisek holop wrote:
> hi there,
>
> old habits die hard, but i wouldn't mind drowning screen(1)..
>
> so i am biting the bullet and trying to convert my spartan
> .screenrc to .tmux.conf, this mail being the result of that
> process, hopefully seen as constructive criticism...
>
>
> a cosmetic start, i personally think that '.tmuxrc' might be
> a better name as it runs commands as opposed to simple
> configuration..  also, in openbsd i came to associate most .conf
> files with a man page as well...  (i have typed man tmux.conf now
> for the 15th time, sigh)
>
>
> the first feature that i would like to turn off is how tmux
> resizes my putty window to strict 80 columns, probably based on
> COLUMNS.  but COLUMNS is lying, i set my windows size in putty to
> 100x25 and the shell doesn't pick it up at login time...  it's not
> a big deal really because many programs (like mc) do pick up the
> "real" geometry and adapt...
>
>
> for tmux to dethrone screen, basically i need these to work the
> very same way (maaany years of pavlov reflexes in these), taken
> from screen (my prefix is x):
>
> C-x space:    next screen
> C-x backspace:        previous screen
> C-x i:                info (i have status turned off but sometimes need
>               to peek at where i am, screen(1) outputs:
>               (23,14)/(99,26)+1024 +flow app mouse bce G0[B0BB] 2(ksh)
>               perhaps a "window-info" equivalent in tmux?
> C-x ":                windowlist -b (a very brief, barebone list of all
>               the windows with their titles)
> C-x C-x:      last active window
> copy mode
> visual bell with configurable text
>
> so i proceeded to try to convert this into tmux syntax:
> ----------------------------------
> set-option -g prefix C-x
> set-option -g status off
>
> unbind-key C-b
>   bind-key C-x send-prefix
>   bind-key C-x last
>   bind-key ' ' next        # not working, i must hit C-x C-space
> # bind-key     previous      # i have no idea how to bind backspace
>   bind-key   " list-windows  # this is not working, still does split-window
> ----------------------------------
>
> (space looks kind of confusing in C-x ? as well...)
>
> so i am not doing very well at the moment..
>
>
> some other random issues:
>
> - most of the set-option commands do not state what is their
>   default behaviour in the man page.. (like bell-action, etc)
>
> - the error/warning messages in the status line disappear so fast,
>   i have no chance of reading them (status is turned off
>   otherwise)
>
> - socket_path (also in $TMUX) contains double slash
>   (/tmp//tmux-1000/default, debug level 0)
>
> - no matter what i do, i can't make vim colorful..  TERM=screen
>   just like with screen, but screen defines a TERMCAP as well.
>   even if i do export TERM=rxvt, still everything is b&w..
>
> how are the other screen guys doing?  lots of pain? ;]
>
> -f
> --
> does the name "pavlov" ring a bell?

Reply via email to