Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- syntax on
- filetype plugin on
- set spelllang=pl
- set autochdir
- set smartindent
- set nocompatible
- autocmd BufEnter * lcd %:p:h
- set visualbell
- filetype plugin on
- au FileType php set omnifunc=phpcomplete#CompletePHP
- au BufNewFile,BufRead *.zcml set filetype=xml
- autocmd BufWritePost *.py !/usr/local/bin/reload_plone
- let php_sql_query=1
- let php_htmlInStrings=1
- source ~/.vim/abbrevations
- if has("gui_running")
- " GUI is running or is about to start.
- " Maximize gvim window.
- " set lines=99999 columns=99999
- set cursorline
- set guifont=Inconsolata\ Medium\ 12
- colorscheme pyte
- else
- colorscheme pyte
- set cursorline
- "noremap <C-]> :tabnext<CR>
- "noremap <C-[> :tabprev<CR>
- endif
- " // The switch of the Tag List
- nmap <F9> :TlistToggle<CR>
- " // The switch of the Source Explorer
- nmap <F8> :SrcExplToggle<CR>
- " // Set the height of Source Explorer window
- let g:SrcExpl_winHeight = 8
- " // Set 100 ms for refreshing the Source Explorer
- let g:SrcExpl_refreshTime = 100
- " // Set "Enter" key to jump into the exact definition context
- let g:SrcExpl_jumpKey = "<ENTER>"
- " // Set "Space" key for back from the definition context
- let g:SrcExpl_gobackKey = "<SPACE>"
- " // In order to Avoid conflicts, the Source Explorer should know what plugins
- " // are using buffers. And you need add their bufname into the list below
- " // according to the command ":buffers!"
- let g:SrcExpl_pluginList = [
- \ "__Tag_List__",
- \ "_NERD_tree_",
- \ "Source_Explorer"
- \ ]
- " // Enable/Disable the local definition searching, and note that this is not
- " // guaranteed to work, the Source Explorer doesn't check the syntax for now.
- " // It only searches for a match with the keyword according to command 'gd'
- let g:SrcExpl_searchLocalDef = 1
- " // Let the Source Explorer update the tags file when opening
- let g:SrcExpl_isUpdateTags = 1
- " // Use program 'ctags' with argument '--sort=foldcase -R' to create or
- " // update a tags file
- let g:SrcExpl_updateTagsCmd = "ctags --sort=foldcase -R ."
- " // Set "<F12>" key for updating the tags file artificially
- let g:SrcExpl_updateTagsKey = "<F12>"
- " // Database:
- let g:dbext_default_profile_czteryczwarte = 'host=localhost:type=MySQL:user=root:passwd=me7pa:dbname=czteryczwarte_crmcombine_prod'
- let g:dbext_default_profile_timework = 'host=localhost:type=MySQL:user=root:passwd=me7pa:dbname=timework_crmcombine_prod'
- let g:dbext_default_profile_4people = 'host=localhost:type=MySQL:user=root:passwd=me7pa:dbname=4people_crmcombine_prod'
- let g:dbext_default_profile_silny = 'host=localhost:type=MySQL:user=root:passwd=me7pa:dbname=silny_crmcombine_prod'
- let g:dbext_default_profile_tdm = 'host=localhost:type=MySQL:user=root:passwd=me7pa:dbname=tdm_crmcombine_prod'
- let g:dbext_default_profile = 'czteryczwarte'
- " Use neocomplcache.
- let g:NeoComplCache_EnableAtStartup = 0
- " Use smartcase.
- let g:NeoComplCache_SmartCase = 1
- " Use camel case completion.
- "let g:NeoComplCache_EnableCamelCaseCompletion = 1
- " Use underbar completion.
- let g:NeoComplCache_EnableUnderbarCompletion = 1
- " Set minimum syntax keyword length.
- let g:NeoComplCache_MinSyntaxLength = 3
- " Set manual completion length.
- let g:NeoComplCache_ManualCompletionStartLength = 0
- " Set minimum keyword length.
- let g:NeoComplCache_MinKeywordLength = 3
- imap <silent><C-l> <Plug>(neocomplcache_snippets_expand)
- smap <silent><C-l> <Plug>(neocomplcache_snippets_expand)
- inoremap <expr><C-h> pumvisible() ? "\<C-y>\<C-h>" : "\<C-h>"
- inoremap <expr><silent><C-g> neocomplcache#undo_completion()
- inoremap <expr><C-s> neocomplcache#complete_common_string()
- set autoindent
- map <F2> <Esc>:1,$!xmllint --format -<CR>
- map <F1> <Esc>:TlistOpen<CR>
- map <F3> <Esc>:NERDTree<CR>
- map <F4> <Esc>:VCSAnnotate<CR><C-w>40+
- map <F5> f'li)<Esc>hhF'itr(<Esc>
- set encoding=utf-8
- map <F9> <Esc>:VCSVimDiff<CR>
- map <F12> <Esc>:call SwitchWeb2py()<CR>
- map <F11> <Esc>:call GetHTML()<CR>
- map <S-k> <Esc>:tabnext<CR>
- map <S-j> <Esc>:tabprev<CR>
- highlight CursorLine ctermbg=yellow
- set background=light
- set statusline=%F[%l:%c_of_%L(%p%%)]
- set laststatus=2
- map <S-e> :join<CR>
- set noswapfile
- set mouse=a
- set incsearch
- set smartcase
- set hid
- set wildmenu
- set cmdheight=2
- set nolazyredraw
- set magic
- set showmatch
- set noerrorbells
- set novisualbell
- set tm=500
- set nobackup
- set nowb
- set noswapfile
- set so=7
- set ignorecase
- set hlsearch
- "vimgrep
- vnoremap <silent> gv :call VisualSearch('gv')<CR>
- map <leader>g :vimgrep // **/*.<left><left><left><left><left><left><left>
- " From an idea by Michael Naumann
- function! VisualSearch(direction) range
- let l:saved_reg = @"
- execute "normal! vgvy"
- let l:pattern = escape(@", '\\/.*$^~[]')
- let l:pattern = substitute(l:pattern, "\n$", "", "")
- if a:direction == 'b'
- execute "normal ?" . l:pattern . "^M"
- elseif a:direction == 'gv'
- call CmdLine("vimgrep " . '/'. l:pattern . '/' . ' **/*.')
- elseif a:direction == 'f'
- execute "normal /" . l:pattern . "^M"
- endif
- let @/ = l:pattern
- let @" = l:saved_reg
- endfunction
- function! CmdLine(str)
- exe "menu Foo.Bar :" . a:str
- emenu Foo.Bar
- unmenu Foo
- endfunction
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- " => Command mode related
- " """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- " Smart mappings on the command line
- cno $h e ~/
- cno $d e ~/Desktop/
- cno $j e ./
- cno $c e <C-\>eCurrentFileDir("e")<cr>
- " $q is super useful when browsing on the command line
- cno $q <C-\>eDeleteTillSlash()<cr>
- " Bash like keys for the command line
- cnoremap <C-A> <Home>
- cnoremap <C-E> <End>
- cnoremap <C-K> <C-U>
- cnoremap <C-P> <Up>
- cnoremap <C-N> <Down>
- " :autocmd CursorMoved * silent! exe printf('match IncSearch /\<%s\>/', expand('<cword>'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement