Created
November 18, 2017 08:28
-
-
Save moltak/1774ed7de5ff121037fe7f7d3dc0d649 to your computer and use it in GitHub Desktop.
my .vimrc
This file contains hidden or 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
"Plugin: vim-plug https://github.com/junegunn/vim-plug" | |
call plug#begin('~/.vim/plugged') | |
Plug 'vim-scripts/indentpython.vim' | |
Plug 'Valloric/YouCompleteMe' | |
Plug 'scrooloose/nerdtree' | |
Plug 'jistr/vim-nerdtree-tabs' | |
Plug 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} | |
Plug 'leafgarland/typescript-vim' | |
Plug 'pangloss/vim-javascript' | |
Plug 'vim-syntastic/syntastic' | |
Plug 'posva/vim-vue' | |
Plug 'https://github.com/digitaltoad/vim-pug' | |
Plug 'pathogen.vim' | |
Plug 'christoomey/vim-tmux-navigator' | |
Plug 'kien/ctrlp.vim' | |
Plug 'simeji/winresizer' | |
Plug 'tpope/vim-obsession' | |
Plug 'editorconfig/editorconfig-vim' | |
Plug 'nikvdp/ejs-syntax' | |
Plug 'https://github.com/dracula/vim.git' | |
call plug#end() | |
"reference https://realpython.com/blog/python/vim-and-python-a-match-made-in-heaven/" | |
"my options" | |
syntax on | |
set encoding=utf-8 | |
set number autoindent smartindent | |
set tabstop=4 expandtab shiftwidth=2 softtabstop=2 | |
set background=dark | |
set mouse=a | |
set cursorline | |
filetype indent on | |
color dracula | |
let python_highlight_all=1 | |
"syntastic recommended settings | |
"https://github.com/vim-syntastic/syntastic#3-recommended-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_javascript_checkers=['eslint'] | |
let g:syntastic_error_symbol = '❌' | |
let g:syntastic_style_error_symbol = '⁉️' | |
let g:syntastic_warning_symbol = '⚠️' | |
let g:syntastic_style_warning_symbol = '💩' | |
highlight link SyntasticErrorSign SignColumn | |
highlight link SyntasticWarningSign SignColumn | |
highlight link SyntasticStyleErrorSign SignColumn | |
highlight link SyntasticStyleWarningSign SignColumn | |
"silver search | |
let g:ackprg = 'ag --nogroup --nocolor --column' | |
let vim_markdown_preview_github=1 | |
execute pathogen#infect() | |
call pathogen#helptags() | |
set backspace=indent,eol,start | |
" vim-NERDTree-tab | |
map <C-n> :NERDTreeToggle<CR> | |
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> | |
" c compile | |
map <F8> : !gcc % && ./a.out <CR> | |
map <F9> : !g++ % && ./a.out <CR> | |
let g:nerdtree_tabs_open_on_console_startup = 1 | |
let g:nerdtree_tabs_autofind = 1 | |
let g:nerdtree_tabs_focus_on_files = 1 | |
" NERDTress File highlighting | |
" function! NERDTreeHighlightFile(extension, fg, bg, guifg, guibg) | |
" exec 'autocmd filetype nerdtree highlight ' . a:extension .' ctermbg='. a:bg .' ctermfg='. a:fg .' guibg='. a:guibg .' guifg='. a:guifg | |
" exec 'autocmd filetype nerdtree syn match ' . a:extension .' #^\s\+.*'. a:extension .'$#' | |
" endfunction | |
" | |
" call NERDTreeHighlightFile('jade', 'green', 'none', 'green', '#151515') | |
" call NERDTreeHighlightFile('pug', 'green', 'none', 'green', '#151515') | |
" call NERDTreeHighlightFile('ini', 'yellow', 'none', 'yellow', '#151515') | |
" call NERDTreeHighlightFile('md', 'blue', 'none', '#3366FF', '#151515') | |
" call NERDTreeHighlightFile('yml', 'yellow', 'none', 'yellow', '#151515') | |
" call NERDTreeHighlightFile('config', 'yellow', 'none', 'yellow', '#151515') | |
" call NERDTreeHighlightFile('conf', 'yellow', 'none', 'yellow', '#151515') | |
" call NERDTreeHighlightFile('json', 'yellow', 'none', 'yellow', '#151515') | |
" call NERDTreeHighlightFile('html', 'yellow', 'none', 'yellow', '#151515') | |
" call NERDTreeHighlightFile('styl', 'cyan', 'none', 'cyan', '#151515') | |
" call NERDTreeHighlightFile('css', 'cyan', 'none', 'cyan', '#151515') | |
" call NERDTreeHighlightFile('coffee', 'Red', 'none', 'red', '#151515') | |
" call NERDTreeHighlightFile('js', 'Red', 'none', '#ffa500', '#151515') | |
" call NERDTreeHighlightFile('php', 'Magenta', 'none', '#ff00ff', '#151515') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment