E185: Cannot find color scheme*

For those using Plug as plugin manager, the problem may be solved by setting the color scheme after declaring the plugin that provides the theme: call plug#begin() Plug ‘rakr/vim-one’ ” tell Vim to load the theme/plugin call plug#end() colorscheme one ” set the color scheme after the theme provider has been loaded

Vim displays json file without any quotes

The built-in $VIMRUNTIME/syntax/json.vim uses Vim’s conceal feature to hide the quotes, presumably to remove unnecessary clutter. You must have enabled concealing by setting the ‘conceallevel’ option to 2 or 3; the default is 0 (off). Likewise, you see the quotes in visual mode because of your ‘concealcursor’ setting. Inside a JSON file, check where the … Read more

Is it possible to include multiple file types when using the `FileType` event?

Absolutely: au FileType tex,latex,context,plaintex nm <C-H> <Plug>IMAP_JumpForward Some thoughts: Should be using a buffer local mapping instead of a global mapping Using short names has only cons and zero pros. Don’t. This autocmd should be in a group Autocmd’s should be cleared (inside a group) so that re-sourcing is not a problem Maybe use a … Read more

How to auto save vim session on quit and auto reload on start including split window state?

I modified 2ck’s script slightly to save a .session.vim in your current working directory instead of the directory where your current open file is in. Also, it checks if the file exists before sourcing it. fu! SaveSess() execute ‘mksession! ‘ . getcwd() . ‘/.session.vim’ endfunction fu! RestoreSess() if filereadable(getcwd() . ‘/.session.vim’) execute ‘so ‘ . … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)