Advertisement
Guest User

Untitled

a guest
Mar 13th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.74 KB | None | 0 0
  1. syntax on                       " Syntax highlighting
  2. set background=dark             " Terminal with a dark background
  3. set t_Co=256
  4. " colorscheme oceanblack          " Color scheme
  5. set tabstop=4                   " A tab is four spaces, but ideally 8 spaces, controlled by shiftwidth
  6. set shiftwidth=4                " Number of spaces to use for autoindenting
  7. set expandtab                   " Make a tab to spaces, num of spaces set in tabstop
  8. set smarttab                    " insert tabs at the start of a line according to
  9. set number                      " Enable line numbers
  10. set numberwidth=3               " Line number width
  11.  
  12. set autoindent
  13. set smartindent
  14. set cindent
  15. filetype on
  16. filetype plugin on
  17. filetype indent on
  18. set incsearch " incremental search
  19. set hlsearch "highlight search results
  20. set bg=light " syntax highlighting
  21. set cursorline
  22. hi CursorLine term=bold ctermbg=8 cterm=bold guibg=Grey40
  23.  
  24. highlight LineNr term=bold cterm=NONE ctermfg=blue ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
  25. highlight NonText ctermfg=8 guifg=gray
  26.  
  27. nnoremap <Leader>c :set cursorline! cursorcolumn!<CR>
  28.  
  29.  
  30.  
  31. "****************************Perl=====>Start**************************
  32.  
  33. autocmd FileType perl set autoindent|set smartindent " autoindent
  34. autocmd FileType perl set tabstop=4|set shiftwidth=4|set expandtab|set softtabstop=4 " 4 space tabs
  35. autocmd FileType perl set showmatch " show matching brackets
  36. " check perl code with :make
  37. autocmd FileType perl set makeprg=perl\ -c\ %\ $*
  38. autocmd FileType perl set errorformat=%f:%l:%m
  39. autocmd FileType perl set autowrite
  40.  
  41. " make tab in v mode ident code
  42. vmap <tab> >gv
  43. vmap <s-tab> <gv
  44.  
  45. "****************************Perl=====>End**************************
  46.  
  47. set laststatus=2
  48. set statusline+=%F
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement