Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible
- syn on
- set number
- set tabstop=4
- set shiftwidth=4
- set autoindent
- set showmode
- set showcmd
- set ruler
- set backspace=start,indent,eol
- set wrapscan
- set incsearch
- set ignorecase
- set tags+=tags;
- set wildmenu
- set wildmode=longest,full
- set expandtab
- let mapleader = ","
- nnoremap <leader>t :TagbarToggle<CR>
- nnoremap <leader>u :GundoToggle<CR>
- nnoremap <leader>h <C-w>h
- nnoremap <leader>l <C-w>l
- nnoremap <leader>g <C-w><C-]><C-w>T
- nnoremap <leader>f :NERDTreeToggle<CR>
- filetype plugin indent on
- let php_folding = 1
- let php_sql_query = 1
- set foldmethod=syntax
- "set foldcolumn=3
- set foldlevel=2
- set hlsearch
- set t_Co=256
- set term=screen-256color
- colorscheme zenburn
- "“ Insert <Tab> or complete identifier“ if the cursor is after a keyword
- "character
- function MyTabOrComplete()
- let col = col('.')-1
- if !col || getline('.')[col-1] !~ '\k'
- return "\<tab>"
- else
- return "\<C-N>"
- endif
- endfunction
- inoremap <Tab> <C-R>=MyTabOrComplete()<CR>
- "Use H and L to switch between tabs
- :map <S-h> gT
- :map <S-l> gt
- "Use Q to close tabs
- map <S-q> :q <Enter>
- " This block is taken from the CentOS /etc/vimrc file. It
- " restores the last cursor position when you open a file to edit.
- " Only do this part when compiled with support for autocommands
- if has("autocmd")
- augroup redhat
- "When editing a file, always jump to the last cursor position
- autocmd BufReadPost *
- \ if line("'\"") > 0 && line ("'\"") <= line("$") |
- \ exe "normal! g'\"" |
- \ endif
- augroup END
- endif
Add Comment
Please, Sign In to add comment