Raimondi

Untitled

Nov 10th, 2011
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.47 KB | None | 0 0
  1. call pathogen#infect()     " pathogen
  2. call pathogen#helptags()   " call this when installing new plugins
  3.  
  4. filetype plugin indent on  " Automatically detect filetypes
  5. syntax on                  " Turn on synax highlighting
  6. set autochdir              " Automatically use the current file's directory as the working directory
  7.  
  8. set t_Co=256
  9. colorscheme mango
  10.  
  11. set tabpagemax=15          " Only show 15 tabs
  12. set showmode               " display the current mode
  13. set cursorline             " Background highlight current line
  14.  
  15. if has ('statusline')
  16.     set laststatus=2                                                         "  Always show the status line
  17.  
  18.     set statusline=%<%f\                                                     "  Filename
  19.     set statusline+=\ [%{getcwd()}]                                          "  Current dir
  20.     set statusline+=%w%h%m%r                                                 "  Options
  21.     "set statusline+=%{fugitive#statusline()}                                "  Git Hotness
  22.     set statusline+=\ [%{&ff}/%Y]                                            "  Filetype
  23.     "set statusline+=\ [%{strftime(\" %l:%M:%S\ \%p,\ %a\ %b\ %d,\ %Y\")}]\ "  Current time
  24.     "set statusline+=\ [A=\%03.3b/H=\%02.2B]                                 "  ASCII / Hexadecimal value of char
  25.     set statusline+=[tabs=%{&ts}]
  26.     set statusline+=%=%-14.(line:%l,col:%c%V%)\ %p%%                         "  Right aligned file nav info
  27. endif
  28.  
  29. set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:p:h\")})%)%(\ %a%)\ -\ %{v:servername} " nice title
  30. set backspace=indent,eol,start            " Intuitive backspace
  31. set number                                " Show line numbers
  32. set showmatch                             " Show matching brackets / parens
  33. set incsearch                             " Find as you type search
  34. set hlsearch                              " Highlight search
  35. set ignorecase                            " Case insensitive search
  36. set smartcase                             " But case-sensitive if expression contains a capital letter
  37. set gdefault                              " The /g flag on :s substitutions by default
  38.  
  39. set smartindent  "  Do smart autoindenting when starting a new line. Works for C-like programs.
  40. set autoindent   "  Indent at same level as previous line
  41. set tabstop=4
  42. set shiftwidth=4
  43. set softtabstop=4
  44. set expandtab
  45.  
  46. " Wrap text
  47. "set lbr
  48. "set showbreak=...
  49.  
  50.  
  51. "imap jj <ESC> " fast escaping
  52. nnoremap ; :
  53. nnoremap <CR> :noh<CR><CR>
  54.  
  55.  
Advertisement
Add Comment
Please, Sign In to add comment