Skip to content

Commit

Permalink
more vimrc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kpa28-git committed Apr 30, 2020
1 parent c4ff43a commit 2d3ce3a
Show file tree
Hide file tree
Showing 4 changed files with 591 additions and 12 deletions.
1 change: 1 addition & 0 deletions .config/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
!/picom/**
!/pistol/**
!/polybar/**
!/pylint/**
!/qutebrowser/**
!/readline/**
!/redshift/**
Expand Down
20 changes: 8 additions & 12 deletions .config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,18 @@ Plug 'bling/vim-airline' " Lightweight statusbar
Plug 'bling/vim-bufferline' " Lightweight bufferbar
Plug 'junegunn/goyo.vim' " Distraction free writing


" ********** Languages/Syntax **********
Plug 'tpope/vim-commentary' " Toggle comment/uncomment ('gc')
Plug 'tpope/vim-surround' " Toggle surrounding parens/brackets/others
Plug 'tpope/vim-surround' " Toggle surrounding parens/brackets/others ('cs<1><2>', 'ds<1>', 'yss<1>', and others)
Plug 'rust-lang/rust.vim' " Rust lang plugin required by syntastic
Plug 'mboughaba/i3config.vim' " i3 config syntax


" ********** Autocomplete **********
Plug 'Valloric/YouCompleteMe' " Autocomplete plugin (requires python-jedi for python)


" ********** Linting **********
Plug 'scrooloose/syntastic' " Syntax checking plugin for Vim (requires python-jedi for python)


" ********** External Integration **********
Plug 'emakman/nvim-latex-previewer' " LaTeX Previewer ('<Leader>p' or ':LatexPreviewToggle')
Plug 'jreybert/vimagit' " Git integration plugin
Expand Down Expand Up @@ -91,9 +87,6 @@ nnoremap S :%s//g<Left><Left>
map <leader>b :vsp<space>$BIB<CR>
map <leader>r :vsp<space>$REFER<CR>
" Render and preview github-style markdown with python-grip
map <leader>m :!grip<space>%

""" GENERAL BUFFER AUTOCMDs
" Automatically deletes all trailing whitespace on save.
Expand Down Expand Up @@ -136,9 +129,9 @@ map <C-Right> <C-w>l
map <C-n> :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif

" Goyo distraction free plugin
map <leader>f :Goyo \| set bg=light \| set linebreak<CR>

" ********** Autocomplete **********
nmap <leader>g :YcmCompleter GoTo<CR>
nmap <leader>d :YcmCompleter GetDoc<CR>
Expand All @@ -150,7 +143,6 @@ let g:ycm_complete_in_strings = 1
let g:ycm_complete_in_comments = 0
let g:ycm_min_num_of_chars_for_completion = 2


" ********** Linting **********
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
Expand All @@ -161,8 +153,9 @@ 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_python_checkers=['flake8', 'pydocstyle', 'python']

let g:syntastic_python_checkers=['python']
let g:syntastic_json_checkers = ['jsonval']
let g:syntastic_yaml_checkers = ['pyyaml']

" ********** External Integration **********
nmap <buffer> <leader>p :LatexPreviewToggle<CR>
Expand All @@ -172,6 +165,9 @@ nmap <buffer> <leader>] :NextLatexPreviewMode<CR>
" Compile text document, be it groff/LaTeX/markdown/etc.
map <leader>c :w! \| !txtcompiler <c-r>%<CR>
" Render and preview github-style markdown with python-grip
map <leader>m :!grip<space>%
" <leader>+o(rthography): Spellcheck
map <leader>o :setlocal spell! spelllang=en_us<CR>
Expand Down
Loading

0 comments on commit 2d3ce3a

Please sign in to comment.