Requires the vim-plug vim extension manager.
call plug#begin()
Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'
Plug 'scrooloose/nerdcommenter'
Plug 'mattn/emmet-vim'
Plug 'valloric/youcompleteme'
Plug 'vim-airline/vim-airline'
Plug 'leafgarland/typescript-vim'
Plug 'scrooloose/syntastic'
Plug 'kien/ctrlp.vim'
Plug 'w0rp/ale'
Plug 'lervag/vimtex'
Plug 'Chiel92/vim-autoformat'
call plug#end()
Maps the NERDTree command to the same as atom
"maps the tree view key
map <C-\> :NERDTreeToggle<CR>
The eternal debate
"line numbers are shown by default
set number sts=2 ts=2 et
"formats the tabs automatically for haskell file types
autocmd FileType haskell setlocal shiftwidth=2 tabstop=2
autocmd FileType typscript setlocal shiftwidth=2 tabstop=2
The escape key is very far away, it can be more appropriate to make it closer.
N.B. Ctrl + [ can be used perform the same operation without mapping needed !
"maps the Tab key to ESC
nnoremap <Tab> <Esc>
vnoremap <Tab> <Esc>gV
onoremap <Tab> <Esc>
cnoremap <Tab> <C-C><Esc>
inoremap <Tab> <Esc>`^
inoremap <Leader><Tab> <Tab>
"needs to be set for the vim-devicons
set encoding=UTF-8
"syntastic recommended settings
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*