Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Autocmd Options
- if has("autocmd")
- " Automagically reload vimrc after edit.
- autocmd bufwritepost .vimrc source $MYVIMRC
- autocmd bufwritepost _vimrc source $MYVIMRC " Windows :|
- " Load indent files for language-dependent indenting.
- call pathogen#helptags()
- call pathogen#runtime_append_all_bundles()
- filetype on
- filetype indent on
- filetype plugin on
- " JSON.vim
- au! BufRead,BufNewFile *.json set filetype=json foldmethod=syntax
- au! BufRead,BufNewFile *.js set filetype=javascript syntax=jquery
- endif
- " Regular Options
- set number " Line numbers
- set showmatch " Match opening/closing punctuation together
- set nobackup " Git is my backup.
- set nowritebackup " Git is my backup.
- set noswapfile " Git is my backup.
- set ruler " Cursor position
- set cursorline " Highlight line of the cursor
- set history=2000 " Command history
- set autochdir " Change the edit/open directory to the currently open file
- " Indentation
- set autoindent
- set smartindent
- set tabstop=5
- set shiftwidth=5
- set smarttab
- set expandtab
- " For autocompletion
- set wildmode=list:longest,list:full
- set guifont=Courier:h15
- " Color Scheme
- syntax enable
- set background=dark
- colorscheme solarized
- " Escape alternative
- imap <D-space> <Esc>
- " No Mercy!
- nnoremap <Left> :echoe "Use h!"<CR>
- inoremap <Left> <Esc>:echoe "Use h!"<CR>i
- noremap <Right> :echoe "Use l!"<CR>
- noremap <Up> :echoe "Use k!"<CR>
- noremap <Down> :echoe "Use j!"<CR>
Add Comment
Please, Sign In to add comment