123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
-
-
- " ....... "
- " PLUGINS "
- " ''''''' "
- execute pathogen#infect()
-
- let g:netrw_banner=0
- let g:netrw_liststyle=3
-
- let g:gutentags_exclude_project_root=['/home/amahdal/vcs.tests/distribution']
- let g:gutentags_ctags_tagfile='.git/tags'
-
- 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']
-
- nmap <F6> :SyntasticCheck<CR>
-
- set statusline+=%#warningmsg#
- set statusline+=%{SyntasticStatuslineFlag()}
- set statusline+=%*
-
- let g:syntastic_always_populate_loc_list = 1
- let g:syntastic_auto_loc_list = 0
- let g:syntastic_check_on_open = 0
- let g:syntastic_check_on_wq = 0
-
- let g:syntastic_mode_map = {
- \ "mode": "active",
- \ "active_filetypes": ["bash"],
- \ "passive_filetypes": ["python"] }
-
- let g:syntastic_check_on_open = 1
- let g:syntastic_lua_checkers = ["luac", "luacheck"]
- let g:syntastic_lua_luacheck_args = "--no-unused-args"
-
- let g:gitgutter_sign_added = '✚'
- let g:gitgutter_sign_modified = '❱'
- let g:gitgutter_sign_removed = '❌'
- let g:gitgutter_sign_removed_first_line = '^'
- let g:gitgutter_sign_modified_removed = '❰'
-
- let g:airline_theme = 'zenburn'
-
-
- " ..................... "
- " PROGRAM / ENVIRONMENT "
- " ''''''''''''''''''''' "
-
- set clipboard=unnamed
- set encoding=utf-8
- set fileencodings=ucs-bom,utf-8,cp1250,latin1
- set history=500
-
- " swap settings "
- 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 "
- " '''''''''''' "
-
- set updatetime=100
- set t_vb=
- set pastetoggle=<F4>
- nmap <F3> :set relativenumber!<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>
- noremap p p`[
- noremap P P`[
- nnoremap ,, :b#<CR>
- nnoremap ,m :previous<CR>
- nnoremap ,. :next<CR>
- nnoremap ,l :ls<CR>
-
- if has("autocmd")
- filetype plugin indent on
- augroup vimrcEx
- au!
- autocmd FileType text setlocal textwidth=78
- autocmd BufNewFile,BufReadPost *.md set filetype=markdown
- autocmd BufNewFile,BufReadPost *TESTOUT.log* set filetype=beakerlib
- 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
- set relativenumber
-
- if &t_Co > 2 || has("gui_running")
- syntax on
- set hlsearch
- endif
-
- colorscheme hipster
- " colorscheme 1989
- 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
- highlight Search term=NONE cterm=NONE ctermfg=NONE ctermbg=235 "DarkGreen
-
- if &term =~ "xterm\\|rxvt"
- silent !echo -ne "\033]12;gray75\007"
- let &t_SI = "\<Esc>]12;gray25\x7"
- let &t_EI = "\<Esc>]12;gray75\x7"
- autocmd VimLeave * let &t_me="\<Esc>]12;white\x7"
- endif
|