Created
October 17, 2014 15:53
-
-
Save Altreus/793582efd24e009fa213 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Bundle 'jistr/vim-nerdtree-tabs' | |
Plugin 'tpope/vim-surround' | |
Plugin 'tpope/vim-repeat' | |
Plugin 'tpope/vim-ragtag' | |
Plugin 'matchit.zip' | |
Plugin 'snipMate' | |
call vundle#end() | |
filetype plugin indent on | |
syntax on | |
set background=dark | |
set showmatch | |
set showcmd | |
set ai | |
set tabstop=4 | |
set textwidth=80 | |
set expandtab | |
let &shiftwidth=&softtabstop | |
set nu | |
highlight Comment guifg=darkgrey ctermfg=darkgrey | |
set viminfo='10,\"100,:20,n~/.viminfo | |
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif | |
if has("gui_running")|color wombat|endif | |
set guifont=Liberation\ Mono\ 10 | |
set guioptions-=T | |
set t_Co=256 | |
set mouse=a | |
au BufNewFile,BufRead *.tt setf tt2html | |
"autocmd BufNewFile *.pm 0r ~/.vim/skeleton.pm | |
"autocmd BufNewFile *.pl 0r ~/.vim/skeleton.pl | |
"autocmd BufNewFile *.t 0r ~/.vim/skeleton.t | |
autocmd BufEnter *.t set filetype=perl | |
autocmd FileType perl :noremap K :!perldoc <cword> <bar><bar> perldoc -f <cword><cr> | |
" so movement breaks on :: | |
au FileType perl,tt2html set isk-=: | |
" set incremental searching with highlight | |
set incsearch | |
if &t_Co > 2 || has("gui_running") | |
set hlsearch | |
endif | |
map <F1> :w ! perl<CR> | |
map <F2> <C-W>+ | |
map <F3> <C-W>- | |
map <F4> <C-W>_ | |
map <F5> <C-W>= | |
map <F6> :W<CR> | |
map <F9> <C-W>> | |
map <F10> <C-W>< | |
map <F7> "*p | |
map <S-F7> "* P | |
map F zc | |
map f zo | |
xmap # :s/^/#/<CR>:nohl<CR> | |
map ]] ]} | |
map [[ [{ | |
nmap <Leader>n :NERDTreeTabsToggle<CR> | |
nmap <Leader>d "_d | |
nmap <Leader>x "_x | |
nmap <Leader>c "_c | |
nmap <Leader>s "_s | |
nmap <Leader>r "_r | |
nmap <Leader>D "_D | |
nmap <Leader>X "_X | |
nmap <Leader>C "_C | |
nmap <Leader>S "_S | |
vmap <Leader>d "_d | |
vmap <Leader>c "_c | |
vmap <Leader>x "_x | |
vmap <Leader>s "_s | |
vmap <Leader>r "_r | |
"=========================================================================== | |
" POD FOLDING - za will toggle local POD, zR expands all file, zM shrinks all file | |
"--------------------------------------------------------------------------- | |
" fold POD blocks between =... and =cut | |
set foldexpr=getline(v:lnum)=~'^=[a-bd-z]'?1:(getline(v:lnum-1)=~'^=cut'?0:foldlevel(v:lnum-1)) | |
set foldmethod=expr | |
" pretty up the fold marker for POD | |
set foldtext=v:folddashes.'\ '.(v:foldend-v:foldstart+1).'\ lines:\ '.substitute(getline(v:foldstart),'^=[^\ ]*\ ','','') | |
highlight Folded term=standout ctermfg=4 ctermbg=0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment