1
0
Fork 0
mirror of synced 2024-11-16 14:05:34 -05:00
ultimate-vim/my_configs.vim
Maksim Pecherskiy 0446365c13 Drraaacula.
2014-10-29 10:20:42 -07:00

134 lines
3.1 KiB
VimL

"Switch color schemes"
function! ColorSet(colorName)
if a:colorName == "default"
colorscheme molokai
set background=dark
let g:molokai_original=1
let g:airline_theme = 'molokai'
elseif a:colorName == "outside"
colorscheme solarized
set background=light
let g:airline_theme = 'molokai'
elseif a:colorName == "bluey"
colorscheme solarized
set background=dark
let g:airline_theme = 'molokai'
elseif a:colorName == "smyck"
colorscheme smyck
set background=dark
let g:airline_theme = 'molokai'
elseif a:colorName == "dracula"
colorscheme dracula
set background=dark
let g:airline_theme = 'molokai'
else
colorscheme molokai
set background=dark
let g:molokai_original=1
let g:airline_theme = 'molokai'
endif
endfunction
:command -nargs=1 ColorSet :call ColorSet(<f-args>)
if !empty($VIM_COLOR)
:call ColorSet($VIM_COLOR)
else
:call ColorSet("default")
endif
"set mouse=a
"set background=dark
"let g:molokai_original = 1
"colorscheme solarized
"syntax enable
"set background=dark
"set smartindent
"autocmd BufWritePre * :FixWhitespace
set timeoutlen=2000
set pastetoggle=<F6>
"inoremap jk <ESC>
"nnoremap ; :
#set colorcolumn=80
" Open Vim, be able to undo
"set undodir=$HOME/.vim/undo
"set undolevels=1000
"set undoreload=10000
" System wide copy paste
"set clipboard=unnamedplus
" Make Y behave like other capitals
"map Y y$
"
" " Start scrolling 3 lines before the border
set scrolloff=3
"
" " Automatically reread files that have been changed externally
"set autoread
"
" " Make ^e and ^y scroll 3 lines instead of 1
"nnoremap <C-e> 3<C-e>
"nnoremap <C-y> 3<C-y>
"
" " don't move the cursor after pasting
" " (by jumping to back start of previously changed text)
"noremap p p`[
"noremap P P`[
"
" " Reselect visual block after indent/outdent
"vnoremap < <gv
"vnoremap > >gv
" Turn off the christmas lights
"nnoremap <cr> :nohlsearch<cr>
" Allow saving as root by w!!
"cmap w!! %!sudo tee > /dev/null %
" Finde merge conflict markers
"nmap <silent> <leader>cf <ESC>/\v^[<=>]{7}( .*\|$)<CR>
" Use Marked.app to preview Markdown files...
"function! s:setupMarkup()
" nnoremap <leader>p :silent !open -a Marked.app '%:p'<cr>
"endfunction
" Navigate splits more easily
"map <C-h> <C-w>h
"map <C-j> <C-w>j
"map <C-k> <C-w>k
"map <C-l> <C-w>l
" " These makes j/k move up/down a screen line instead of a physical file line (for wrapped lines)
"nmap k gk
"nmap j gj
" autocmd BufEnter * if &modifiable | NERDTreeFind | wincmd p | endif
" Easymotion {{{
"let g:EasyMotion_do_mapping = 0
"nnoremap <silent> <Leader>f :call EasyMotion#F(0, 0)<CR>
"onoremap <silent> <Leader>f :call EasyMotion#F(0, 0)<CR>
"vnoremap <silent> <Leader>f :<C-U>call EasyMotion#F(1, 0)<CR>
"nnoremap <silent> <Leader>F :call EasyMotion#F(0, 1)<CR>
"onoremap <silent> <Leader>F :call EasyMotion#F(0, 1)<CR>
"vnoremap <silent> <Leader>F :<C-U>call EasyMotion#F(1, 1)<CR>
"onoremap <silent> <Leader>t :call EasyMotion#T(0, 0)<CR>
"onoremap <silent> <Leader>T :call EasyMotion#T(0, 1)<CR>
" }}}
"source ~/.vim_runtime/maximum_awesome_vimrc
"set tabstop=2
"set shiftwidth=2
"set expandtab
"set smartindentl:s
"
"