more pretty and useful vimrc

This commit is contained in:
arcan1s 2015-08-02 23:00:46 +03:00
parent 568dbbfd8d
commit 0b933cdcef

49
vimrc
View File

@ -1,6 +1,11 @@
"" to avoid non-utf errors
scriptencoding utf-8
set encoding=utf-8
"" appearance "" appearance
" color scheme " color scheme
colorscheme koehler set t_Co=256
colorscheme advantage
" count of lines w\o scrolling at the top and bottom " count of lines w\o scrolling at the top and bottom
set scrolloff=3 set scrolloff=3
@ -8,11 +13,6 @@ set scrolloff=3
" show running command " show running command
set showcmd 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 " blink instead of beep
set visualbell set visualbell
@ -32,20 +32,21 @@ set number
set colorcolumn=80 set colorcolumn=80
" enable tabs at the beginning of the line " enable tabs at the beginning of the line
"set list set list
" show tabs " show tabs
"set listchars=tab: set listchars=tab:␉·,trail:␠,nbsp:⎵
" dymanic wrapping " dymanic wrapping
set wrap set wrap
" wrap on words " wrap on words
set linebreak set linebreak
"" tabs "" tabs
set tabstop=4 set tabstop=4
set smarttab set smarttab
set et set et
tab sball
set switchbuf=useopen
" width " width
set shiftwidth=2 set shiftwidth=2
" indents " indents
@ -53,7 +54,6 @@ set ai
" C-style indents " C-style indents
set cin set cin
"" search "" search
" highlight search results " highlight search results
set hlsearch set hlsearch
@ -62,7 +62,6 @@ set incsearch
" case-insensetive search " case-insensetive search
set ignorecase set ignorecase
"" navigation "" navigation
" save indents on paste " save indents on paste
set pastetoggle=<F2> set pastetoggle=<F2>
@ -70,15 +69,35 @@ set pastetoggle=<F2>
" move coursor on typing " move coursor on typing
set whichwrap=b,<,>,[,],l,h set whichwrap=b,<,>,[,],l,h
"" codepages and formats "" codepages and formats
set ffs=unix,dos,mac set ffs=unix,dos,mac
set fencs=utf-8,cp1251,koi8-r,ucs-2,cp866 set fencs=utf-8,cp1251,koi8-r,ucs-2,cp866
set mousemodel=popup
set ruler
set completeopt-=preview
"" keyboard " autostart nerdtree if no any other args
" enable russian symbols autocmd vimenter * if !argc() | NERDTree | endif
"set langmap=ёйцукенгшщзхъфывапролджэячсмитьбюЁЙЦУКЕHГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ;`qwertyuiop[]asdfghjkl\\;'zxcvbnm\\,.~QWERTYUIOP{}ASDFGHJKL:\\"ZXCVBNM<>
" remove spaces at the end of the lines " remove spaces at the end of the lines
autocmd BufWritePre * :%s/\s\+$//e 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>