Created
February 13, 2013 09:59
-
-
Save mdyn/4943495 to your computer and use it in GitHub Desktop.
My .vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set noruler | |
call pathogen#infect() | |
set noshowcmd | |
set number | |
set incsearch | |
set hlsearch | |
set ignorecase | |
set smartcase | |
set scrolljump=7 | |
set scrolloff=7 | |
set novisualbell | |
set t_vb= | |
set mouse=a | |
set mousemodel=popup | |
set termencoding=utf-8 | |
set fileencodings=utf-8,cp1251 | |
set encoding=utf-8 | |
set hidden | |
set guifont=DejaVu\ Sans\ Mono\ 11 | |
set ch=1 | |
set mousehide | |
set expandtab | |
set shiftwidth=4 | |
set softtabstop=4 | |
set tabstop=4 | |
set laststatus=2 | |
set fo+=cr | |
set sessionoptions=curdir,buffers,tabpages | |
set clipboard=unnamedplus | |
colorscheme twilight | |
set diffopt+=iwhite | |
set cindent | |
set smartindent | |
set autoindent | |
set cc=120 | |
filetype indent on | |
silent !mkdir /tmp/vim > /dev/null 2>&1 | |
set autoread | |
set backup writebackup | |
set backupdir=/tmp/vim | |
set directory=/tmp/vim | |
set wildmenu | |
set wildmode=list:longest,full | |
let g:netrw_liststyle=3 | |
let g:netrw_menu=0 | |
let g:netrw_winsize=10 | |
"let g:vdebug_options["watch_window_style"]='compact' | |
" statline settings | |
let g:statline_fugitive = 1 | |
"run phpcs | |
nmap <leader>p :CodeSniff<CR> | |
let Vimphpcs_Standard='Expensify' | |
nmap <leader>n ggvndyy | |
nmap <leader>t :NERDTreeToggle<CR> | |
nmap <Esc> :noh<CR> | |
nmap <leader>d D<C-w><C-w>D<C-w><C-w> | |
nmap <leader>a :tab ball<CR> | |
nmap <leader>s :%s/\s\+$//<CR> | |
nmap <leader>m dd<C-w><C-w>p<C-w><C-w>nk | |
nmap <leader>f :FufFile<CR> | |
nmap <leader>F :FufTaggedFile<CR> | |
autocmd FileType python set omnifunc=pythoncomplete#Complete | |
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 c set omnifunc=ccomplete#Complete | |
autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete | |
autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1 | |
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1 | |
autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1 | |
:set guioptions-=T "remove toolbar | |
let g:SuperTabDefaultCompletionType = "" | |
vmap > >gv | |
vmap < <gv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment