Skip to content

Instantly share code, notes, and snippets.

@topher6345
Created November 3, 2015 16:47
Show Gist options
  • Save topher6345/8c1b125770e864cf4a2a to your computer and use it in GitHub Desktop.
Save topher6345/8c1b125770e864cf4a2a to your computer and use it in GitHub Desktop.
set nocompatible
syntax on
map <Esc> <Nop>
set nu
set mouse=a
execute pathogen#infect()
autocmd vimenter * if !argc() | NERDTree | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
"====[ Make the 81st column stand out ]====================
" OR ELSE just the 81st column of wide lines...
highlight ColorColumn ctermbg=magenta
call matchadd('ColorColumn', '\%81v', 100)
"====[ Make tabs, trailing whitespace, and non-breaking spaces visible ]======
exec "set listchars=tab:\uBB\uBB,trail:\uB7,nbsp:~"
set list
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment