Advertisement
jv2112

VIM-Config

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