daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Nov 23rd, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. " Autocmd Options
  2. if has("autocmd")
  3.   " Automagically reload vimrc after edit.
  4.   autocmd bufwritepost .vimrc source $MYVIMRC
  5.   autocmd bufwritepost _vimrc source $MYVIMRC " Windows :|
  6.  
  7.   " Load indent files for language-dependent indenting.
  8.   call pathogen#helptags()
  9.   call pathogen#runtime_append_all_bundles()
  10.   filetype on
  11.   filetype indent on
  12.   filetype plugin on
  13.  
  14.   " JSON.vim
  15.   au! BufRead,BufNewFile *.json set filetype=json foldmethod=syntax
  16.   au! BufRead,BufNewFile *.js   set filetype=javascript syntax=jquery
  17. endif
  18.  
  19. " Regular Options
  20. set number              " Line numbers
  21. set showmatch               " Match opening/closing punctuation together
  22. set nobackup                " Git is my backup.
  23. set nowritebackup           " Git is my backup.
  24. set noswapfile                " Git is my backup.
  25. set ruler                   " Cursor position
  26. set cursorline              " Highlight line of the cursor
  27.  
  28. set history=2000            " Command history
  29.  
  30. set autochdir                 " Change the edit/open directory to the currently open file
  31.  
  32. " Indentation
  33. set autoindent
  34. set smartindent
  35. set tabstop=5
  36. set shiftwidth=5
  37. set smarttab
  38. set expandtab
  39.  
  40. " For autocompletion
  41. set wildmode=list:longest,list:full
  42.  
  43. set guifont=Courier:h15
  44.  
  45. " Color Scheme
  46. syntax enable
  47. set background=dark
  48. colorscheme solarized
  49.  
  50. " Escape alternative
  51. imap <D-space> <Esc>
  52.  
  53. " No Mercy!
  54. nnoremap <Left> :echoe "Use h!"<CR>
  55.  
  56. inoremap <Left> <Esc>:echoe "Use h!"<CR>i
  57. noremap <Right> :echoe "Use l!"<CR>
  58. noremap <Up> :echoe "Use k!"<CR>
  59. noremap <Down> :echoe "Use j!"<CR>
RAW Paste Data
Top