Last active
May 8, 2022 13:23
-
-
Save pavel-odintsov/9b3375b4de6ff7098030 to your computer and use it in GitHub Desktop.
vimrc_odintsov
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
" | |
" First of all, pleae install latest vim for convinience: https://launchpad.net/~jonathonf/+archive/ubuntu/vim | |
" Then install vim go | |
" git clone https://github.com/fatih/vim-go.git ~/.vim/pack/plugins/start/vim-go | |
" | |
" Fix arrow keys that display A B C D on remote shell: | |
" Use Vim settings, rather then Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
if &compatible | |
set nocompatible " Be iMproved | |
endif | |
" Required: | |
filetype plugin indent on | |
set fileencodings=utf-8,cp1251,koi8-r,cp866 | |
syntax on | |
" Increase memory allowance to avoid E363: pattern uses more memory than 'maxmempattern' | |
set mmp=5000 | |
" Set default tasb size | |
colorscheme default | |
" Number of space charasters inserted by indentation ">" and "<" | |
set shiftwidth=4 | |
set softtabstop=4 | |
" How much spaces we have in tab | |
set tabstop=4 | |
" fix backspace | |
set bs=2 | |
" disable line numbers | |
set nonumber | |
" Set left column folding | |
set foldcolumn=0 " | |
set foldenable | |
" Search during text input | |
set incsearch | |
" Disable visual bell | |
set novisualbell | |
set t_vb= | |
" Enable spell checker | |
" To add unknown word just select word in vusla mode and input zg while pointed top word | |
set spell | |
" Convert all tab symbols to spaces | |
set expandtab | |
" Set automatic indent | |
set autoindent | |
" Show mode in which vim works | |
set showmode | |
" Ignore case during search | |
set ignorecase | |
" Highlight matched lines during search | |
set hlsearch | |
set ruler | |
set t_vb= | |
" Keeps swap files in specific folder | |
set dir=~/.vim | |
" Uncomment the following to have Vim jump to the last position when | |
" reopening a file | |
if has("autocmd") | |
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | |
\| exe "normal! g'\"" | endif | |
endif | |
set mouse= | |
set ttymouse= |
How do you manage your plugins? pathogen, vundle?
NeoBundle :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Big thanks to Sergei Mamonov!