Skip to content

Instantly share code, notes, and snippets.

@xyzz
Created September 27, 2013 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xyzz/ceffbd63d3e11e1952d1 to your computer and use it in GitHub Desktop.
Save xyzz/ceffbd63d3e11e1952d1 to your computer and use it in GitHub Desktop.
set shell=sh
set nocompatible
filetype on
filetype plugin on
set autoindent
set t_Co=256
map <Esc>[Z <S-Tab>
imap <Tab> <c-r>=InsertTabWrapper("backward")<cr>
imap <S-Tab> <c-r>=InsertTabWrapper("forward")<cr>
function! InsertTabWrapper(direction)
let col = col('.') - 1
if !col || getline('.')[col - 1] !~ '\k'
return "\<tab>"
elseif "backward" == a:direction
return "\<c-p>"
else
return "\<c-n>"
endif
endfunction
set complete=""
set complete+=.
set complete+=k
set complete+=b
set complete+=t
autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
colorscheme wombat256
syntax on
set nu
set mousehide
set termencoding=utf-8
set novisualbell
set t_vb=
set backspace=indent,eol,start whichwrap+=<,>,[,]
set showtabline=0
set foldcolumn=1
set mouse=a
set clipboard=unnamed
set wrap
set nobackup
set noswapfile
set encoding=utf-8
set fileencodings=utf8,cp1251
au BufRead,BufNewFile *.hx set filetype=haxe
au! Syntax haxe source /home/xyz/.vim/syntax/haxe.vim
nnoremap <CR> :noh<CR><CR>
au BufRead,BufNewFile * :YAIFAMagic
au BufRead,BufNewFile *.smali set filetype=smali
set wrap
set textwidth=0 wrapmargin=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment