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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement