Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. set nocompatible " MUST
  2. syntax enable " Use on/off on case by case basis
  3. set encoding=utf-8
  4. filetype plugin indent on " required!
  5.  
  6. " set backspace=indent,eol,start " Might take a bit of getting used to
  7.  
  8. " Tabbing
  9. set tabstop=2 shiftwidth=2 " tab is two spaces
  10. set expandtab " spaces for tabs
  11. set smarttab
  12.  
  13. set smartindent " Indent based on syntax
  14. set autoindent " Indent based on prev line
  15.  
  16. set showmatch " matching parens brackets shown
  17.  
  18. " Searching
  19. set incsearch " incremental searching
  20. set hlsearch " highlight searches
  21. set ignorecase " case insensitive searches
  22. set smartcase " except for one capital letter
  23.  
  24. " Decoration
  25. set showcmd " Show last command at bottom
  26. set showmode " Show... mode... INSERT REPLACE VISUAL
  27. set ruler " Char location info
  28. " set listchars=tab:>-,trail:ยท,eol:$ " Not working?
  29. set shortmess=atI " last line info abbr, truncate message, no intro
  30. set scrolloff=999 " set cursor at middle of screen always
  31.  
  32. " Command-line tab completion
  33. set wildmenu
  34.  
  35. " Terminal Stuff
  36. set title " to set terminal window name to file name
  37. set visualbell
  38.  
  39. set number
  40. """"""""""""""""""""""""""""""""""""""""""""""""""""""
  41.  
  42. " From Vimbits
  43. " Reselect visual block after indent/outdent
  44. vnoremap < <gv
  45. vnoremap > >gv
  46.  
  47. " Make Y behave like other capitals
  48. map Y y$
  49.  
  50. " Up/Down movement on wrapped lines
  51. nnoremap j gj
  52. nnoremap k gk
  53.  
  54. " Sudo write
  55. cmap w!! %!sudo tee > /dev/null %
  56.  
  57. " automatically reload vimrc when it's saved
  58. au BufWritePost .vimrc so ~/.vimrc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement