Created
January 11, 2019 23:05
-
-
Save OdinsHat/9a0cf34fbb5c8bd06d9de91e3e55cfd1 to your computer and use it in GitHub Desktop.
.vimrc file for vire to find
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
" Powerline configs | |
let g:powerline_pycmd = 'py3' | |
set laststatus=2 | |
" Plugin 'python.vim' | |
" Plugin 'python.vim--Vasiliev' | |
" Plugin 'pyflakes.vim' | |
" Plugin 'pydoc.vim' | |
" Plugin 'mako.vim' | |
" Plugin 'mako.vim--Torborg' | |
" Plugin 'pep8' | |
" Plugin 'The-NERD-tree' | |
" Plugin 'taglist.vim' | |
" Plugin 'Solarized' | |
" Plugin 'jwalton512/vim-blade' | |
" Plugin 'noahfrederick/vim-laravel' | |
" Plugin 'tpope/vim-fugitive' | |
" Plugin 'tpope/vim-surround' | |
" Plugin 'scrooloose/syntastic' | |
filetype plugin indent on " required for vundle | |
set number | |
set nowrap | |
set noerrorbells | |
set title | |
set hidden | |
set novisualbell | |
set showmatch | |
set history=1000 | |
set autoread | |
set title | |
set ttyfast | |
" Indentation settings | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set textwidth=0 | |
set expandtab | |
set autoindent | |
set smartindent | |
set smarttab | |
" file-specific autocommands | |
if has("autocmd") | |
au BufNewFile,BufRead *.ctp setfiletype php | |
au FileType helpfile set nonumber | |
au BufWritePost *.sh !chmod +x % | |
au BufRead,BufNewFile *.php,*.js,*.css,*.html set tw=78 | |
endif | |
set backspace=indent,eol,start | |
" UI Setings | |
set cursorline | |
set list | |
set listchars=tab:->,trail:- " show tabs and trailing space | |
" Colour setup | |
set bg=dark | |
silent! colorscheme solarized | |
syntax on | |
" Search | |
set hls | |
set ic | |
set infercase | |
set smartcase | |
set incsearch | |
" WildMenu settings | |
set wildmenu | |
set wildignore=*.o,*.obj,*.so,*.png,*.jpg,*.gif,*.pyc | |
set wildmode=list:longest | |
" Backspace | |
set bs=indent,eol,start | |
" Status line | |
set ls=2 | |
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [POS=%04l,%04v][%p%%]\ [LEN=%L] | |
" Key mappings | |
let mapleader = "," | |
nnoremap <silent> <F6> :TlistToggle<CR> | |
noremap <leader>b :NERDTreeToggle \| :NERDTreeMirror<CR> | |
noremap <leader>B :NERDTreeFind<CR> | |
map <leader>v :sp ~/.vimrc<cr> | |
map <leader>w :w!<cr> | |
map <leader>x :tabclose<CR> | |
map <leader>n :tabnew<CR> | |
set notimeout | |
if has("autocmd") | |
au BufRead,BufNewFile *.html inoremap <buffer> ;d <div><Return><Return></div><Esc><Up>i<Tab> | |
au BufRead,BufNewFile *.html inoremap <buffer> ;a <a href=""></a><Esc>F"i | |
au BufRead,BufNewFile *.html inoremap <buffer> ;i <img src="" alt="" /></a><Esc>3F"i | |
endif | |
" Syntastic Settings | |
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 | |
let g:syntastic_php_checkers = ['php', 'phpcs'] | |
let g:syntastic_python_checkers = ['pylint'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment