Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filetype off
- filetype indent on
- "set t_Co=256
- set guifont=InconsolataForPowerline\ Nerd\ Font\ 12
- set laststatus=2
- set backspace=indent,eol,start
- set clipboard=unnamedplus
- set encoding=utf-8
- set ai
- set showmatch
- set textwidth=79
- " this desable "visual" wrapping
- set nowrap
- set textwidth=0 wrapmargin=0
- set mouse=a
- set nu
- set expandtab
- set tabstop=4
- set shiftwidth=4
- set nobackup
- set noswapfile
- set nowritebackup
- set timeoutlen=1000
- set ttimeoutlen=0
- set showcmd
- set ignorecase
- set smartcase
- set cursorline
- let g:airline_theme='gruvbox'
- let g:airline_powerline_fonts=1
- let g:gruvbox_contrast_dark='neutral'
- colorscheme gruvbox
- "Tomorrow-Night-Eighties
- set background=dark
- "VIM-Jedi
- let g:jedi#completions_command = "<C-Space>"
- let g:jedi#popup_on_dot = 0
- let g:jedi#popup_select_first = 0
- let g:jedi#show_call_signatures = "1"
- "FileType
- autocmd FileType haskell map <F5> :!ghci %
- autocmd FileType haskell imap <F5> <ESC> :!ghci
- autocmd FileType python setlocal completeopt-=preview
- autocmd FileType python map <F5> :!python3 %
- autocmd FileType python imap <F5> <ESC> :!python3 %
- autocmd FileType cpp map <F5> :!g++ % && ./a.out
- autocmd FileType cpp imap <F5> <ESC> :!g++ % && ./a.out
- autocmd FileType go map <F5> :!go run %
- autocmd FileType go imap <F5> <ESC> :!go run %
- autocmd FileType html setlocal shiftwidth=2 tabstop=2
- "My mapping keys
- nnoremap <C-c> "+y
- vnoremap <C-c> "+y
- vnoremap <C-v> c<ESC>"+p
- inoremap <C-v> <ESC>"+pa
- nnoremap <C-v> "+pa
- vmap <S-TAB> <
- vmap <TAB> >
- imap jj <ESC>
- nmap <C-s> :w <CR>
- imap <C-s> <Esc> :w <CR>
- map c <Esc>:
- vmap n <Esc>
- map <F1> :sp <CR>
- map <F2> :vsp <CR>
- nmap <F3> :%!xxd <CR>
- nmap <F4> :%!xxd -r <CR>
- nmap <S-l> $
- nmap <S-h> 0"
- nnoremap <C-J> <C-W><C-J>
- nnoremap <C-K> <C-W><C-K>
- nnoremap <C-L> <C-W><C-L>
- nnoremap <C-H> <C-W><C-H>
- if !exists('g:airline_symbols')
- let g:airline_symbols = {}
- endif
- " unicode symbols
- let g:airline_symbols.paste = 'ρ'
- let g:airline_symbols.paste = 'Þ'
- let g:airline_symbols.paste = '∥'
- let g:airline_symbols.whitespace = 'Ξ'
- let g:airline_symbols.maxlinenr = ''
- let g:airline_symbols.spell = 'Ꞩ'
- let g:airline_symbols.notexists = '∄'
- " powerline symbols
- let g:airline_left_sep = ''
- let g:airline_left_alt_sep = ''
- let g:airline_right_sep = ''
- let g:airline_right_alt_sep = ''
- let g:airline_symbols.branch = ''
- let g:airline_symbols.readonly = ''
- let g:airline_symbols.linenr = ''
- " Smarter tab line
- let g:airline#extensions#tabline#enabled = 1
- let g:airline#extensions#tabline#show_buffers = 1
- let g:airline#extensions#tabline#tab_min_count = 2
- " tabs
- set switchbuf=usetab
- nnoremap <Right> :sbnext<CR>
- nnoremap <Left> :sbprevious<CR>
- " set the runtime path to include Vundle and initialize
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- Plugin 'VundleVim/Vundle.vim'
- Plugin 'tpope/vim-fugitive'
- Plugin 'L9'
- Plugin 'git://git.wincent.com/command-t.git'
- Plugin 'file:///home/gmarik/path/to/plugin'
- Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
- Plugin 'ascenator/L9', {'name': 'newL9'}
- "-----------------------------------------
- Plugin 'othree/html5.vim'
- Plugin 'flazz/vim-colorschemes'
- Plugin 'scrooloose/nerdTree'
- Plugin 'ryanoasis/vim-devicons'
- Plugin 'vim-airline/vim-airline'
- Plugin 'vim-airline/vim-airline-themes'
- Plugin 'davidhalter/jedi-vim'
- Plugin 'wkentaro/conque.vim'
- Plugin 'morhetz/gruvbox'
- Plugin 'dracula/vim'
- call vundle#end() " required
- filetype plugin indent on " required
- if has("syntax")
- syntax on
- endif
- if &term =~ "xterm\\|rxvt"
- " use an orange cursor in insert mode
- let &t_SI = "\<Esc>]12;orange\x7"
- " use a red cursor otherwise
- let &t_EI = "\<Esc>]12;gray\x7"
- silent !echo -ne "\033]12;gray\007"
- " reset cursor when vim exits
- autocmd VimLeave * silent !echo -ne "\033]112\007"
- " use \003]12;gray\007 for gnome-terminal and rxvt up to version 9.21
- endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement