Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- syntax on " Syntax highlighting
- set background=dark " Terminal with a dark background
- set t_Co=256
- " colorscheme oceanblack " Color scheme
- set tabstop=4 " A tab is four spaces, but ideally 8 spaces, controlled by shiftwidth
- set shiftwidth=4 " Number of spaces to use for autoindenting
- set expandtab " Make a tab to spaces, num of spaces set in tabstop
- set smarttab " insert tabs at the start of a line according to
- set number " Enable line numbers
- set numberwidth=3 " Line number width
- set autoindent
- set smartindent
- set cindent
- filetype on
- filetype plugin on
- filetype indent on
- set incsearch " incremental search
- set hlsearch "highlight search results
- set bg=light " syntax highlighting
- set cursorline
- hi CursorLine term=bold ctermbg=8 cterm=bold guibg=Grey40
- highlight LineNr term=bold cterm=NONE ctermfg=blue ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
- highlight NonText ctermfg=8 guifg=gray
- nnoremap <Leader>c :set cursorline! cursorcolumn!<CR>
- "****************************Perl=====>Start**************************
- autocmd FileType perl set autoindent|set smartindent " autoindent
- autocmd FileType perl set tabstop=4|set shiftwidth=4|set expandtab|set softtabstop=4 " 4 space tabs
- autocmd FileType perl set showmatch " show matching brackets
- " check perl code with :make
- autocmd FileType perl set makeprg=perl\ -c\ %\ $*
- autocmd FileType perl set errorformat=%f:%l:%m
- autocmd FileType perl set autowrite
- " make tab in v mode ident code
- vmap <tab> >gv
- vmap <s-tab> <gv
- "****************************Perl=====>End**************************
- set laststatus=2
- set statusline+=%F
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement