Skip to content

Instantly share code, notes, and snippets.

@stroum
Last active August 13, 2020 21:29
Show Gist options
  • Save stroum/08a871b406625487397311558e0ebc41 to your computer and use it in GitHub Desktop.
Save stroum/08a871b406625487397311558e0ebc41 to your computer and use it in GitHub Desktop.
my .vimrc
set mouse=r
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Plugin list
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree' "NerdTree
" Colors
" Plugin 'chriskempson/base16-vim'
" Plugin 'bclear'
Plugin 'flazz/vim-colorschemes'
Plugin 'klen/python-mode'
Plugin 'rhowardiv/nginx-vim-syntax'
Plugin 'othree/yajs.vim'
Plugin 'ntpeters/vim-better-whitespace'
Plugin 'ekalinin/Dockerfile.vim'
Plugin 'yggdroot/indentline'
Plugin 'bling/vim-airline'
" Languages
Plugin 'nsf/gocode'
Plugin 'fatih/vim-go'
" Deoplete
Plugin 'Shougo/deoplete.nvim'
Plugin 'zchee/deoplete-go'
Plugin 'zchee/deoplete-jedi'
Plugin 'carlitux/deoplete-ternjs'
Plugin 'roxma/nvim-yarp'
Plugin 'roxma/vim-hug-neovim-rpc'
call vundle#end()
filetype plugin indent on
set termencoding=utf8
set fileencodings=utf8,cp1251
set encoding=utf-8
set number
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set backspace=indent,eol,start
" Colors
syntax on
" color bclear
colorscheme molokai
let g:rehash256 = 1
" Python mode
let g:pymode_python = 'python3'
" NerdTree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
map <C-n> :NERDTreeToggle<CR>
let g:NERDTreeDirArrowExpandable = '▸'
let g:NERDTreeDirArrowCollapsible = '▾'
" Tabs
map <C-l> :tabn<CR>
map <C-k> :tabp<CR>
map <C-j> :tabnew<CR>
map <C-h> :tabclose<CR>
" Line Numbers
nnoremap <F3> :NumbersToggle<CR>
nnoremap <F4> :NumbersOnOff<CR>
" Whitespaces
let g:better_whitespace_enabled=1
let g:strip_whitespace_on_save=1
" Indent Guides
let g:indent_guides_enable_on_vim_startup = 1
" Airline
let g:airline#extensions#tabline#enabled = 1 " smarter tabs
" Deoplete
let g:deoplete#enable_at_startup = 1

Build new vim

  • apt remove vim
  • apt install libncurses-dev
  • git clone https://github.com/vim/vim.git
  • cd vim/
  • ./configure --with-features=huge --enable-python3interp=yes --with-python3-command=python3.7 --with-python3-config-dir=/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu --enable-luainterp=yes
  • make -j2
  • make install

Install dependencies

  • go install github.com/nsf/gocode
  • pip3 install neovim jedi
  • npm install -g tern

Install vundle

  • git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
  • vim +PluginInstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment