Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. set nocompatible "This fixes the problem where arrow keys do not function properly on some systems.
  2. syntax on "Enables syntax highlighting for programming languages
  3. set mouse=a "Allows you to click around the text editor with your mouse to move the cursor
  4. set showmatch "Highlights matching brackets in programming languages
  5. set ai "If you're indented, new lines will also be indented
  6. set smarttab "Automatically indents lines after opening a bracket in programming languages
  7. set backspace=2 "This makes the backspace key function like it does in other programs.
  8. set tabstop=4 "How much space Vim gives to a tab
  9. set expandtab
  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. nnoremap tt :tabnext<CR>
  23. nnoremap tr :tabprev<CR>
  24. "--- Ends navigation commands
  25. "--- The following adds a sweet menu, press F4 to use it.
  26. source $VIMRUNTIME/menu.vim
  27. set wildmenu
  28. set cpo-=<
  29. set wcm=<C-Z>
  30. map <F4> :emenu <C-Z>
  31. "--- End sweet menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement