You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
2.6 KiB
112 lines
2.6 KiB
"------VUNDLE CONFIGS------ |
|
"Installation shiz |
|
""git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim |
|
set nocompatible |
|
filetype off |
|
|
|
set rtp+=~/.vim/bundle/Vundle.vim |
|
call vundle#begin() |
|
" let Vundle manage Vundle, required |
|
Plugin 'VundleVim/Vundle.vim' |
|
Plugin 'scrooloose/nerdtree' |
|
Plugin 'kien/ctrlp.vim' |
|
Plugin 'fatih/vim-go' |
|
Plugin 'christoomey/vim-tmux-navigator' |
|
Plugin 'shougo/vinarise' |
|
Plugin 'tpope/vim-fugitive' |
|
Plugin 'benekastah/neomake' |
|
Plugin 'airblade/vim-gitgutter' |
|
"Plugin 'shougo/deoplete.nvim' |
|
|
|
call vundle#end() |
|
filetype plugin indent on |
|
"------/VUNDLE CONFIGS----- |
|
|
|
|
|
"------NORMAL CONFIGS------ |
|
colorscheme cottonmouse |
|
"colorscheme jellybeans |
|
"command Mouse set mouse=a |
|
set mouse= |
|
syntax enable |
|
au BufRead,BufNewFile *.hy set filetype=hy |
|
"filetype plugin indent on |
|
set number |
|
set cursorline |
|
"set showmatch |
|
" tabformatting... |
|
"set listchars=tab:\|\ |
|
"set list |
|
hi LineNr ctermbg=NONE |
|
hi LineNr ctermfg=DarkGrey |
|
" |
|
set tabstop=4 |
|
set shiftwidth=4 |
|
"set expandtab |
|
|
|
autocmd Filetype html call SetHtmlOptions() |
|
function SetHtmlOptions() |
|
setlocal ts=2 sts=2 sw=2 |
|
setlocal expandtab |
|
"setlocal foldmethod=syntax |
|
setlocal foldmethod=indent |
|
endfunction |
|
|
|
autocmd Filetype css setlocal ts=2 sts=2 sw=2 |
|
autocmd Filetype gitcommit setlocal spell textwidth=72 |
|
"------/NORMAL CONFIGS----- |
|
|
|
|
|
"------VIM KEYBIND CONFIGS------- |
|
nnoremap <c-j> <c-w>j |
|
nnoremap <c-k> <c-w>k |
|
nnoremap <c-h> <c-w>h |
|
nnoremap <c-l> <c-w>l |
|
"------/VIM KEYBIND CONFIGS------ |
|
|
|
|
|
"------GO-VIM CONFIGS------ |
|
let g:go_fmt_fail_silently = 1 |
|
"let g:go_fmt_autosave = 0 |
|
"------/GO-VIM CONFIGS----- |
|
|
|
|
|
"------COLOR CONFIGS------ |
|
hi LineNr ctermbg=NONE |
|
hi LineNr ctermfg=DarkGrey |
|
"------/COLOR CONFIGS----- |
|
|
|
"------ TERMINAL CONFIGS------ |
|
:au BufEnter * if &buftype == 'terminal' | :startinsert | endif |
|
":tnoremap <A-h> <C-\><C-n><C-w>h |
|
":tnoremap <A-j> <C-\><C-n><C-w>j |
|
":tnoremap <A-k> <C-\><C-n><C-w>k |
|
":tnoremap <A-l> <C-\><C-n><C-w>l |
|
:nnoremap <A-h> <C-w>h |
|
:nnoremap <A-j> <C-w>j |
|
:nnoremap <A-k> <C-w>k |
|
:nnoremap <A-l> <C-w>l |
|
"------/TERMINAL CONFIGS----- |
|
|
|
"" "------HEX MODE------ |
|
"" " vim -b : edit binary using xxd-format! |
|
"" augroup Binary |
|
"" au! |
|
"" au BufReadPre *.bin let &bin=1 |
|
"" au BufReadPost *.bin if &bin | %!xxd |
|
"" au BufReadPost *.bin set ft=xxd | endif |
|
"" au BufWritePre *.bin if &bin | %!xxd -r |
|
"" au BufWritePre *.bin endif |
|
"" au BufWritePost *.bin if &bin | %!xxd |
|
"" au BufWritePost *.bin set nomod | endif |
|
"" augroup END |
|
"" "------/HEX MODE------ |
|
|
|
|
|
"------NEOMAKE CONFIGS----- |
|
" this is the syntastic-like plugin |
|
autocmd! BufWritePost * Neomake |
|
"-----/NEOMAKE CONFIGS----- |
|
|
|
" Use deoplete. |
|
"let g:deoplete#enable_at_startup = 1
|
|
|