Advertisement
jv2112

vimrc

Jun 29th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.57 KB | None | 0 0
  1. syntax on
  2. filetype plugin on
  3. autocmd Filetype python setlocal expandtab shiftwidth=4 softtabstop=4
  4. set nu
  5. set hlsearch
  6. set autoindent
  7. set ruler
  8. set smartindent
  9. set history=150
  10. set mouse=a
  11. set t_Co=256
  12. set smarttab
  13. set colorcolumn=88
  14. set pastetoggle=<f5>
  15. set wildmenu
  16. set scrolloff=999
  17. set smartcase
  18. set magic
  19. cmap w!! %!sudo tee > /dev/null %
  20. filetype plugin indent on
  21.  
  22. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  23. " => Text, tab and indent related
  24. " """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  25. " " Use spaces instead of tabs
  26. set expandtab
  27.  
  28.  " Be smart when using tabs ;)
  29. set smarttab
  30.  
  31. set shiftwidth=4
  32. set tabstop=4
  33.  
  34. " " Linebreak on 500 characters
  35. set lbr
  36. set tw=500
  37.  
  38. set ai "Auto indent
  39. set si "Smart indent
  40. set wrap "Wrap lines
  41. set showcmd
  42. set cursorline
  43. set showmatch
  44. """"""""""""""""""""""""""""""
  45. " => Status line
  46. " """"""""""""""""""""""""""""""
  47. " " Always show the status line
  48.  set laststatus=2
  49.  
  50. " " Format the status line
  51.  set statusline=\ %F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \
  52.  
  53. " Tmux -- Allows Cursor change in tmux mode
  54.            if exists('$TMUX')
  55.                    let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
  56.                         let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"
  57.                    else
  58.                            let &t_SI = "\<Esc>]50;CursorShape=1\x7"
  59.                                let &t_EI = "\<Esc>]50;CursorShape=0\x7"
  60.                            endif
  61.  
  62.            
  63.  
  64.  
  65. colorscheme elflord
  66. set background=dark
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement