123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
-
-
- " ....... "
- " PLUGINS "
- " ''''''' "
- execute pathogen#infect()
-
- let g:local_vimrc=".vimrc_local.vim"
- let python_highlight_all = 1
- let g:vim_markdown_folding_disabled=1
- let g:swap_custom_ops = ['and', 'or']
-
-
- " ..................... "
- " PROGRAM / ENVIRONMENT "
- " ''''''''''''''''''''' "
-
- set encoding=utf-8
- set fileencodings=ucs-bom,utf-8,cp1250,latin1
- set history=500
- if isdirectory($HOME . '/.local/share/vim') == 0
- :silent !mkdir -p ~/.vim/swap >/dev/null 2>&1
- endif
- set directory=./.vim-swap//
- set directory+=~/.local/share/vim/swap//
- set directory+=~/tmp//
- set directory+=.
-
-
- " ............ "
- " UI - GENERAL "
- " '''''''''''' "
-
- noremap <F2> :set list!<CR>
- set pastetoggle=<F4>
- nmap <F3> :set invnumber<CR>
-
- if has('mouse')
- set mouse=a
- endif
-
- if !exists(":DiffOrig")
- command DiffOrig vert new
- \ | set bt=nofile
- \ | r ++edit #
- \ | 0d_
- \ | diffthis
- \ | wincmd p
- \ | diffthis
- endif
-
-
- " ............ "
- " UI - EDITING "
- " '''''''''''' "
-
- set autoindent
- set backspace=indent,eol,start
- set expandtab
- set incsearch
- set shiftwidth=4
- set tabstop=4
-
- inoremap <C-Left> <C-P>
- inoremap <C-Right> <C-N>
-
- if has("autocmd")
- filetype plugin indent on
- augroup vimrcEx
- au!
- autocmd FileType text setlocal textwidth=78
- autocmd BufNewFile,BufReadPost *.md set filetype=markdown
- autocmd BufReadPost *
- \ if line("'\"") > 1 && line("'\"") <= line("$") |
- \ exe "normal! g`\"" |
- \ endif
- augroup END
- else
- set autoindent
- endif
-
- " .......... "
- " UI - LOOKS "
- " '''''''''' "
-
- set list
- set list listchars=tab:→\ ,trail:·,precedes:←
- set ruler
- set showcmd
- set nowrap
-
- if &t_Co > 2 || has("gui_running")
- syntax on
- set hlsearch
- endif
-
- colorscheme pablo
- hi Folded ctermbg=NONE
- "set gfn=Droid\ Sans\ Mono\ 9
- set number
- highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
- highlight MatchParen cterm=bold ctermfg=NONE ctermbg=black
-
- if &term =~ "xterm\\|rxvt"
- silent !echo -ne "\033]12;gray50\007"
- let &t_SI = "\<Esc>]12;gray75\x7"
- let &t_EI = "\<Esc>]12;gray50\x7"
- autocmd VimLeave * let &t_me="\<Esc>]12;white\x7"
- endif
|