-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
468 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,144 @@ | ||
set number | ||
set hlsearch | ||
"SET>>> | ||
"TAB PREFERENCES">>> | ||
set ts=4 | ||
set sts=4 | ||
set ai | ||
set si | ||
set sw=4 | ||
set et | ||
set modeline | ||
"<<< | ||
" Директорія для складання swp файлів>>> | ||
" Директорія обов'язково має бути присутня для того щоб це працювало | ||
" | ||
set dir=~/.vim/swp | ||
"<<< | ||
" Backupdir>>> | ||
"set backupdir="/tmp,.,~/" | ||
"<<< | ||
" Лінія статусу >>> | ||
" Встановлення лінії статусу >>> | ||
" | ||
" set statusline=%<[%n]\ %f\ %m%r%h%w\ %y\ %{&fileencoding}%=%b\ \ \ %c/%v\ %l/%L\ \ %P\ %a | ||
" | ||
" | ||
" hp mini preference | ||
" set statusline=%<%f%h%m%r\ %b\ %{&fileencoding}\ %l,%c%V\ %P | ||
" inpsiron preference | ||
set statusline=%<%f%h%m%r%=\ %b\ 0x%B\ %l,%c%V\ %P\ format=%{&fileformat}\ file=%{&fileencoding}\ enc=%{&encoding}" | ||
" <<< | ||
" Завжди показувати лінію статусу>>> | ||
set laststatus=2 | ||
"<<< | ||
"<<< | ||
" Опція збереження ~ бекап файлів>>> | ||
set backup | ||
"<<< | ||
" Графічні опції>>> | ||
" Це не працює під моєю ОС @see :help guioptions | ||
"set guioptions-=t | ||
" Видаляєм toolbar | ||
set guioptions-=T | ||
syntax on | ||
" Видаляєм іконку | ||
"set guioptions-=i | ||
" Видаляєм головне меню | ||
"set guioptions-=m | ||
"<<< | ||
" blinking in place of beep>>> | ||
set visualbell | ||
"<<< | ||
" Show line numbers>>> | ||
set number | ||
"<<< | ||
" Ignore case when searching >>> | ||
set ignorecase | ||
"<<< | ||
" Highlight all matches>>> | ||
set hlsearch | ||
"<<< | ||
" Wordwrap - off>>> | ||
set nowrap | ||
"<<< | ||
" Встановлюєм helplang до чого це тут не знаю>>> | ||
set helplang=ru | ||
"<<< | ||
"MENU >>> | ||
set wildmenu | ||
set wcm=<Tab> | ||
"<<< | ||
" Fileencodings >>> | ||
"set fileencodings=ucs-bom,utf-8,default,cp1251,latin1 | ||
set fileencodings=ucs-bom,utf-8,cp1251,koi8-r,cp866,latin1,utf-16 | ||
"<<< | ||
">>> | ||
set fileformats=unix,dos,mac | ||
"<<< | ||
" Настраиваем переключение раскладок клавиатуры по <C-^> >>> | ||
set keymap=russian-jcukenwin | ||
"set keymap=ukrainian-jcuken | ||
|
||
" Раскладка по умолчанию - английская | ||
set iminsert=0 | ||
set imsearch=0 | ||
"<<< | ||
" Вертикальний diffsplit >>> | ||
set diffopt+=vertical | ||
"<<< | ||
" Підсвічуєм лінію з курсором>>> | ||
set cursorline | ||
"<<< | ||
""<<< | ||
" Підключаєм filetype and indenting>>> | ||
filetype indent on | ||
filetype plugin on | ||
filetype on | ||
"<<< | ||
" Підключаєм синтаксис >>> | ||
syntax on | ||
"<<< | ||
|
||
|
||
" MAP>>> | ||
" Mapping F1 - F12>>> | ||
"nnoremap <F5> :make<CR> | ||
map <F5> :cnext<CR> | ||
map <F6> :cprev<CR> | ||
map <S-F5> :cnfile<CR> | ||
map <S-F6> :cpfile<CR> | ||
map <F3> :Hexplore<CR> | ||
map <F2> :if expand("%") == ""<Bar>browse confirm w<Bar>else<Bar>confirm w<Bar>endif<CR> | ||
imap <F2> <ESC><F2> | ||
nmap <F2> :w<CR> | ||
imap <F3> <ESC><F3> | ||
map <S-F8> :emenu Encoding.<TAB> | ||
"<<< | ||
" Folding maps>>> | ||
map <S-Left> zc | ||
imap <S-Left> <ESC>zc | ||
map <S-Right> zo | ||
imap <S-Right> <ESC>zo | ||
"<<< | ||
let mapleader="," | ||
map <Leader>q :q<CR> | ||
map <Leader>l :let &list=!&list<CR> | ||
map <Leader>Q :q!<CR> | ||
map <Leader>t :ToggleWord<CR> | ||
" Зручні mappings для роботи з split-ами>>> | ||
nmap <C-down> <c-w>w | ||
nmap <C-up> <c-w>W | ||
nmap <C-left> <c-w>h | ||
nmap <C-right> <c-w>l | ||
map + <C-w>+ | ||
map _ <C-w>- | ||
"<<< | ||
" OTHER MAPPINGS>>> | ||
">>> Moving lines | ||
"nnoremap <C-S-DOWN> mz:m+<CR>`z== | ||
"nnoremap <C-S-UP> mz:m-2<CR>`z== | ||
"inoremap <C-S-DOWN> <Esc>:m+<CR>==gi | ||
"inoremap <C-S-UP> <Esc>:m-2<CR>==gi | ||
"vnoremap <C-S-DOWN> :m'>+<CR>gv=`<my`>mzgv`yo`z | ||
"vnoremap <C-S-UP> :m'<-2<CR>gv=`>my`<mzgv`yo`z | ||
|
||
"<<< | ||
|
||
" vim:fdm=marker:fmr=>>>,<<< |
Oops, something went wrong.