" this has to be first apparently? " i had problems when it was lower in the file. let mapleader="," silent !mkdir -p ~/Library/vim/plug > /dev/null 2>&1 silent !mkdir -p ~/Library/vim/backup > /dev/null 2>&1 silent !mkdir -p ~/Library/vim/undo > /dev/null 2>&1 silent !mkdir -p ~/Library/vim/swap > /dev/null 2>&1 silent !mkdir -p ~/.paths/sneak-sync/dotfiles/vim/autoload > /dev/null 2>&1 silent !mkdir -p ~/.paths/sneak-sync/dotfiles/vim/plugged > /dev/null 2>&1 if empty(glob('~/Library/vim/plug/plug.vim')) silent !curl -fLo ~/Library/vim/plug/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif source ~/Library/vim/plug/plug.vim "Plug 'zchee/deoplete-go', { 'for': 'go' } "Plug 'zchee/deoplete-jedi', { 'for': 'python' } call plug#begin('~/Library/vim/plug') if has('nvim') Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } Plug 'deoplete-plugins/deoplete-go', { 'do': 'make'} Plug 'roxma/nvim-yarp' Plug 'roxma/vim-hug-neovim-rpc' let g:deoplete#enable_at_startup = 1 endif Plug 'nathanaelkane/vim-indent-guides' let g:indent_guides_enable_on_vim_startup = 1 Plug 'tpope/vim-sensible' Plug 'preservim/nerdtree' Plug 'ryanoasis/vim-devicons' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' } Plug 'prettier/vim-prettier', { \ 'do': 'yarn install', \ 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html'] } let g:prettier#autoformat = 1 let g:prettier#autoformat_require_pragma = 0 "Plug 'fatih/molokai' Plug 'morhetz/gruvbox' Plug 'sbdchd/neoformat' Plug 'LnL7/vim-nix' """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " syntastic """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Plug 'vim-syntastic/syntastic' set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%* let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 let g:syntastic_go_checkers = ['go'] call plug#end() let g:rehash256 = 1 let g:molokai_original = 1 let g:gruvbox_italic = 1 "colorscheme molokai colorscheme gruvbox noremap w :w noremap i noremap l :GoMetaLinter noremap b :GoBuild noremap f :Neoformat noremap t :NERDTreeToggle " vim-go golang configuration: let g:go_fmt_fail_silently = 0 let g:go_fmt_command = "goimports" let g:go_addtags_transform = "camelcase" let g:go_highlight_types = 1 let g:go_highlight_fields = 1 let g:go_highlight_functions = 1 let g:go_highlight_function_calls = 1 let g:go_highlight_extra_types = 1 let g:go_def_mode='gopls' let g:go_info_mode='gopls' let g:go_auto_type_info = 1 "highlight SyntasticErrorSign guifg=white guibg=red "Plug 'scrooloose/nerdtree' "Plug 'ludovicchabant/vim-gutentags' let g:gutentags_ctags_tagfile = '.tags' let g:gutentags_file_list_command = 'git ls-files' let g:gutentags_generate_on_new = 1 "Plug 'majutsushi/tagbar' "Plug 'fatih/vim-go', { 'do': 'GoUpdateBinaries', 'for': 'go' } "Plug 'cespare/vim-toml', { 'for': 'toml' } "call plug#end() let g:airline_powerline_fonts = 1 if !exists('g:airline_symbols') let g:airline_symbols = {} endif " unicode symbols " let g:airline_left_sep = 'β–Ά' " let g:airline_right_sep = 'β—€' let g:airline_symbols.crypt = 'πŸ”’' let g:airline_symbols.linenr = '☰' " let g:airline_symbols.linenr = '␊' " let g:airline_symbols.linenr = '␀' " let g:airline_symbols.linenr = 'ΒΆ' " let g:airline_symbols.maxlinenr = '' " let g:airline_symbols.maxlinenr = '㏑' " let g:airline_symbols.branch = 'βŽ‡' " let g:airline_symbols.paste = 'ρ' " let g:airline_symbols.paste = 'Þ' " let g:airline_symbols.paste = 'βˆ₯' " let g:airline_symbols.spell = 'Ꞩ' " let g:airline_symbols.notexists = 'Ι†' " let g:airline_symbols.whitespace = 'Ξ' fun! InitBex() let myvar = strftime("%y%m%d.%Hh%M") let myvar = "set backupext=.". myvar execute myvar endfun map :call InitBex() silent call InitBex() set relativenumber filetype plugin indent on syntax on set modelines=10 "noremap "" "noremap! "noremap "" "noremap! "noremap "" "noremap! "noremap "" "noremap! "vnoremap > >gv "vnoremap < <gv "au BufWinLeave * silent! mkview "au BufWinEnter * silent! loadview au BufRead,BufNewFile *.go set filetype=go "au BufRead,BufNewFile *.coffee set filetype=coffee set ignorecase set smartcase set gdefault set incsearch set showmatch set hlsearch "nnoremap :noh set bg=dark set ignorecase set smartcase set gdefault set incsearch set showmatch set hlsearch set autoindent "set signcolumn=yes set backspace=indent,eol,start set backup set backupdir=~/Library/vim/backup// set cmdheight=3 "set clipboard=unnamed set directory=~/Library/vim/swap// set encoding=utf-8 set expandtab set fileencodings=utf-8 set guifont=Monaco:h16 set hidden set ignorecase set laststatus=2 set modeline set nobomb set nocompatible set shiftwidth=4 set showcmd set smartcase set smarttab set softtabstop=4 set spellfile=~/.paths/sneak-sync/dotfiles/vim/spellfile.utf-8.add set spelllang=en set tabstop=4 set termencoding=utf-8 set ttyfast set tw=76 set undodir=~/Library/vim/undo// set undofile set wildignore+=*.pyc set writebackup setglobal fileencoding=utf-8 autocmd FileType make setlocal noexpandtab autocmd FileType markdown setlocal spell au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown autocmd BufNewFile,BufRead *.json set ft=javascript autocmd BufWritePre *.js Neoformat autocmd BufWritePre *.jsx Neoformat autocmd BufWritePre *.json Neoformat autocmd BufWritePre *.css Neoformat "inoremap jj "map N Nzz "map n nzz "map "colorscheme koehler hi CursorLine term=none cterm=none ctermbg=none set t_Co=256 set foldmethod=indent set foldminlines=5 set nofoldenable "dont fold by default set foldlevel=1 "this is just what i use "nnoremap @=(foldlevel('.')?'za':'l') "vnoremap zf nnoremap :bn nnoremap :bp nnoremap :ls highlight ExtraWhitespace ctermbg=red guibg=red match ExtraWhitespace /\s\+$/ autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@