Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nocompatible
- " Config ignore cases and highlight search
- set ignorecase hlsearch
- " Reload file into buffer when it changes on disk
- set autoread
- " Config tabssize
- set tabstop=2 shiftwidth=2 expandtab smarttab
- " Show line numbers
- set number
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- Plugin 'VundleVim/Vundle.vim'
- "Plugin 'tpope/vim-sensible'
- Plugin 'pangloss/vim-javascript'
- Plugin 'mxw/vim-jsx'
- Plugin 'flowtype/vim-flow'
- Plugin 'ervandew/supertab'
- Plugin 'altercation/vim-colors-solarized'
- Plugin 'scrooloose/nerdtree'
- Plugin 'ctrlpvim/ctrlp.vim'
- Plugin 'vim-airline/vim-airline'
- Plugin 'vim-airline/vim-airline-themes'
- Plugin 'tpope/vim-fugitive'
- Plugin 'apple/swift', { 'rtp': 'utils/vim' }
- Plugin 'tjvr/vim-nearley'
- call vundle#end() " required
- " filetype plugin on
- filetype plugin on " required
- " Enable syntax highlighting
- syntax 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
- " Set scrolling stuff
- set scrolloff=15
- set cursorline
- " Use locally installed flow
- let local_flow = finddir('node_modules', '.;') . '/.bin/flow'
- if matchstr(local_flow, "^\/\\w") == ''
- let local_flow = getcwd() . "/" . local_flow
- endif
- if executable(local_flow)
- let g:flow#flowpath = local_flow
- endif
- let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
- inoremap <expr> <C-Space> pumvisible() \|\| &omnifunc == '' ?
- \ "\<lt>C-n>" :
- \ "\<lt>C-x>\<lt>C-o><c-r>=pumvisible() ?" .
- \ "\"\\<lt>c-n>\\<lt>c-p>\\<lt>c-n>\" :" .
- \ "\" \\<lt>bs>\\<lt>C-n>\"\<CR>"
- imap <C-@> <C-Space>
- " Configure javascript syntax hl
- let g:javascript_plugin_flow = 1
- let g:jsx_ext_required = 0
- let g:javascript_conceal_function = "ƒ"
- let g:flow#autoclose = 1
- " let g:flow#errjmp = 1
- " set macligatures
- " set guifont=Fira\ Code:h12
- set guifont=Meslo\ LG\ M\ DZ\ for\ Powerline:h11
- let g:airline_powerline_fonts = 1
- let g:airline#extensions#tabline#enabled = 1
- set laststatus=2
- function! AirlineInit()
- let g:airline_section_y = airline#section#create(['%{&fileencoding?&fileencoding:&encoding}', ' ', '%{strftime("%I:%M")}'])
- endfunction
- autocmd VimEnter * call AirlineInit()
- nnoremap <C-S-tab> :tabprevious<CR>
- nnoremap <C-tab> :tabnext<CR>
- nnoremap <C-t> :tabnew<CR>
- inoremap <C-S-tab> <Esc>:tabprevious<CR>i
- inoremap <C-tab> <Esc>:tabnext<CR>i
- inoremap <C-t> <Esc>:tabnew<CR>
- set background=dark
- colorscheme solarized
- let g:solarized_termcolors=256
- " Configure nerdtree
- map <C-b> :NERDTreeToggle<CR>
- " Configure ctrlp
- let g:ctrlp_custom_ignore = {
- \ 'dir': 'node_modules$\|\.git$\|build$',
- \ }
- let g:ctrlp_working_path_mode = ''
- function! TrisoftReact()
- 0r~/.vim/react-header.txt
- execute "normal! G"
- endfunction
- if !exists(":Th")
- command Th call TrisoftReact()
- endif
- function! MakeLatexFiles()
- execute "!./compile.sh"
- endfunction
- if !exists(":TexCompile")
- command TexCompile call MakeLatexFiles()
- endif
Add Comment
Please, Sign In to add comment