Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """"""""""""""""""""""""""""""""""""""""
- " Initialization "
- """"""""""""""""""""""""""""""""""""""""
- " Turn on syntax highlighting
- syntax on
- " Turn on 'Filetype Plugins'
- filetype on
- filetype indent on
- filetype plugin on
- " Make Vim use modern stuff
- set nocompatible
- """"""""""""""""""""""""""""""""""""""""
- " Custom keybindings "
- """"""""""""""""""""""""""""""""""""""""
- " Make going into command mode faster
- nnoremap ; :
- nnoremap : :!
- " Quickly reload/edit the vimrc
- nnoremap <C-l> :so ~/.vimrc<CR>
- nnoremap <C-e> :e ~/.vimrc<CR>
- " Insert newlines
- nnoremap ]<space> o<esc>
- nnoremap [<space> O<esc>j
- " Quickly access blackhole register
- nnoremap <leader> "_
- " Better way to get out of some modes
- inoremap jk <esc>
- " Switch between tabs/buffers
- nnoremap <C-n> :bnext<CR>
- nnoremap <C-p> :brewind<CR>
- nnoremap <C-x> :bdelete<CR>
- """"""""""""""""""""""""""""""""""""""""
- " Graphics & Visuals "
- """"""""""""""""""""""""""""""""""""""""
- " Make Vim use 256 colors
- set term=screen-256color
- " Set the line numbers
- set number
- set relativenumber
- " Make an item list appear when searching
- set wildmenu
- " Make Vim search recursively
- set path+=**
- " Keep cursor in the center of the screen
- set scrolloff=999
- " Tabbing
- set tabstop=2
- set shiftwidth=2
- set expandtab
- """"""""""""""""""""""""""""""""""""""""
- " Plugins "
- """"""""""""""""""""""""""""""""""""""""
- " Set the runtime path to the Vundle location
- set rtp+=~/.vim/bundle/Vundle.vim
- " Begin the Plugin list
- filetype off
- call vundle#begin()
- """"""""""""""""""""""""""""""""""""""""
- " Core Plugins to make life awesome "
- """"""""""""""""""""""""""""""""""""""""
- " Lets Vundle manage Vundle (Required)
- Plugin 'VundleVim/Vundle.vim'
- " Show the bottom bar
- Plugin 'vim-airline/vim-airline'
- Plugin 'vim-airline/vim-airline-themes'
- " Github integration with Vim
- Plugin 'tpope/vim-fugitive'
- " Many colorschemes
- Plugin 'flazz/vim-colorschemes'
- " It's syntastic
- Plugin 'vim-syntastic/syntastic'
- """"""""""""""""""""""""""""""""""""""""
- " Language system specifc plugins "
- """"""""""""""""""""""""""""""""""""""""
- " Purescript build support
- Plugin 'raichoo/purescript-vim'
- " Plugin 'FrigoEU/psc-ide-vim'
- " End the Plugin list
- call vundle#end()
- filetype on
- """"""""""""""""""""""""""""""""""""""""
- " Plugin specific configurations "
- """"""""""""""""""""""""""""""""""""""""
- " Vim Airline
- set laststatus=2
- let g:airline#extensions#tabline#enabled = 1
- let g:airline_powerline_fonts = 1
- " Vim colorschemes
- colorscheme Tomorrow-Night
- " 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement