Let G: mapleader = ','
Set nocompatible
Set encoding = UTF-8
Set termencoding = UTF-8
Set fileencoding = UTF-8
Set fileencodings = ucs-bom, UTF-8, cp936
Set backspace = 2
Set number
Set history = 50
Set ruler
Set hlsearch
Set incsearch
Set mouse = icrv
Set showcmd
Set showmode
Set backspace = indent, EOL, start
"Set ignorecase
Set tabstop = 4
Set shiftwidth = 4
Set expandtab
Set formatoptions = tcqmm
Set textwidth = 150
Set foldlevel = 100
Set completeopt = longest, menu
"Set t_co = 16
"Colo wombat256
Colo ir_black
"For ctags
Nnoremap <F2>: tnext <CR>
Nnoremap <F3>: tselect <CR>
Nnoremap <space> O <ESC>
Nnoremap <leader> QQ: Q! <CR>
Nnoremap <leader> QA: QA! <CR>
Nnoremap <leader> WQ: WQ <CR>
Nnoremap <leader> WW: W <CR>
Nnoremap <c-k> MZ: m-2 <CR> 'z =
Nnoremap <c-j> MZ: m + <CR> 'z =
Vnoremap <c-k>: m' <-2 <CR> GV = gv
Vnoremap <c-j>: m'> + <CR> GV = gv
Nnoremap <tab> V>
Nnoremap <s-tab> v <
Vnoremap <tab> gv
Vnoremap <s-tab> <gv
Inoremap <C-E> <End>
Inoremap <C-A> <Home>
Inoremap <C-P> <up>
Inoremap <C-N> <down>
Inoremap <C-B> <left>
Inoremap <C-F> <right>
Inoremap <C-J> <CR>
Inoremap <C-D> <del>
Inoremap <F9> <c-x> <c-o>
Inoremap <F10> <c-x> <c-P>
NMAP <c-A> ggvg
Vmap <c-c> Y: Call System ("pbcopy", getreg ("/" ") <CR>
NMAP <c-P>: Call setreg ("/" ", system (" pbpaste ") <CR> P
Syntax on
If has ("autocmd ")
Filetype on
Filetype indent on
Filetype plugin on
AU bufreadpost * If line ("'/")> 1 & line ("'/" ") <= line (" $ ") | EXE" normal! G'/"" | endif
AU filetype Python nnoremap <F4 >:w <CR> :! Python % <CR>
"Ctags -- list-kinds = Python
"Ctags-r -- Python-kinds = CFM -- ages = Python -- extra = + q.
AU filetype Python setlocal tags = $ django_tags;
"Using pydiction
AU filetype Python setlocal dictionary = $ python_diction complete + = K iskeyword + =.
Endif
"For Python syntax
Let python_highlight_all = 1
"For xptemplate
Let G: xptemplate_vars = "spop = & sparg ="
Let G: xptemplate_brace_complete =''
"For neocomplecache
Let G: neocomplcache_enable_at_startup = 1
Let G: neocomplcache_enable_auto_select = 1
Inoremap <expr> <tab> pumvisible ()? "/<Down>": "/<tab>"
Inoremap <expr> <CR> pumvisible ()? "/<C-y>". neocomplcache # cancel_popup (): "<CR>"
"For winmanage and taglist
Let tlist_show_file = 1
Let tlist_exit_onlywindow = 1
Let G: winmanagerwindowlayout = 'fileexplorer | taglist'
NMAP <leader> WM: wmtoggle <CR>