Skip to content

Instantly share code, notes, and snippets.

@lauris
Created January 1, 2012 22:52
Show Gist options
  • Save lauris/1548574 to your computer and use it in GitHub Desktop.
Save lauris/1548574 to your computer and use it in GitHub Desktop.
vimrc
set fileencodings=utf-8
set title
set encoding=utf-8
set showcmd
set showmode
set cmdheight=1
set autoread
set cursorline
au WinLeave * set nocursorline
au WinEnter * set cursorline
let g:CommandTMaxHeight = 20
set splitbelow splitright
set background=dark
set ruler
set number
set nocompatible
set history=50
set hidden
set cc=80
set nobackup
set noswapfile
set noexpandtab
set tabstop=4
set shiftwidth=4
set backspace=indent,eol,start
set laststatus=2
set showtabline=1
set cindent
set smartindent
set autoindent
set wrap
set foldenable
set foldmethod=syntax
" set showtabline=2
set t_Co=256
colorscheme monokai
filetype plugin indent on
filetype on
au FileType php set omnifunc=phpcomplete#CompletePHP
let php_sql_query=1
let php_htmlInStrings=1
syntax on
noremap <tab> :bn<CR>
noremap <C-S-tab> :bp<CR>
nmap n nzz
nmap N Nzz
set showmatch
set hlsearch
set wrapscan
set ic
" map <C-n> :NERDTreeToggle<CR>
map <C-t> :TlistToggle<CR>
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*.so
" "let Tlist_WinWidth = 30
let Tlist_Use_Right_Window = 1
nnoremap <space> :noh<return><space>
nnoremap <leader><leader> <c-^>
nnoremap ; :
let g:CommandTAcceptSelectionSplitMap='<C-y>'
set notimeout
set ttimeout
set timeoutlen=100
" autocmd VimEnter * NERDTree
" autocmd VimEnter * TlistToggle
" hi Directory guifg=#FF0000 ctermfg=red
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment