Skip to content

Instantly share code, notes, and snippets.

@pavel-odintsov
Last active May 8, 2022 13:23
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavel-odintsov/9b3375b4de6ff7098030 to your computer and use it in GitHub Desktop.
Save pavel-odintsov/9b3375b4de6ff7098030 to your computer and use it in GitHub Desktop.
vimrc_odintsov
"
" 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=
@pavel-odintsov
Copy link
Author

Big thanks to Sergei Mamonov!

@rooty0
Copy link

rooty0 commented Jan 13, 2016

How do you manage your plugins? pathogen, vundle?

@pavel-odintsov
Copy link
Author

NeoBundle :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment