Created
March 15, 2010 05:55
-
-
Save bessarabov/332569 to your computer and use it in GitHub Desktop.
My ordinary linux environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=$PATH:~/bin/:~/bin/sicd/ | |
export EDITOR=vim | |
mkdir -p ~/tmp/delete_after_$(date +%Y-%m-%d) | |
export T=~/tmp/delete_after_$(date +%Y-%m-%d) | |
alias ls='ls --color=auto' | |
alias pbcopy='xsel --clipboard --input' | |
alias pbpaste='xsel --clipboard --output' | |
if [ -f /etc/bash_completion ]; then | |
. /etc/bash_completion | |
fi | |
echo -ne '\ekhostname\e\\' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Ivan Bessarabov | |
email = [email protected] | |
[achievement] | |
upload = true | |
[color] | |
ui = auto | |
[push] | |
default = nothing | |
[core] | |
pager = "sed -r \"s/\\x1B\\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]//g\"|vim -" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startup_message off | |
altscreen on | |
defscrollback 5000 | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}%-Lw%{= kW}%50> %n%f %t%{= kG}%+Lw%< %{= kG}%-=%c%{-}' | |
screen bash | |
title " " | |
screen bash | |
title " " | |
screen bash | |
title " " | |
screen bash | |
title " " | |
screen bash | |
title " " | |
screen bash | |
title " " | |
screen bash | |
title " " | |
screen bash | |
title " " | |
screen bash | |
title " " | |
screen bash | |
title " " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nu | |
set autoindent | |
set smartindent | |
set expandtab | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set pastetoggle=<F11> | |
set paste | |
syntax on | |
filetype plugin on | |
"Включаем перенос строк | |
set nowrap | |
" Перенос строк по словам, а не по буквам | |
set linebreak | |
" Включаем отображение выполняемой в данный момент команды в правом нижнем | |
" углу экрана. | |
" К примеру, если вы наберете 2d, то в правом нижнем углу экрана Vim | |
" отобразит строку 2d. | |
set showcmd | |
" Всегда отображать статусную строку для каждого окна | |
set laststatus=2 | |
" Включаем подсветку выражения, которое ищется в тексте | |
set hlsearch | |
" Останавливать поиск при достижении конца файла | |
set nowrapscan | |
" Игнорировать регистр букв при поиске | |
set ignorecase | |
" Отключаем создание бэкапов | |
set nobackup | |
" Отключаем создание swap файлов | |
set noswapfile | |
" Включает виртуальный звонок (моргает, а не бибикает при ошибках) | |
set visualbell | |
" Включает чтобы несохраненный фал не вызывал ругани при потытке открыть другой файл | |
set hidden | |
" Чтобы можно было запускать перл по F5 | |
function! RunCmd(cmd) | |
let fn = expand("%:p") | |
let ft = &l:filetype | |
botright copen | |
setlocal modifiable | |
%d _ | |
silent execute "read !".a:cmd." ".fn | |
1d _ | |
normal! 0 | |
if ft != "" | |
execute "setf ".ft | |
else | |
setlocal filetype= | |
endif | |
setlocal nomodifiable nomodified | |
wincmd p | |
endfunction | |
"command! -nargs=1 Run call RunCmd(<q-args>) | |
"command! RunPerl call RunCmd("/usr/bin/perl") | |
" F3 - обозреватель файлов | |
map <F3> :WMToggle<cr> | |
vmap <F3> <esc>:WMToggle<cr>i | |
imap <F3> <esc>:WMToggle<cr>i | |
" F4 - ctags | |
nmap <F4> :TlistToggle<cr> | |
vmap <F4> <esc>:TlistToggle<cr> | |
imap <F4> <esc>:TlistToggle<cr> | |
" F5 - выполнить перл | |
"nmap <F5> :w<CR>:RunPerl<CR> | |
" F6 - просмотр списка буферов | |
nmap <F6> <Esc>:BufExplorer<cr> | |
vmap <F6> <esc>:BufExplorer<cr> | |
imap <F6> <esc><esc>:BufExplorer<cr> | |
" F2 - просомтр pod документации | |
nmap <F2> <esc>:w<CR>:! perldoc1 %<CR><CR> | |
" F5 - запуск перл скрипта на выполнение | |
nmap <F5> <esc>:w<CR>:! clear; perl %; read -n 1 -s<CR><CR> | |
" F7 - просомтр svn diff | |
nmap <F7> <esc>:w<CR>:! svn diff % \|vim -<CR><CR> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
grep "$1" * -R|grep -v svn|vim - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
grep -i "$1" * -R|grep -v svn|vim - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
pod2man --utf8 $1 | iconv -t iso8859-5 | nroff -Tlatin1 -c -man - | iconv -f iso8859-5 | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment