Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set syntax=on " Syntax highlighting
- set ts=4 " Tab size = 4 spaces
- set number " Line numbers
- set showcmd " Show (partial) command in status line.
- set ignorecase " Do case insensitive matching
- set hlsearch " Highlight search terms
- set smartcase " Do smart case matching
- set incsearch " Incremental search
- set autowrite " Automatically save before commands like :next and :make
- set background=dark " Dark background
- set autoindent " Auto indenting
- set autoread " Update open files when changed externally
- set sw=4 " Set shiftwidth to 4 spaces(default tab size)
- "set foldcolumn=1 " Increase the width of the number line column
- "filetype plugin indent on
- " Make the line numbers a different color
- hi LineNr ctermfg=lightblue
- " Toggle line numbers for easy copying
- nnoremap <F2> :set number!<CR>
- " Clear highlighted searches
- nmap <silent> ,/ :nohlsearch<CR>
- " this saves 2 keystrokes on nearly every command
- nnoremap ; :
- " Auto corrects and such
- abbr teh the
- " Create a color column at 79 characters
- if exists('+colorcolumn')
- set colorcolumn=72,79
- hi ColorColumn ctermbg=cyan guibg=yellow
- else
- au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>79v.\+', -1)
- endif
- " Highlight text that goes over the 80 column limit
- "highlight OverLength ctermbg=darkred ctermfg=white
- "match OverLength /\&81v.\+/
- " indicate which line the cursor is on
- "set cursorline
- " Folding will be applied according to the syntax file
- "set foldmethod=syntax
- " Disable arrow keys
- nnoremap <up> <nop>
- nnoremap <down> <nop>
- nnoremap <left> <nop>
- nnoremap <right> <nop>
- inoremap <up> <nop>
- inoremap <down> <nop>
- inoremap <left> <nop>
- inoremap <right> <nop>
- " Easy window navigation
- map <C-h> <C-w>h
- map <C-j> <C-w>j
- map <C-k> <C-w>k
- map <C-l> <C-w>l
Add Comment
Please, Sign In to add comment