Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let g:BASH_AuthorName = 'Krzysztof Antczak'
- let g:BASH_Email = 'k.antczak@livedata.pl'
- let g:BASH_Company = 'Livedata'
- syntax on
- set background=dark
- " Uncomment the following to have Vim jump to the last position when
- " reopening a file
- if has("autocmd")
- au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
- \| exe "normal g'\"" | endif
- endif
- " Uncomment the following to have Vim load indentation rules according to the
- " detected filetype. Per default Debian Vim only load filetype specific
- " plugins.
- if has("autocmd")
- filetype indent on
- endif
- " The following are commented out as they cause vim to behave a lot
- " differently from regular Vi. They are highly recommended though.
- set showcmd " Show (partial) command in status line.
- set showmatch " Show matching brackets.
- set ignorecase " Do case insensitive matching
- set smartcase " Do smart case matching
- set incsearch " Incremental search
- set autowrite " Automatically save before commands like :next and :make
- set hidden " Hide buffers when they are abandoned
- set expandtab " convert tabs to spaces
- set softtabstop=4 " tab of length 2
- set shiftwidth=4 " indentation tab to 2 spaces
- set nowrap " do not wrap lines
- set scrolloff=4 " Always show 4 lines above and bellow cursor (context)
- set backspace=2
- set ttyfast " smoother changes
- set autoindent " always set autoindenting on
- set smartindent " smart indent
- set cindent " cindent
- set fileencodings=utf-8
- set encoding=utf-8
- set viminfo+=!
- set history=1000 " history
- set linespace=0 " space it out a little more (easier to read)
- set ruler " Always show current positions along the bottom
- set mouse=a " use mouse everywhere
- set report=0 " tell us when anything is changed via :...
- set list listchars=tab:\ \ ,trail:�,eol:� " mark trailing white space !!!!
- "set shortmess=atI " shortens messages to avoid 'press a key' prompt
- set vb " blink instead beep
- set wildmenu " autocomplete menu - works with vim commands, and filesystem
- set guioptions-=T
- set completeopt-=preview
- set gcr=a:blinkon0
- " Visual Cues {
- set matchtime=5 " how many tenths of a second to blink matching brackets for
- set hlsearch
- set incsearch " BUT do highlight as you type you search phrase
- set scrolloff=5 " Keep 5 lines (top/bottom) for scope
- set sidescrolloff=5 " Keep 5 lines at the size
- set vb " blink instead beep
- set statusline=%f%m%r%h%w\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
- set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ENCODE=%{&fenc}]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
- set laststatus=2 " always show the status line
- "set cmdheight=5
- " }
- " Indent Related {
- set nosmartindent " smartindent (filetype indenting instead)
- set autoindent " autoindent (should be overwrote by cindent or filetype indent)
- set cindent " do c-style indenting
- set softtabstop=4 " unify
- set shiftwidth=4 " unify
- set tabstop=4 " real tabs should be 4, but they will show with set list on
- set copyindent " but above all -- follow the conventions laid before us
- " }
- " Text Formatting/Layout {
- "set formatoptions=tcrq " See Help (complex)
- set shiftround " when at 3 spaces, and I hit > ... go to 4, not 5
- set nowrap " do not wrap line
- set preserveindent " but above all -- follow the conventions laid before us
- set ignorecase " case insensitive by default
- set smartcase " if there are caps, go case-sensitive
- set completeopt=menu,longest,preview " improve the way autocomplete works
- set nocursorcolumn " show the current column
- " }
- " Folding {
- set foldenable " Turn on folding
- set foldmarker={,} " Fold C style code (only use this as default if you use a high foldlevel)
- set foldcolumn=4 " Give 1 column for fold markers
- "set foldopen-=search " don't open folds when you search into them
- "set foldopen-=undo " don't open folds when you undo stuff
- set foldmethod=marker " Fold on the marker
- set foldlevel=1000 " Don't autofold anything (but I can still fold manually)
- " }
- " Tab navigation {
- :nmap <C-n> :tabnew<CR>:FufFile<CR>
- :imap <C-n> <Esc>:tabnew<CR>:FufFile<CR>
- :nmap - :tabprev<CR>
- :nmap + :tabnext<CR>
- " }
- au BufNewFile,BufRead *.module set filetype=php
- au BufNewFile,BufRead *.test set filetype=php
- au BufNewFile,BufRead *.install set filetype=php
- au BufNewFile,BufRead *.inc set filetype=php
- autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
- autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
- autocmd FileType css set omnifunc=csscomplete#CompleteCSS
- autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
- autocmd FileType php set omnifunc=phpcomplete#CompletePHP
- autocmd FileType inc set omnifunc=phpcomplete#CompletePHP
- set tags=./tags;/var/www
- if &diff
- set background=dark
- colorscheme peaksea
- endif
- " custom keybinginds (left key press perform the right key commands)
- " Toggle fold
- noremap f za
- " Close all folds
- noremap F zM
- " Open all folds
- noremap O zR
- :set number
- :set t_Co=256
- "colorscheme wombat256
- "colorscheme molokai
- colorscheme neverland
- :fixdel
- "#:set t_kb=^?
- "#:set shortmess=filnxtToOI
- "#map! <Ctrl+V><Home> <Ctrl+V><Alt+0>i
- "#map <C-z> :u<CR> " undo
- :set spelllang=pl
- ":set spell
- command Php :!php %
- map <F5> :Php<CR>
- imap <F5> <ESC>:Php<CR>
- " Check php files for syntax errors {
- noremap <C-B> :!php -1 %<CR>
- " }
- map <F7> :FufFile<CR>
- imap <F7> :FufFile<CR>
- map <F2> :w<CR>
- imap <F2> <ESC>:w<CR>
- map <F10> :q<CR>
- imap <F10> :q<CR>
- set wmh=0
- set nobackup
- set nowritebackup
- set noswapfile
- " PHP {
- let php_sql_query = 1
- let php_htmlInStrings = 1
- let php_baselib = 1
- let php_smart_members = 1
- let php_alt_properties = 1
- let php_highlight_quotes = 1
- let php_alt_construct_parents = 1
- let php_nested_functions = 1
- let php_oldStyle = 0
- let php_folding = 2
- let php_fold_arrays = 1
- let php_fold_heredoc = 1
- " }
- set cursorline
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement