Advertisement
Guest User

Untitled

a guest
May 29th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. set noswapfile " removes annoying .swp files when opening the same file multiple times
  2. set number " line numbers
  3. syntax on " try to autoread syntax (based on filename)
  4.  
  5. " relative line numbers below > VIM 7.4
  6. " set relativenumber
  7.  
  8. " Tab stuff, I perfer to use two spaces instead of hard tabs
  9. set tabstop=2 " this is when you open a file with hard tabs in it, <TAB>
  10. set softtabstop=2 " these are tabs when editing, so pressing TAB in insert mode
  11. set shiftwidth=2
  12. set expandtab " tabs are spaces!
  13.  
  14. " Press F2 to enable paste mode, which will keep the formatting of pasted text, useful for pasting code
  15. set pastetoggle=<F2>
  16.  
  17. " when in command mode, press tab and it will pop open a window and try to suggest commands
  18. set wildmenu
  19. set wildmode=longest:full,full
  20.  
  21. " if you are tabbed in a few spaces, and you do other actions, for
  22. " example o, it will automatically tab you to where the previous line was
  23. set autoindent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement