|
|
|
@ -2,9 +2,11 @@
@@ -2,9 +2,11 @@
|
|
|
|
|
" vanilla vimrc |
|
|
|
|
" ============================================== |
|
|
|
|
" |
|
|
|
|
" be iMproved, required |
|
|
|
|
set nocompatible |
|
|
|
|
filetype off |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" don't bother with vi compatibility |
|
|
|
|
set nocompatible " be iMproved, required |
|
|
|
|
filetype off " required |
|
|
|
|
filetype plugin indent on |
|
|
|
|
setlocal spell spelllang=en_us |
|
|
|
|
" disable folding |
|
|
|
@ -39,7 +41,9 @@ if has("autocmd")
@@ -39,7 +41,9 @@ if has("autocmd")
|
|
|
|
|
\ exe "normal g`\"" | |
|
|
|
|
\ endif |
|
|
|
|
endif " has("autocmd") |
|
|
|
|
" in Python, don't move comment hashtag to first column. https://stackoverflow.com/q/2063175 |
|
|
|
|
" in Python, don't move comment hashtag to first column. |
|
|
|
|
" smartindent unnecessary for python anyway. |
|
|
|
|
" http://stackoverflow.com/questions/2063175/vim-insert-mode-comments-go-to-start-of-line |
|
|
|
|
au! FileType python setl nosmartindent |
|
|
|
|
" allow visual mode to go to blank space at end of lines |
|
|
|
|
set virtualedit=block |
|
|
|
@ -85,11 +89,9 @@ colorscheme desert
@@ -85,11 +89,9 @@ colorscheme desert
|
|
|
|
|
" correct my common typos without me even noticing them: |
|
|
|
|
abbreviate teh the |
|
|
|
|
abbreviate hte the |
|
|
|
|
" |
|
|
|
|
abbreviate reccommend recommend |
|
|
|
|
abbreviate reccomend recommend |
|
|
|
|
abbreviate recomend recommend |
|
|
|
|
" |
|
|
|
|
abbreviate slef self |
|
|
|
|
" |
|
|
|
|
" :e <tab> brings up longest; <tab> again shows list |
|
|
|
@ -133,7 +135,6 @@ endif
@@ -133,7 +135,6 @@ endif
|
|
|
|
|
" Shift+Tab should de-indent |
|
|
|
|
" Control + D is de-indent |
|
|
|
|
inoremap <S-Tab> <C-d> |
|
|
|
|
" |
|
|
|
|
set autoindent |
|
|
|
|
set backspace=2 " Fix broken backspace in some setups |
|
|
|
|
set clipboard=unnamed " yank and paste with the system clipboard |
|
|
|
@ -142,7 +143,6 @@ set ruler " show where you ar
@@ -142,7 +143,6 @@ set ruler " show where you ar
|
|
|
|
|
set showcmd |
|
|
|
|
set smartcase " case-sensitive search if any caps |
|
|
|
|
set wildignore=log/**,node_modules/**,target/**,tmp/**,*.pyc |
|
|
|
|
" |
|
|
|
|
" keyboard shortcuts |
|
|
|
|
let mapleader = ',' |
|
|
|
|
noremap <C-h> <C-w>h |
|
|
|
@ -173,7 +173,7 @@ set ttyfast
@@ -173,7 +173,7 @@ set ttyfast
|
|
|
|
|
set noeol |
|
|
|
|
" Centralize backups, swapfiles and undo history |
|
|
|
|
set backupdir=~/.vim/backups |
|
|
|
|
"set directory=~/.vim/swap |
|
|
|
|
set directory=~/.vim/swap |
|
|
|
|
if exists("&undodir") |
|
|
|
|
set undodir=~/.vim/undo |
|
|
|
|
endif |
|
|
|
@ -242,10 +242,6 @@ if has("autocmd")
@@ -242,10 +242,6 @@ if has("autocmd")
|
|
|
|
|
" Treat .md files as Markdown |
|
|
|
|
autocmd BufNewFile,BufRead *.md setlocal filetype=markdown |
|
|
|
|
endif |
|
|
|
|
" Use the Solarized Dark theme |
|
|
|
|
set background=dark |
|
|
|
|
colorscheme solarized |
|
|
|
|
let g:solarized_termtrans=1 |
|
|
|
|
" Mark special characters |
|
|
|
|
set listchars=nbsp:☠,tab:▸␣ |
|
|
|
|
"set listchars=tab:▸␣ |
|
|
|
|