Skip to content

Instantly share code, notes, and snippets.

@kmf
Created April 24, 2020 14:55
Show Gist options
  • Save kmf/5898f674ebbe7e60f7e5782654985cbb to your computer and use it in GitHub Desktop.
Save kmf/5898f674ebbe7e60f7e5782654985cbb to your computer and use it in GitHub Desktop.
.vimrc
set nocompatible " be iMproved, required
filetype off " required
syntax on
set background=dark
set encoding=UTF-8
let mapleader = "\<Space>"
set number relativenumber
set guifont=MesloLGSNerdFontComplete-Regular:h18
set path+=**
set wildmenu
set wildmode=longest,list,full
let maplocalleader = "\\"
set splitright splitbelow
" Disables automatic commenting on newline:
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
" Spell-check set to <leader>o, 'o' for 'orthography':
map <leader>o :setlocal spell! spelllang=en_gb<CR>
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'elentok/plaintasks.vim'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
Plugin 'garbas/vim-snipmate'
Plugin 'ericbn/vim-solarized'
Plugin 'freitass/todo.txt-vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'ryanoasis/vim-devicons'
Plugin 'preservim/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'TroyFletcher/vim-colors-synthwave'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'tpope/vim-fugitive'
Plugin 'pearofducks/ansible-vim'
Plugin 'kmf/vim-snipmate-chef'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'mileszs/ack.vim'
Plugin 'dense-analysis/ale'
call vundle#end() " required
filetype plugin indent on " required
" Ale begin
let g:ale_enabled = 1
let g:ale_linters = {'ruby': ['cookstyle']}
let g:ale_fixers = {'ruby': ['cookstyle']}
let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
nmap <F8> <Plug>(ale_fix)
let g:airline#extensions#ale#enabled = 1
" Ale end
filetype plugin indent on " required
autocmd FileType ruby,eruby set filetype=ruby.eruby.chef
" NERDTree
" autocmd StdinReadPre * let s:std_in=1
" autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
map <leader>n :NERDTreeToggle<CR>
let NERDTreeShowBookmarks=1
" NERDTree end
map <leader>2 :vsp <CR>
nmap <leader><Left> <C-w>h
nmap <leader><Right> <C-w>l
nmap <leader><Up> <C-w>k
nmap <leader><Down> <C-w>j
colorscheme synthwave
let g:airline_theme='kolor'
" Vugitive
"
set diffopt+=vertical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment