Browse Source

Vim syntastic and whitespace highlight

main
Yiğit Çolakoğlu 4 years ago
parent
commit
37bf3530df
5 changed files with 25 additions and 22 deletions
  1. +4
    -20
      vim/vim/plugin/plugins.vim
  2. +7
    -0
      vim/vim/plugin/vim-betterwhitespace.vim
  3. +5
    -2
      vim/vimrc
  4. +6
    -0
      zsh/cmds
  5. +3
    -0
      zsh/zshrc

+ 4
- 20
vim/vim/plugin/plugins.vim View File

@ -23,6 +23,7 @@ Plug 'blarghmatey/split-expander'
Plug 'farmergreg/vim-lastplace'
Plug 'jlanzarotta/bufexplorer'
Plug 'jeffkreeftmeijer/vim-numbertoggle'
"Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
Plug 'sheerun/vim-polyglot'
Plug 'M4R7iNP/vim-inky'
@ -36,8 +37,6 @@ Plug 'yegappan/taglist'
Plug 'ryanoasis/vim-devicons'
Plug 'puremourning/vimspector'
Plug 'lervag/vimtex'
Plug 'gi1242/vim-tex-autoclose'
" Plug 'ActivityWatch/aw-watcher-vim'
Plug 'wakatime/vim-wakatime'
Plug 'gu-fan/riv.vim'
Plug 'gu-fan/InstantRst'
@ -45,19 +44,6 @@ Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
Plug 'isene/hyperlist.vim'
Plug 'neomutt/neomutt.vim'
" Plug 'neoclide/coc.nvim', {'branch': 'release'}
"
" if has('nvim')
" Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
" else
" Plug 'Shougo/deoplete.nvim'
" Plug 'roxma/nvim-yarp'
" Plug 'roxma/vim-hug-neovim-rpc'
" endif
" let g:deoplete#enable_at_startup = 1
" Tmux integration
Plug 'benmills/vimux'
Plug 'christoomey/vim-tmux-navigator'
@ -75,16 +61,14 @@ Plug 'tpope/vim-endwise'
Plug 'elzr/vim-json'
Plug 'tpope/vim-markdown'
Plug 'vim-scripts/cool.vim'
Plug 'pangloss/vim-javascript'
Plug 'mxw/vim-jsx'
" Plug 'groenewege/vim-less'
" Plug 'tpope/vim-haml'
" Plug 'pangloss/vim-javascript'
" Plug 'mxw/vim-jsx'
" Plug 'jparise/vim-graphql'
Plug 'leafgarland/typescript-vim'
Plug 'arrufat/vala.vim'
" Syntax errors
" Plug 'vim-syntastic/syntastic'
Plug 'vim-syntastic/syntastic'
Plug 'ntpeters/vim-better-whitespace'
" Git support


+ 7
- 0
vim/vim/plugin/vim-betterwhitespace.vim View File

@ -0,0 +1,7 @@
let g:better_whitespace_enabled=1
let g:better_whitespace_ctermcolor='LightRed'
let g:better_whitespace_guicolor='LightRed'
let g:better_whitespace_operator='_s'
let g:strip_whitespace_on_save=1
let g:strip_max_file_size=1000
let g:strip_whitespace_confirm=0

+ 5
- 2
vim/vimrc View File

@ -48,7 +48,7 @@ set nobackup nowritebackup noswapfile " Turn off backup files
set noerrorbells novisualbell " Turn off visual and audible bells
set expandtab shiftwidth=2 tabstop=2 " Two spaces for tabs everywhere
set history=500
set hlsearch " Highlight search results
" set hlsearch " Highlight search results
set ignorecase smartcase " Search queries intelligently set case
set incsearch " Show search results as you type
set timeoutlen=1000 ttimeoutlen=0 " Remove timeout when hitting escape
@ -135,7 +135,10 @@ nnoremap <silent> <Leader>+ :exe "resize " . (winheight(0) * 3/2)<CR>
nnoremap <silent> <Leader>- :exe "resize " . (winheight(0) * 2/3)<CR>
let g:Tlist_WinWidth = 40
"
" Syntastic max file size for python
let g:syntastic_python_pylint_post_args="--max-line-length=120"
"-------------------------------------------------------------------------------
" Neovim-specific configurations
"-------------------------------------------------------------------------------


+ 6
- 0
zsh/cmds View File

@ -85,8 +85,14 @@ tmate-attach() {
tmate-pair() {
if [ -z "$TMATE_API_KEY" ]; then
echo "You need an api key."
return
fi
if [ ! -e "$TMATE_SOCKET_LOCATION" ]; then
tmate -k $TMATE_API_KEY -r "sharedProgramming" -S "$TMATE_SOCKET_LOCATION" -f "$HOME/.tmate.conf" new-session -d -s "$TMATE_PAIR_NAME"
tmate -S $TMATE_SOCKET_LOCATION display -p '#{tmate_ssh_ro}'
while [ -z "$url" ]; do
url="$(tmate -S $TMATE_SOCKET_LOCATION display -p '#{tmate_ssh_ro}')"


+ 3
- 0
zsh/zshrc View File

@ -94,3 +94,6 @@ local paste_widgets=(
x11-clip-wrap-widgets copy $copy_widgets
x11-clip-wrap-widgets paste $paste_widgets
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/bin/mc mc

Loading…
Cancel
Save