Hi, I find solution on google, talk with people on
#vim at freenode and don't find solution for this.
I see http://www.vim.org/tips/tip.php?tip_id=1221
(Alternative tab navigation) in vim.org tips to use
tabs correctly.
This works fine in Gvim, but in terminal have
problems, part solved.
<C-S-tab> don't work on terminal, but, If I press C-v
C-S-Tab, the character that it returns work, btw,
<C-tab> don't work.
If I press C-v C-tab, in some terms returns a tab, in
others ^I.
I need to make work <C-tab> in terminal because I use
vim in remote servers. Google don't help me :(.
I put here My map section for tabs:
--------------------------------------------------
" maps for tabbing navigation.
if has("gui_running")
map <C-S-tab> :tabprevious<cr>
map <C-tab> :tabnext<cr>
map <C-S-tab> :tabprevious<cr>
map <C-tab> :tabnext<cr>
imap <C-S-tab> <ESC>:tabprevious<cr>i
imap <C-tab> <ESC>:tabnext<cr>i
nmap <C-t> :tabnew<cr>
imap <C-t> <ESC>:tabnew<cr>
else
map ^[[Z :tabprevious<cr>
map <C-tab> :tabnext<cr>
map ^[[Z :tabprevious<cr>
map <C-tab> :tabnext<cr>
imap ^[[Z <ESC>:tabprevious<cr>i
imap <C-tab> <ESC>:tabnext<cr>i
nmap <C-t> :tabnew<cr>
imap <C-t> <ESC>:tabnew<cr>
endif
--------------------------------------------------
and here my entire .vimrc.
--------------------------------------------------
" {{{ Terminal correction
" Eterm uses some combinations of keys. If enviroment
$TERM variables is Eterm,
" set term to rxvt and now can use keys normally. See
combinations of keys in
" http://www.eterm.org/docs/view.php?doc=ref#eterm_esc
if &term == "Eterm"
set term=rxvt
endif
" }}}
" {{{ Basic settings for ftplugin and syntax active
" Active syntax.
syntax on
" Use filetype plugins, e.g. for PHP
filetype indent plugin on
" }}}
" {{{ Settings for vim window.
" Show list of all matches and no the first match.
(file)
set wildmode=list
" Show nice info in ruler
set ruler
set laststatus=2
" Number of spaces on <Tab>
set tabstop=4
" Number of spaces to use for each step of
(auto)indent. Used for |'cindent'|,
" |>>|, |<<|, etc."
set shiftwidth=4
" Show line numbers by default
set number
" Use incremental searching
set incsearch
" Jump 5 lines when running out of the screen
set scrolljump=5
" Indicate jump out of the screen when 3 lines before
end of the screen
set scrolloff=3
" Repair wired terminal/vim settings
set backspace=start,eol,indent
" Match 'word' case-insensitive and 'Word'
case-sensitive
set ignorecase
set smartcase
" Default textwidth
set textwidth=80
" Setting default theme for gui and terminal.
if has("gui_running")
colorscheme mod_tcsoft
else
colorscheme default
set bg=dark
endif
" Set encondings of newfiles.
set encoding=iso-8859-1
set fileencoding=iso-8859-1
set fileencodings=iso-8859-1
" }}}
" {{{ Set filetype for unknow extensions
au BufNewFile,BufRead
*.phps.*.cd,text.pt,config.admin,config.layout set
filetype=php
au BufRead,BufNewFile *.html,*.htm set
filetype=html
" }}}
" {{{ Source configs, plugins for certaing FileType
" Python -> Additional improvements for editing python
scripts.
au FileType python source
/usr/share/vim/vimfiles/plugin/python.vim
"au FileType vim source $HOME/.vim/confs/vim
" }}}
" {{{ Dictonaries for FileType
" Python -> pydiction
if has("autocmd")
autocmd FileType python set
complete+=k/$HOME/.vim/dict/pydiction isk+=.,(
endif
" }}}
"{{{ MAPPING KEYS
" Manipulação de janelas.
" Aumenta a janela horizontalmente com F3
map <F3> <C-w>+
inoremap <F3> <ESC><C-w>+i
" Diminui a janela horizontalmente com F4
map <F4> <C-w>-
inoremap <F4> <esC><C-w>-i
" Aumenta/diminui para a esquerda a janela com
Shift-F1
if has("gui_running")
map <S-F1> <C-w><
inoremap <S-F1> <ESC><C-w><i
else
" C-v S-F1, S-F1 é interpretado diferente pelo
console então precisa do caracter feito com C-v
map [23~ <C-w><
inoremap [23~ <ESC><C-w><i
endif
" Aumenta/diminui para a direita a janela com
Shift-F2
if has("gui_running")
map <S-F2> <C-w><
inoremap <S-F2> <ESC><C-w><i
else
" C-v S-F2, S-F2 é interpretado diferente pelo
console então precisa do caracter feito com C-v
map [24~ <C-w>>
inoremap [24~ <ESC><C-w>>i
endif
" Altera de janela 'para frente'
map <F4> <C-w>w
inoremap <F4> <ESC><C-w>w i
" Altera de janela 'para tRáz' [ Don't work in
Eterm. ]
"if has("gui_running")
map <S-F4> <C-w>W
inoremap <S-F4> <ESC><C-w>W i
"else
map [26~ <C-w>W
inoremap [26~ <ESC><C-w>W i
"endif
" maps for tabbing navigation.
if has("gui_running")
map <C-S-tab> :tabprevious<cr>
map <C-tab> :tabnext<cr>
map <C-S-tab> :tabprevious<cr>
map <C-tab> :tabnext<cr>
imap <C-S-tab> <ESC>:tabprevious<cr>i
imap <C-tab> <ESC>:tabnext<cr>i
nmap <C-t> :tabnew<cr>
imap <C-t> <ESC>:tabnew<cr>
else
map ^[[Z :tabprevious<cr>
map <C-tab> :tabnext<cr>
map ^[[Z :tabprevious<cr>
map <C-tab> :tabnext<cr>
imap ^[[Z <ESC>:tabprevious<cr>i
imap <C-tab> <ESC>:tabnext<cr>i
nmap <C-t> :tabnew<cr>
imap <C-t> <ESC>:tabnew<cr>
endif
" make
map <F3> :make<CR>
inoremap <F3> <ESC>:make<CR>i
" Movimentação (em desuso)
map 8 k
map 5 j
map 4 h
map 6 l
"}}}
" {{{ Variables
" For taglist plugin, need to get exuberant-ctags to
see more execute :help taglist-intro
let Tlist_Ctags_Cmd='exuberant-ctags'
" }}}
--------------------------------------------------
I think that it a great problem, and, because it don't
work on some terminals (I tested console, Eterm,
xterm, aterm) I think that is problem of VIM.
Thank you for all for attention.
Felipe 'chronos' Prenholato.
[EMAIL PROTECTED]
[EMAIL PROTECTED]
_______________________________________________________
Abra sua conta no Yahoo! Mail: 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz.
http://br.info.mail.yahoo.com/