Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible " be iMproved, required
- filetype off " required
- set bg=dark
- set omnifunc=syntaxcomplete#Complete
- set number
- set relativenumber
- set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
- set autoindent
- set smartindent
- set guifont=Monospace\ 14
- " 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 'vim-airline/vim-airline'
- Plugin 'vim-airline/vim-airline-themes'
- Plugin 'ervandew/supertab'
- Plugin 'mileszs/ack.vim'
- Plugin 'ctrlpvim/ctrlp.vim'
- Plugin 'scrooloose/syntastic'
- Plugin 'scrooloose/nerdtree'
- Plugin 'lervag/vimtex'
- "Fugitive
- "YouCompleteMe
- Plugin 'tomtom/tcomment_vim'
- Plugin 'vim-scripts/ReplaceWithRegister'
- Plugin 'wikitopian/hardmode'
- Plugin 'flazz/vim-colorschemes'
- Plugin 'tpope/vim-surround'
- Plugin 'leafgarland/typescript-vim'
- " All of your Plugins must be added before the following line
- call vundle#end() " required
- filetype plugin indent on " required
- syntax on
- " To ignore plugin indent changes, instead use:
- "filetype plugin on
- "
- " Brief help
- " :PluginList - lists configured plugins
- " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
- " :PluginSearch foo - searches for foo; append `!` to refresh local cache
- " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
- "
- " see :h vundle for more details or wiki for FAQ
- " Put your non-Plugin stuff after this line
- " Enable the list of buffers
- let g:airline#extensions#tabline#enabled = 1
- " Show just the filename
- let g:airline#extensions#tabline#fnamemod = ':t'
- let g:airline#extensions#tabline#left_sep = ' '
- let g:airline#extensions#tabline#left_alt_sep = '|'
- let g:airline_theme='luna'
- "let mapleader = "-"
- let mapleader = "\<Space>"
- " This allows buffers to be hidden if you've modified a buffer.
- " This is almost a must if you wish to use buffers in this way.
- set hidden
- " To open a new empty buffer
- " This replaces :tabnew which I used to bind to this mapping
- nmap <leader>T :enew<cr>
- " Move to the next buffer
- nmap <leader>; :bnext<CR>
- " Move to the previous buffer
- nmap <leader>l :bprevious<CR>
- " Close the current buffer and move to the previous one
- " This replicates the idea of closing a tab
- nmap <leader>bq :bp <BAR> bd #<CR>
- " Show all open buffers and their status
- nmap <leader>bl :ls<CR>
- let g:SuperTabMappingForward = '<C-tab>'
- let g:SuperTabMappingBackward = '<s-tab>'
- "let g:opamshare = substitute(system('opam config var share'),'\n$','','''')
- "execute "set rtp+=" . g:opamshare . "/merlin/vim"
- nnoremap cd /\%<C-R>=virtcol(".")<CR>v\S<CR>
- nnoremap cu ?\%<C-R>=virtcol(".")<CR>v\S<CR>
- "noremap ; l
- "noremap l k
- "noremap k j
- "noremap j h
- noremap l h
- noremap ; l
- noremap h ;
- "if (strftime('%H') >= 17 && strftime('%M') >= 10) || (strftime('%H') > 18) || (strftime('%H') < 7)
- if (strftime('%H') == 16 && strftime('%M') >= 50) || (strftime('%H') >= 17) || (strftime('%H') < 7)
- color evening
- else
- colorscheme SlateDark
- endif
- "autocmd VimEnter,BufNewFile,BufReadPost * silent! call HardMode()
- noremap <Up> <Nop>
- noremap <Down> <Nop>
- noremap <Left> <Nop>
- noremap <Right> <Nop>
- let g:syntastic_javascript_checkers=['eslint']
- let g:typescript_indent_disable = 1
- nnoremap <C-g> :NERDTree<CR>
- "autocmd BufNewFile,BufRead *.ts setlocal filetype=typescript
Advertisement
Add Comment
Please, Sign In to add comment