Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. colorscheme slate
  2. set nocompatible "This fixes the problem where arrow keys do not function properly on some systems.
  3. syntax on "Enables syntax highlighting for programming languages
  4. set mouse=a "Allows you to click around the text editor with your mouse to move the cursor
  5. set showmatch "Highlights matching brackets in programming languages
  6. set autoindent "If you're indented, new lines will also be indented
  7. set smartindent "Automatically indents lines after opening a bracket in programming languages
  8. set backspace=2 "This makes the backspace key function like it does in other programs.
  9. set tabstop=4 "How much space Vim gives to a tab
  10. set number "Enables line numbering
  11. set smarttab "Improves tabbing
  12. set shiftwidth=4 "Assists code formatting
  13. "colorscheme darkblue "Changes the color scheme. Change this to your liking. Lookin /usr/share/vim/vim61/colors/ for options.
  14. "setlocal spell "Enables spell checking (CURRENTLY DISABLED because it's kinda annoying). Make sure to uncomment the next line if you use this.
  15. "set spellfile=~/.vimwords.add "The location of the spellcheck dictionary. Uncomment this line if you uncomment the previous line.
  16. set foldmethod=manual "Lets you hide sections of code
  17. "--- The following commands make the navigation keys work like standard editors
  18. imap <silent> <Down> <C-o>gj
  19. imap <silent> <Up> <C-o>gk
  20. nmap <silent> <Down> gj
  21. nmap <silent> <Up> gk
  22. "--- Ends navigation commands
  23. "--- The following adds a sweet menu, press F4 to use it.
  24. source $VIMRUNTIME/menu.vim
  25. set wildmenu
  26. set cpo-=<
  27. set wcm=<C-Z>
  28. map <F4> :emenu <C-Z>
  29. "--- End sweet menua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement