mirror of
https://github.com/arcan1s/dotfiles.git
synced 2025-04-24 16:07:17 +00:00
more pretty and useful vimrc
This commit is contained in:
parent
568dbbfd8d
commit
0b933cdcef
49
vimrc
49
vimrc
@ -1,6 +1,11 @@
|
||||
"" to avoid non-utf errors
|
||||
scriptencoding utf-8
|
||||
set encoding=utf-8
|
||||
|
||||
"" appearance
|
||||
" color scheme
|
||||
colorscheme koehler
|
||||
set t_Co=256
|
||||
colorscheme advantage
|
||||
|
||||
" count of lines w\o scrolling at the top and bottom
|
||||
set scrolloff=3
|
||||
@ -8,11 +13,6 @@ set scrolloff=3
|
||||
" show running command
|
||||
set showcmd
|
||||
|
||||
" status-line
|
||||
set statusline=%t\ %y%m%r\ [%{&fileencoding}]%<\ [%{strftime(\"%d.%m.%y\",getftime(expand(\"%:p\")))}]%k%=%-14.(%l,%c%V%)\ %P
|
||||
" always show status-line
|
||||
set laststatus=2
|
||||
|
||||
" blink instead of beep
|
||||
set visualbell
|
||||
|
||||
@ -32,20 +32,21 @@ set number
|
||||
set colorcolumn=80
|
||||
|
||||
" enable tabs at the beginning of the line
|
||||
"set list
|
||||
set list
|
||||
" show tabs
|
||||
"set listchars=tab:
|
||||
set listchars=tab:␉·,trail:␠,nbsp:⎵
|
||||
|
||||
" dymanic wrapping
|
||||
set wrap
|
||||
" wrap on words
|
||||
set linebreak
|
||||
|
||||
|
||||
"" tabs
|
||||
set tabstop=4
|
||||
set smarttab
|
||||
set et
|
||||
tab sball
|
||||
set switchbuf=useopen
|
||||
" width
|
||||
set shiftwidth=2
|
||||
" indents
|
||||
@ -53,7 +54,6 @@ set ai
|
||||
" C-style indents
|
||||
set cin
|
||||
|
||||
|
||||
"" search
|
||||
" highlight search results
|
||||
set hlsearch
|
||||
@ -62,7 +62,6 @@ set incsearch
|
||||
" case-insensetive search
|
||||
set ignorecase
|
||||
|
||||
|
||||
"" navigation
|
||||
" save indents on paste
|
||||
set pastetoggle=<F2>
|
||||
@ -70,15 +69,35 @@ set pastetoggle=<F2>
|
||||
" move coursor on typing
|
||||
set whichwrap=b,<,>,[,],l,h
|
||||
|
||||
|
||||
"" codepages and formats
|
||||
set ffs=unix,dos,mac
|
||||
set fencs=utf-8,cp1251,koi8-r,ucs-2,cp866
|
||||
|
||||
set mousemodel=popup
|
||||
set ruler
|
||||
set completeopt-=preview
|
||||
|
||||
"" keyboard
|
||||
" enable russian symbols
|
||||
"set langmap=ёйцукенгшщзхъфывапролджэячсмитьбюЁЙЦУКЕHГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ;`qwertyuiop[]asdfghjkl\\;'zxcvbnm\\,.~QWERTYUIOP{}ASDFGHJKL:\\"ZXCVBNM<>
|
||||
" autostart nerdtree if no any other args
|
||||
autocmd vimenter * if !argc() | NERDTree | endif
|
||||
|
||||
" remove spaces at the end of the lines
|
||||
autocmd BufWritePre * :%s/\s\+$//e
|
||||
|
||||
"" plugin settings
|
||||
" airline settigns
|
||||
set laststatus=2
|
||||
let g:airline_theme='murmur'
|
||||
let g:airline_powerline_fonts=1
|
||||
let g:airline#extensions#tabline#enabled=1
|
||||
let g:airline#extensions#tabline#formatter='unique_tail'
|
||||
|
||||
" nerdtree settings
|
||||
map <F3> :NERDTreeToggle<CR>
|
||||
let NERDTreeIgnore=['\~$', '\.pyc$', '\.pyo$', '\.class$', '\.o$']
|
||||
|
||||
" tagbar settings
|
||||
map <F4> :TagbarToggle<CR>
|
||||
let g:tagbar_autofocus=0
|
||||
|
||||
" tasklist
|
||||
map <F5> :TaskList<CR>
|
||||
|
Loading…
Reference in New Issue
Block a user