"" Basic Settings {{{{ "" syntax enable set autoindent set autoread set autowrite set backspace=indent,eol,start set backupdir=~/tmp,/var/tmp,/tmp/ set clipboard^=unnamed,unnamedplus set cmdheight=1 set completeopt=menu,preview set cursorline set diffopt=vertical set directory=~/tmp,/var/tmp,/tmp/ set encoding=utf-8 set expandtab set exrc set foldmethod=marker set gdefault set hidden set hlsearch set ignorecase set incsearch set modelines=0 set nobackup set nocompatible set noerrorbells set nojoinspaces set noswapfile set nowrap set nowritebackup set number set numberwidth=5 set re=1 set ruler set scrolloff=3 set secure set shell=bash set shiftround set shiftwidth=2 set showcmd set showmatch set showmode set showtabline=2 set smartcase set softtabstop=2 set splitbelow set splitright set t_Co=256 set t_vb= set tabstop=2 set tags=tags set termencoding=utf-8 set title set ttyfast set updatetime=200 set visualbell set list set listchars="" set listchars=tab:\ \ set listchars+=extends:> set listchars+=nbsp:_ set listchars+=precedes:< set listchars+=trail:ยท set wildmenu set wildmode=longest,list:longest set wildignore+=*.o,*.out,*.obj,.git,*.rbc,*.rbo,*.class,.svn,*.gem set wildignore+=*.zip,*.tar.gz,*.tar.bz2,*.rar,*.tar.xz,*.zst set wildignore+=*/vendor/gems/*,*/vendor/cache/*,*/.bundle/*,*/.sass-cache/* set wildignore+=*/tmp/cache/assets/*/sprockets/*,*/tmp/cache/assets/*/sass/* set wildignore+=*.swp,*~,._* set wildignore+=*/tmp/*,*.so,*/coverage/* if executable('ag') set grepprg=ag\ --vimgrep\ $* endif if has('signcolumn') set signcolumn=number endif runtime macros/matchit.vim filetype plugin indent on set omnifunc=syntaxcomplete#Complete " }}}} "" General Mappings (Normal, Visual, Operator-pending) {{{{ "" let mapleader = "," let localleader = "\\" inoremap jk nnoremap ; : nnoremap :Buffers nnoremap h nnoremap j_ nnoremap k_ nnoremap l nnoremap :GFiles nnoremap :Files nnoremap :noh nnoremap W :%s/\s\+$//:let @/='' nnoremap ev :vsplit $MYVIMRC nnoremap fef :normal! gg=G`` nnoremap gb :Git blame -w -M nnoremap gs :Gstatus nnoremap h sl nnoremap hs :set hlsearch! hlsearch? nnoremap n :NERDTreeFind nnoremap p "+p nnoremap sv :source $MYVIMRC nnoremap v vl nnoremap F :Ag nnoremap f :grep! "\b\b":cw nnoremap n :NERDTreeClose nnoremap cd :lcd %:h nnoremap za nnoremap % nnoremap H ^ nnoremap L $ noremap gj noremap gk noremap = = vnoremap / /\v nnoremap F :Ag vnoremap zf vnoremap % nmap / CommentaryLine xmap / Commentary nmap (fzf-maps-n) omap (fzf-maps-o) xmap (fzf-maps-x) imap (fzf-complete-path) imap (fzf-complete-file-ag) imap (fzf-complete-word) imap (fzf-complete-line) imap (fzf-complete-buffer-line) " }}}} "" Plugin Configuration {{{{ "" let g:fzf_tags_command = 'ctags -R' let g:go_fmt_autosave = 1 let g:go_list_type = "quickfix" " }}}}