|
|
|
|
@@ -217,6 +217,10 @@ function! DisableIndentY()
|
|
|
|
|
set indentexpr&
|
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
" Javascript
|
|
|
|
|
" -------------------------
|
|
|
|
|
au BufRead,BufNewFile *.js,*.javascript set tabstop=2 shiftwidth=2 softtabstop=2 nowrap
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" ------------------------
|
|
|
|
|
@@ -546,40 +550,13 @@ function! BgToggle()
|
|
|
|
|
endif
|
|
|
|
|
endfunction
|
|
|
|
|
nnoremap <F5> :call BgToggle()<cr>
|
|
|
|
|
|
|
|
|
|
" to install vim-colors-solarized plugin:
|
|
|
|
|
" git clone git://github.com/altercation/vim-colors-solarized.git ~/.vim/bundle/vim-colors-solarized
|
|
|
|
|
"
|
|
|
|
|
let g:solarized_termcolors=256
|
|
|
|
|
|
|
|
|
|
"" If the following line is commented out,
|
|
|
|
|
"" F5/background toggle will change from
|
|
|
|
|
"" dark to light. If the line is enabled,
|
|
|
|
|
"" the background color will remain the same
|
|
|
|
|
"" dark default terminal backgorund color.
|
|
|
|
|
"let g:solarized_termtrans = 1
|
|
|
|
|
"
|
|
|
|
|
let g:solarized_degrade = 0
|
|
|
|
|
let g:solarized_bold = 1
|
|
|
|
|
let g:solarized_underline = 1
|
|
|
|
|
let g:solarized_italic = 1
|
|
|
|
|
let g:solarized_contrast = "normal"
|
|
|
|
|
let g:solarized_visibility= "normal"
|
|
|
|
|
|
|
|
|
|
" install solarized by getting the
|
|
|
|
|
" solarized color scheme in vim format
|
|
|
|
|
" (solarized.vim) from here:
|
|
|
|
|
"
|
|
|
|
|
" wget https://raw.githubusercontent.com/altercation/vim-colors-solarized/master/colors/solarized.vim -O ~/.vim/colors/solarized.vim
|
|
|
|
|
"
|
|
|
|
|
" put it in ~/.vim/colors/solarized.vim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" more color schemes:
|
|
|
|
|
"colorscheme blue
|
|
|
|
|
"colorscheme darkblue
|
|
|
|
|
"colorscheme default
|
|
|
|
|
"colorscheme delek
|
|
|
|
|
"colorscheme delek
|
|
|
|
|
colorscheme desert " <-- old standby
|
|
|
|
|
"colorscheme elflord
|
|
|
|
|
"colorscheme evening
|
|
|
|
|
@@ -610,6 +587,14 @@ nnoremap <S-L> :join<CR>
|
|
|
|
|
" move up and down n lines
|
|
|
|
|
map <S-j> 7j
|
|
|
|
|
map <S-k> 7k
|
|
|
|
|
|
|
|
|
|
" Bubble text up/down
|
|
|
|
|
" Single line:
|
|
|
|
|
nmap <C-k> ddkP
|
|
|
|
|
nmap <C-j> ddp
|
|
|
|
|
" Multiple lines:
|
|
|
|
|
vmap <C-k> xkP`[V`]
|
|
|
|
|
vmap <C-j> xp`[V`]
|
|
|
|
|
|
|
|
|
|
" -----------------------------
|
|
|
|
|
" Jedi Autocomplete Plugin
|
|
|
|
|
|